Sfoglia il codice sorgente

贷款-页面标题优化

panyong 4 anni fa
parent
commit
287d7b8d3a

+ 1 - 1
htmldev/loan/src/views/loan/agreement/index.vue

@@ -126,7 +126,7 @@
     name: 'agreement',
     async mounted () {
       await this.$nextTick()
-      this.$refreshTitle('协议')
+      this.$refreshTitle('服务协议')
     }
   }
 </script>

+ 10 - 0
htmldev/loan/src/views/loan/apply/index.vue

@@ -186,6 +186,11 @@
           clearInterval(this.timer)
         }
       }
+      this.$nextTick(() => {
+        if (this.productInfo.productName) {
+          this.$refreshTitle(this.productInfo.productName)
+        }
+      })
       this.$route.meta.isUseCache = false
     },
     methods: {
@@ -256,6 +261,11 @@
         sendSMS(orderUserPhone, 0, capture).then(res => {
           if (res.status) {
             Toast('发送成功')
+          } else {
+            Toast(res.msg)
+            this.funUpdateCapture()
+            clearInterval(this.timer)
+            this.numCount = 60
           }
         }).catch(err => {
           Toast(err.msg)

+ 3 - 4
htmldev/loan/src/views/loan/coupon/index.vue

@@ -51,10 +51,6 @@
         numPositionY: 0
       }
     },
-    async mounted () {
-      await this.$nextTick()
-      this.$refreshTitle('优惠券')
-    },
     activated () {
       if (!this.$route.meta.isUseCache) {
         this.pager = {
@@ -75,6 +71,9 @@
           }
         })
       }
+      this.$nextTick(() => {
+        this.$refreshTitle('优惠券')
+      })
       this.$route.meta.isUseCache = false
     },
     methods: {

+ 3 - 4
htmldev/loan/src/views/loan/home/index.vue

@@ -87,10 +87,9 @@
         })
       }
       this.$route.meta.isUseCache = false
-    },
-    async mounted () {
-      await this.$nextTick()
-      this.$refreshTitle('进度查询')
+      this.$nextTick(() => {
+        this.$refreshTitle('进度查询')
+      })
     },
     methods: {
       funFetch () {

+ 0 - 1
htmldev/loan/src/views/loan/mine/index.vue

@@ -99,7 +99,6 @@
     height: 64px;
     border-radius: 50%;
     overflow: hidden;
-    background: pink;
 
     img {
       display: block;

+ 8 - 1
htmldev/loan/src/views/loan/register/index.vue

@@ -189,7 +189,6 @@
       this.funGetChinaArea()
       await this.$nextTick()
       const textarea = this.$refs.myTextarea
-      this.$refreshTitle('注册')
       if (textarea) {
         this.handleTextarea(textarea)
         textarea.addEventListener('input', this.handleTextarea(textarea, 1), false)
@@ -240,6 +239,9 @@
           clearInterval(this.timer)
         }
       }
+      this.$nextTick(() => {
+        this.$refreshTitle('注册')
+      })
       this.$route.meta.isUseCache = false
     },
     methods: {
@@ -313,6 +315,11 @@
         sendSMS(orderUserPhone, 3, capture).then(res => {
           if (res.status) {
             Toast('发送成功')
+          } else {
+            Toast(res.msg)
+            this.funUpdateCapture()
+            clearInterval(this.timer)
+            this.numCount = 60
           }
         }).catch(err => {
           Toast(err.msg)

+ 5 - 1
htmldev/loan/src/views/loan/vipAgreement/index.vue

@@ -92,7 +92,11 @@
 
 <script>
   export default {
-    name: 'vipAgreement'
+    name: 'vipAgreement',
+    async mounted () {
+      await this.$nextTick()
+      this.$refreshTitle('会员协议')
+    }
   }
 </script>