From 2506d5d77b57575df2f0d33fa56d89895fdecbc0 Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Wed, 27 May 2026 15:52:16 +0800
Subject: [PATCH] feat:星享购 绑卡 倒计时优化+首页新增“退款政策”弹窗

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

diff --git a/pages/quanyi/add.vue b/pages/quanyi/add.vue
index 3413834..05aa695 100644
--- a/pages/quanyi/add.vue
+++ b/pages/quanyi/add.vue
@@ -64,8 +64,8 @@
         fontSize: "30rpx",
         fontWeight: "bold",
       },
-      bindStatus:false
-
+      bindStatus:false,
+		getSmsCodeTimer: null,
 
     };
   },
@@ -585,6 +585,7 @@
     },
       getSmsCode(){
         const that = this;
+		clearInterval(that.getSmsCodeTimer);
         console.log(that.getPayBindCardInfo[0].paymentMethod);
         if(this.isCounting){
           return
@@ -709,11 +710,11 @@
             that.countText = `${count}s秒后重新获取`;
 
 
-            const timer = setInterval(() => {
+            that.getSmsCodeTimer = setInterval(() => {
               count--;
               that.countText = `${count}s秒后重新获取`;
               if (count <= 0) {
-                clearInterval(timer);
+                clearInterval(that.getSmsCodeTimer);
                 that.isCounting = false;
                 that.countText = '';
               }
@@ -1089,7 +1090,7 @@
 				  <text>银行卡号</text>
 				</view>
 				<view class="inp_box">
-				  <input type="number" maxlength="30"  @blur="validateAndCacheCardInfo" v-model="cardNumber" class="inp" placeholder="请输入银行卡号" />
+				  <input type="number" maxlength="19"  @blur="validateAndCacheCardInfo" v-model="cardNumber" class="inp" placeholder="请输入银行卡号" />
 				  <image @click="cardNumber=''" v-show="!bindStatus && cardNumber" :src="offIcon" style="width: 40rpx;height: 40rpx;position: absolute;right: 0rpx;top: 30rpx;"></image>
 				</view>
 

--
Gitblit v1.9.3