| | |
| | | const data = { |
| | | sessionId: getApp().globalData.sessionId, |
| | | vcId: this.data.vcId, //虚拟卡ID |
| | | rechargeAmount: this.data.moneyList[this.data.activeIndex]//(单位是分) |
| | | rechargeAmount: this.data.moneyList[this.data.activeIndex].rechargeAmount//(单位是分) |
| | | }; |
| | | console.log("postCloseValaue" + data); |
| | | post({ |
| | |
| | | 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({ |