更新优化

This commit is contained in:
魏啾
2024-06-14 18:30:19 +08:00
parent 139e4039a5
commit cba4e6065e
20 changed files with 94 additions and 258 deletions

View File

@@ -186,8 +186,6 @@
</view> -->
</view>
</view>
<!-- <view class="bottomcontent flex-between">
<view class="bottomcontent_texttop flex-start">
附近推荐

View File

@@ -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)
}
}
}