From a84175b5e189ac6da0d80ac64f77a4b45e7c9157 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期四, 14 十一月 2024 13:48:34 +0800
Subject: [PATCH] 1.添加瞬时流量相关2.优化界面3.修改原开阀和未关阀列表的sessionId为clientId

---
 pages/rechargeMoney/rechargMoney.js |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/pages/rechargeMoney/rechargMoney.js b/pages/rechargeMoney/rechargMoney.js
index dd295fc..1d9d079 100644
--- a/pages/rechargeMoney/rechargMoney.js
+++ b/pages/rechargeMoney/rechargMoney.js
@@ -105,7 +105,7 @@
     const data = {
       sessionId: getApp().globalData.sessionId,
       vcId: this.data.vcId, //铏氭嫙鍗D
-      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 => {
       // 閿欒鍥炶皟

--
Gitblit v1.8.0