沙盘演示系统应用的微信小程序
pages/rechargeMoney/rechargMoney.js
@@ -105,7 +105,7 @@
    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({
@@ -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 => {
      // 错误回调