From f3058f900e3143c0245c9b1686397b6e6e561422 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期五, 08 十一月 2024 10:09:48 +0800 Subject: [PATCH] 1.解绑添加二次确认。2.接口返回的金额都是元 --- 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