소스 검색

feat:绑定手机号插件

yangfeng 4 달 전
부모
커밋
ea25c6ed5b
8개의 변경된 파일1285개의 추가작업 그리고 1617개의 파일을 삭제
  1. 2 2
      jydocs-mobile/.npmrc
  2. 1 0
      jydocs-mobile/package.json
  3. 5 0
      jydocs-mobile/src/main.ts
  4. 1 0
      jydocs-mobile/src/shims-vue.d.ts
  5. 12 1
      jydocs-mobile/src/views/Home.vue
  6. 628 803
      jydocs-mobile/yarn.lock
  7. 2 2
      jydocs-pc/.npmrc
  8. 634 809
      jydocs-pc/yarn.lock

+ 2 - 2
jydocs-mobile/.npmrc

@@ -1,2 +1,2 @@
-registry=http://192.168.3.71:4873/
-@jianyu:registry=http://192.168.3.71:4873/
+registry=http://172.20.100.235:14873/
+@jianyu:registry=http://172.20.100.235:14873/

+ 1 - 0
jydocs-mobile/package.json

@@ -8,6 +8,7 @@
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
+    "@jy/plugin-bind-phone": "^1.0.6",
     "@js-preview/docx": "^1.6.0",
     "@js-preview/excel": "^1.7.3",
     "@vue-office/docx": "^1.6.0",

+ 5 - 0
jydocs-mobile/src/main.ts

@@ -6,6 +6,11 @@ import '@/utils/'
 import { Component } from 'vue-property-decorator'
 import { Toast, Lazyload } from 'vant'
 import VueBus from './vue_bus'
+import TestBindPhone from '@jy/plugin-bind-phone'
+console.log(TestBindPhone, 'test-bind-phone')
+try {
+  Vue.use(TestBindPhone)
+} catch (error) {}
 
 Component.registerHooks(['beforeRouteEnter', 'beforeRouteLeave', 'beforeRouteUpdate'])
 Toast.setDefaultOptions({ getContainer: '#app' })

+ 1 - 0
jydocs-mobile/src/shims-vue.d.ts

@@ -3,3 +3,4 @@ declare module '*.vue' {
   export default Vue
 }
 declare module 'vue-pdf'
+declare module '@jy/plugin-bind-phone'

+ 12 - 1
jydocs-mobile/src/views/Home.vue

@@ -93,7 +93,7 @@
         @load="onLoad" class="more-list" ref="vanList">
         <div>
           <div class="list-group card-group flex-c-c" v-for="(item, index) in hotListState.list" :key="index"
-            @click="goContent(item)">
+            @click="goContent(item)" v-bound-phone="bindPhoneGoContent(item)">
             <van-skeleton avatar avatar-shape="square" class="van-loading-skeleton card-style" :row="4"
               :row-width="rowWidth" :loading="showLoading">
               <div class="card-item flex-r-c">
@@ -339,6 +339,17 @@ export default class extends Vue {
   openScreen () {
     (this.$refs.screenPopup as any).show = true
   }
+
+  bindPhoneGoContent (item: any) {
+    return {
+      props: {
+        name: ''
+      },
+      next: () => {
+        this.goContent(item)
+      }
+    }
+  }
 }
 </script>
 <style scoped lang="scss">

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 628 - 803
jydocs-mobile/yarn.lock


+ 2 - 2
jydocs-pc/.npmrc

@@ -1,2 +1,2 @@
-registry=http://192.168.3.71:4873/
-@jianyu:registry=http://192.168.3.71:4873/
+registry=http://172.20.100.235:14873/
+@jianyu:registry=http://172.20.100.235:14873/

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 634 - 809
jydocs-pc/yarn.lock


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.