|  |  |  | 
|---|
|  |  |  | 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({ | 
|---|
|  |  |  | 
|---|
|  |  |  | this.getRechargList(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //处理充值记录的数据 | 
|---|
|  |  |  | updateDisplayText() { | 
|---|
|  |  |  | const updatedList = this.data.allRechargeList.map(item => { | 
|---|
|  |  |  | let morny = item.rechargeAmount / 100 + "元" | 
|---|
|  |  |  | let morny = item.rechargeAmount  + "元" | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | ...item, | 
|---|
|  |  |  | morny | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 => { | 
|---|
|  |  |  | // 错误回调 | 
|---|