From 46f59eb2c09ae9bf2907c19f37ee00cac6950c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Thu, 4 Jan 2024 15:19:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pagesMy/moneyBalance/moneyBalance.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/gasStation-uni/pagesMy/moneyBalance/moneyBalance.vue b/gasStation-uni/pagesMy/moneyBalance/moneyBalance.vue index 0b4ec033c..50e76d11c 100644 --- a/gasStation-uni/pagesMy/moneyBalance/moneyBalance.vue +++ b/gasStation-uni/pagesMy/moneyBalance/moneyBalance.vue @@ -60,8 +60,9 @@ totalDetail: '', show: false, query: { - mtUserId: '', storeId: '', + mtUserId: '', + chainStoreId: '', recordName: '储值卡', pageNo: 1, pageSize: 10 @@ -77,6 +78,8 @@ }, onShow() { + this.query.storeId = uni.getStorageSync("storeId") + this.query.chainStoreId = uni.getStorageSync('chainStoreId') this.list = [] this.getUserBalance(); this.getAllOrderList(); @@ -109,12 +112,18 @@ }, getUserBalance() { request({ - url: '/business/userManager/user/getUserBalance', + url: '/business/userManager/user/getUserBalanceApplet', method: 'get', + params: this.query }).then(res => { - console.log(res) - if (res.code == 200) { - this.cardBalance = res.data.cardBalance + if (res.data) { + this.cardBalance = res.data.cardBalance, + this.myPoints = res.data.points, + /* if (res.data.refuelMoney!=null && res.data.refuelMoney!=""){ + this.refuelMoney = JSON.parse(res.data.refuelMoney); + } */ + this.refuelMoney = JSON.parse(res.data.refuelMoney); + console.log("333333333333333", this.refuelMoney); } }) },