修改bug
This commit is contained in:
parent
ff6396b25e
commit
46f59eb2c0
@ -60,8 +60,9 @@
|
|||||||
totalDetail: '',
|
totalDetail: '',
|
||||||
show: false,
|
show: false,
|
||||||
query: {
|
query: {
|
||||||
mtUserId: '',
|
|
||||||
storeId: '',
|
storeId: '',
|
||||||
|
mtUserId: '',
|
||||||
|
chainStoreId: '',
|
||||||
recordName: '储值卡',
|
recordName: '储值卡',
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10
|
pageSize: 10
|
||||||
@ -77,6 +78,8 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
this.query.storeId = uni.getStorageSync("storeId")
|
||||||
|
this.query.chainStoreId = uni.getStorageSync('chainStoreId')
|
||||||
this.list = []
|
this.list = []
|
||||||
this.getUserBalance();
|
this.getUserBalance();
|
||||||
this.getAllOrderList();
|
this.getAllOrderList();
|
||||||
@ -109,12 +112,18 @@
|
|||||||
},
|
},
|
||||||
getUserBalance() {
|
getUserBalance() {
|
||||||
request({
|
request({
|
||||||
url: '/business/userManager/user/getUserBalance',
|
url: '/business/userManager/user/getUserBalanceApplet',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: this.query
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res)
|
if (res.data) {
|
||||||
if (res.code == 200) {
|
this.cardBalance = res.data.cardBalance,
|
||||||
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