沙盘演示系统应用的微信小程序
zuoxiao
2024-11-04 578e51b21621b2f2426721ee91e8be33eff41cac
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({