pages/rechargeMoney/rechargMoney.js
@@ -39,7 +39,8 @@ * 生命周期函数--监听页面初次渲染完成 */ onReady() { this.getRechargList() this.getRechargList(); this. getMorneyList(); }, /** @@ -218,10 +219,16 @@ url: 'wx/virtual_card/gerRechargeProfiles' }; get(params).then(data => { this.setData({ moneyList: data.content , const updatedList= data.content.map(item=>{ let money=item.rechargeAmount/100; return { ...item, money }; }) this.updateDisplayText(); this.setData({ moneyList: updatedList , }) }).catch(err => { // 错误回调 wx.showToast({