From 0030ea46a7a3b7a1f9ee2e36fcb7e8ceb2b947db 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: Fri, 2 Jan 2026 10:21:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BA=95=E9=83=A8=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=A0=8F=E5=92=8C=E9=A1=B5=E9=9D=A2=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom-tab-bar/index.js | 23 +---------------------- pages/goods-detail/goods-detail.wxml | 9 +++++---- pages/index/index.wxml | 2 +- 3 files changed, 7 insertions(+), 27 deletions(-) diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index 150170a..0e7a139 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -176,28 +176,7 @@ Component({ }) }, - // 跳转到估价页面 - goToEvaluatePage() { - wx.switchTab({ - url: '/pages/evaluate/index', - success: () => { - console.log('跳转到估价页面成功') - }, - fail: (err) => { - console.error('跳转到估价页面失败:', err) - // 如果switchTab失败,尝试使用navigateTo - wx.navigateTo({ - url: '/pages/evaluate/index', - success: () => { - console.log('使用navigateTo跳转到估价页面成功') - }, - fail: (err2) => { - console.error('navigateTo也失败:', err2) - } - }) - } - }) - }, + // 从全局数据同步状态的方法 - 增强版 syncFromGlobalData() { diff --git a/pages/goods-detail/goods-detail.wxml b/pages/goods-detail/goods-detail.wxml index 19e6ed6..615552f 100644 --- a/pages/goods-detail/goods-detail.wxml +++ b/pages/goods-detail/goods-detail.wxml @@ -70,12 +70,13 @@ {{goodsDetail.region || '暂无'}} + - 规格 + 关注人数 - {{goodsDetail.spec || '暂无'}} + {{goodsDetail.reservedCount || '0'}} @@ -108,10 +109,10 @@ - 关注人数 + 规格 - {{goodsDetail.reservedCount || '0'}} + {{goodsDetail.spec || '暂无'}} diff --git a/pages/index/index.wxml b/pages/index/index.wxml index dd3daae..920c870 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -183,7 +183,7 @@ - 没有更多商品了 + 货源正在快马加鞭的赶来