From e8b7cd91802fafd5acdfa8b12748848a89921dab Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Thu, 30 Apr 2026 10:44:48 +0800
Subject: [PATCH] UI: 澜品优选优化绑卡发短信倒计时调整that.isCounting = true的位置

---
 pages/quanyi/add.vue |   31 ++++++++++++++++++++-----------
 1 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/pages/quanyi/add.vue b/pages/quanyi/add.vue
index c04f888..3f28fed 100644
--- a/pages/quanyi/add.vue
+++ b/pages/quanyi/add.vue
@@ -173,13 +173,13 @@
   mounted(){
 	  // this.$refs.codeUi.open()
     this.windowHeight = uni.getSystemInfoSync().windowHeight;
-    this.interval = setInterval(() => {
-      let newHeight = window.innerHeight;
-      if (this.windowHeight !== newHeight) {
-        this.windowHeight = newHeight;
-        this.handleResize();
-      }
-    }, 200);
+    // this.interval = setInterval(() => {
+    //   let newHeight = window.innerHeight;
+    //   if (this.windowHeight !== newHeight) {
+    //     this.windowHeight = newHeight;
+    //     this.handleResize();
+    //   }
+    // }, 200);
   },
   methods: {
     kk(){
@@ -449,7 +449,7 @@
         });
 
 
-        that.isCounting = true;
+        // that.isCounting = true;
 
 
 
@@ -473,7 +473,15 @@
             "bankId": "1",
 
           },
-          success(){
+          success(response){
+			  if(response.data.code != 200) {
+				  uni.showToast({
+				    title: response.data.data,
+				    icon: 'none'
+				  });
+				  return;
+			  }
+			  
             uni.request({
               url: that.$webHost+'/api/v2/pay/bindCardToCodes',
               method:'POST',
@@ -507,7 +515,7 @@
                   })
                   return;
                 }
-
+				that.isCounting = true;
                 if(res.data.code === 200){
                   that.bindCardId = res.data.data;
                 } else {
@@ -539,6 +547,7 @@
 
               }
             })
+			
 
             let count = 60;
             that.countText = `${count}s秒后重新获取`;
@@ -1258,7 +1267,7 @@
       <addAddress :addressDetail="addressDetail" @off="$refs.address.close()" @submit="e => addressDetail = e"></addAddress>
     </uv-popup>
 
-    <!-- <text-box v-if="showTextBox" ref="textBox" :getPlatformProtocolNewList="getPlatformProtocolNewList"></text-box> -->
+    <text-box v-if="showTextBox" ref="textBox" :getPlatformProtocolNewList="getPlatformProtocolNewList"></text-box>
   </view>
 </template>
 

--
Gitblit v1.9.3