修改bug
This commit is contained in:
parent
ff6396b25e
commit
46f59eb2c0
@ -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);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user