优化问题

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); return uni.api.get("/distirict/comShopList", data);
}, },
loginOut(data) { //退出登录 loginOut(data) { //退出登录
return uni.api.post("/login /loginOut", data); return uni.api.post("/login/loginOut", data);
}, },
productqueryShopIdByTableCode(data) { //通过桌码获取shopId productqueryShopIdByTableCode(data) { //通过桌码获取shopId
return uni.api.get("/product/queryShopIdByTableCode", data); return uni.api.get("/product/queryShopIdByTableCode", data);

View File

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

View File

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

View File

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

View File

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