From 1cfe68a69760d0e920fbab7b1d341e95406d8395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Wed, 4 Feb 2026 17:12:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=B9=E6=AF=94=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E5=8A=9F=E8=83=BD=E7=AC=AC=E4=BA=8C=E6=AC=A1=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=97=A0=E6=95=88=E6=9E=9C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom-tab-bar/index.js | 6 +++--- pages/goods-detail/goods-detail.js | 10 ++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index d4f40c8..118e4d2 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -37,7 +37,7 @@ Component({ // 延迟重置导航锁,确保导航操作有足够时间完成 setTimeout(() => { this.setData({ navigating: false }); - }, 5000); + }, 1000); return true; }, // 切换tab页面的方法 - 增强版,改进状态管理 @@ -412,8 +412,8 @@ Component({ // 额外确保profile页面状态正确 setTimeout(() => { this.forceUpdateSelectedState('profile') - }, 200) - }, 200) + }, 100) + }, 100) } else { // 其他页面使用适当延迟 setTimeout(() => { diff --git a/pages/goods-detail/goods-detail.js b/pages/goods-detail/goods-detail.js index b80613d..54a5747 100644 --- a/pages/goods-detail/goods-detail.js +++ b/pages/goods-detail/goods-detail.js @@ -875,7 +875,7 @@ Page({ // 延迟重置导航锁,确保导航操作有足够时间完成 setTimeout(() => { this.setData({ navigating: false }); - }, 4000); + }, 1000); return true; }, @@ -3030,8 +3030,7 @@ Page({ // 对比价格功能:处理按钮点击事件 onCompareClick: function () { - this.navigateLock(() => { - console.log('用户点击了对比价格按钮,准备显示弹窗'); + console.log('用户点击了对比价格按钮,准备显示弹窗'); // 检查用户登录状态 const openid = wx.getStorageSync('openid'); @@ -3119,9 +3118,8 @@ Page({ this.loadHomeGoods(); // 加载收藏数据 - this.loadFavoriteGoods(); - }.bind(this)).exec(); - }); + this.loadFavoriteGoods(); + }.bind(this)).exec(); }, // 关闭对比价格弹窗