更新优化
This commit is contained in:
@@ -186,8 +186,6 @@
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- <view class="bottomcontent flex-between">
|
||||
<view class="bottomcontent_texttop flex-start">
|
||||
附近推荐
|
||||
|
||||
@@ -129,10 +129,10 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getAount() {
|
||||
async getAount(shopUser) {
|
||||
let res = await this.api.shopUserInfo({
|
||||
// shopId:店铺ID
|
||||
"shopId": this.$store.state.shopId,
|
||||
"shopId": shopUser,
|
||||
"userId": uni.cache.get('userInfo').id
|
||||
})
|
||||
if (res.code == 0) {
|
||||
@@ -161,7 +161,8 @@
|
||||
setTimeout(res => {
|
||||
uni.redirectTo({
|
||||
url: '/pages/order/successful?orderId=' + this
|
||||
.listinfoid.id + '&orderInfo=' + JSON.stringify(orderInfo)+'&radiovalue1=' + this.radiovalue1
|
||||
.listinfoid.id + '&orderInfo=' + JSON.stringify(
|
||||
orderInfo) + '&radiovalue1=' + this.radiovalue1
|
||||
});
|
||||
}, 1000)
|
||||
}
|
||||
@@ -258,9 +259,8 @@
|
||||
})
|
||||
if (res.code == 0) {
|
||||
this.info = res.data
|
||||
uni.cache.set('shopUser', res.data.shopId);
|
||||
// 获取余额
|
||||
this.getAount()
|
||||
this.getAount(res.data.shopId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user