Эх сурвалжийг харах

feat:绑定手机号插件

yangfeng 4 сар өмнө
parent
commit
ea25c6ed5b

+ 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


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно