From 4a33335da6f6ccbb13427d317d23b0c74d019fbb Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期一, 14 四月 2025 17:56:16 +0800 Subject: [PATCH] 新增测试数据功能,允许在首页和取水口页面使用模拟数据进行测试,优化用户体验。 --- pages/rechargeMoney/rechargMoney.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/rechargeMoney/rechargMoney.js b/pages/rechargeMoney/rechargMoney.js index f33ae44..1d9d079 100644 --- a/pages/rechargeMoney/rechargMoney.js +++ b/pages/rechargeMoney/rechargMoney.js @@ -105,7 +105,7 @@ const data = { sessionId: getApp().globalData.sessionId, vcId: this.data.vcId, //铏氭嫙鍗D - rechargeAmount: this.data.moneyList[this.data.activeIndex]//锛堝崟浣嶆槸鍒嗭級 + rechargeAmount: this.data.moneyList[this.data.activeIndex].rechargeAmount//锛堝崟浣嶆槸鍏冿級 }; console.log("postCloseValaue" + data); post({ @@ -200,9 +200,10 @@ this.getRechargList(); } }, + //澶勭悊鍏呭�艰褰曠殑鏁版嵁 updateDisplayText() { const updatedList = this.data.allRechargeList.map(item => { - let morny = item.rechargeAmount / 100 + "鍏�" + let morny = item.rechargeAmount + "鍏�" return { ...item, morny @@ -220,9 +221,8 @@ }; get(params).then(data => { this.setData({ - moneyList: data.content , + moneyList: data.content , }) - this.updateDisplayText(); }).catch(err => { // 閿欒鍥炶皟 wx.showToast({ -- Gitblit v1.8.0