From ffe748f8069aeeaf0ffae846f7c09210ce64da4b Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期三, 18 十二月 2024 11:29:00 +0800 Subject: [PATCH] 修改表述文字 --- pages/rechargeMoney/rechargMoney.js | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/pages/rechargeMoney/rechargMoney.js b/pages/rechargeMoney/rechargMoney.js index c12738e..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//锛堝崟浣嶆槸鍒嗭級 + 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 @@ -219,15 +220,8 @@ url: 'wx/virtual_card/gerRechargeProfiles' }; get(params).then(data => { - const updatedList= data.content.map(item=>{ - let money=item.rechargeAmount/100; - return { - ...item, - money - }; - }) this.setData({ - moneyList: updatedList , + moneyList: data.content , }) }).catch(err => { // 閿欒鍥炶皟 -- Gitblit v1.8.0