From 2f23322d1450993b6cdd20a71cad1ce5735adda6 Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Thu, 07 May 2026 18:05:02 +0800
Subject: [PATCH] feat:澜品优选开启权益权收入口+修复绑卡BUG

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

diff --git a/pages/quanyi/add.vue b/pages/quanyi/add.vue
index e879ff7..1fac832 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(){
@@ -387,6 +387,7 @@
 			  title: e.data.data,
 			  icon: 'none'
 			});
+			return;
           }
           uni.request({
             url:_this.$webHost+`/api/v2/pay/getPayBindCardInfo/${uni.getStorageSync('ygxLogin').customerId}`,
@@ -449,7 +450,7 @@
         });
 
 
-        that.isCounting = true;
+        // that.isCounting = true;
 
 
 
@@ -473,7 +474,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 +516,7 @@
                   })
                   return;
                 }
-
+				that.isCounting = true;
                 if(res.data.code === 200){
                   that.bindCardId = res.data.data;
                 } else {
@@ -539,6 +548,7 @@
 
               }
             })
+			
 
             let count = 60;
             that.countText = `${count}s秒后重新获取`;

--
Gitblit v1.9.3