Просмотр исходного кода

feat:列表跳转增加手机号绑定拦截

yangfeng 4 месяцев назад
Родитель
Сommit
e432d336e8

+ 1 - 1
jydocs-mobile/package.json

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

+ 12 - 1
jydocs-mobile/src/components/docs-card/Card.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="doc-container van-hairline--bottom" @click="clickCard">
+  <div class="doc-container van-hairline--bottom" @click="clickCard" v-bound-phone="bindPhoneCard()">
     <div class="docs-card oneline" v-if="cardType === 'oneline'" key="docs-card">
       <div class="docs-header flex-r-c center">
         <van-icon :name="docTypeIcon" />
@@ -114,6 +114,17 @@ export default class DocsCard extends Vue {
   clickCard () {
     this.$emit('onClick')
   }
+
+  bindPhoneCard () {
+    return {
+      props: {
+        name: this.title
+      },
+      next: () => {
+        this.$emit('onClick')
+      }
+    }
+  }
 }
 </script>
 

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

@@ -343,7 +343,7 @@ export default class extends Vue {
   bindPhoneGoContent (item: any) {
     return {
       props: {
-        name: ''
+        name: '文库首页-' + item.name
       },
       next: () => {
         this.goContent(item)