优化问题

This commit is contained in:
duan 2024-05-27 13:36:21 +08:00
parent 48b569f49d
commit af720a1bab
5 changed files with 14 additions and 6 deletions

View File

@ -143,7 +143,7 @@ export default {
return uni.api.get("/distirict/comShopList", data);
},
loginOut(data) { //退出登录
return uni.api.post("/login /loginOut", data);
return uni.api.post("/login/loginOut", data);
},
productqueryShopIdByTableCode(data) { //通过桌码获取shopId
return uni.api.get("/product/queryShopIdByTableCode", data);

View File

@ -124,6 +124,7 @@
};
},
onLoad(e) {
console.log(e,'调试1')
try {
this.orderfood = e.orderfood //0
this.amount = e.amount
@ -193,7 +194,8 @@
userId: uni.cache.get('userInfo').id,
status: 0,
page: this.form.page,
size: this.form.size
size: this.form.size,
orderId:''
})
try {
this.totalnumber = res.data.total

View File

@ -316,8 +316,8 @@
orderfoodindex() {
uni.pro.navigateTo('index/coupons/index', {
orderfood: 0,
orderId :this.listinfoid,
amount: this.listinfo.amounts
})
},
copyHandle(e) {
@ -423,7 +423,7 @@
} else {
//
// 0
let isVip = uni.cache.get('userInfo').isPwd
let isVip = uni.cache.get('userInfo').isPwd
if (isVip == 0) {
uni.pro.navigateTo('/pages/user/repairpassword', {
shopId_id: uni.cache.get('shopUser')

View File

@ -108,6 +108,8 @@
},
onLoad(e) {
this.getInfo(e.id)
this.orderIds = e.id
this.amount = uni.cache.get('userInfo').amount
this.vipId = uni.cache.get('userInfo').id
@ -134,6 +136,7 @@
})
if (res.code == 0) {
this.amountVIP = res.data
}
},
//
@ -194,7 +197,8 @@
this.payEvent(res.data.id)
} else {
// 0
let isVip = uni.cache.get('userInfo').isPwd
let isVip = uni.cache.get('userInfo').isPwd
console.log(isVip,'调试1')
if (isVip == 0) {
uni.pro.navigateTo('/pages/user/repairpassword', {
shopId_id: uni.cache.get('shopUser')
@ -249,6 +253,7 @@
})
if (res.code == 0) {
this.info = res.data
uni.cache.set('shopUser', res.data.shopId);
//
this.getAount()
}

View File

@ -109,7 +109,8 @@
userId: uni.cache.get('userInfo').id,
status: this.form.statuses,
page: this.form.page,
size: this.form.size
size: this.form.size,
orderId:""
})
if (res.data.pages < this.form.page) {
this.form.status = 'nomore'