优化问题
This commit is contained in:
parent
48b569f49d
commit
af720a1bab
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -316,8 +316,8 @@
|
|||
orderfoodindex() {
|
||||
uni.pro.navigateTo('index/coupons/index', {
|
||||
orderfood: 0,
|
||||
orderId :this.listinfoid,
|
||||
amount: this.listinfo.amounts
|
||||
|
||||
})
|
||||
},
|
||||
copyHandle(e) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
}
|
||||
},
|
||||
// 余额支付
|
||||
|
|
@ -195,6 +198,7 @@
|
|||
} else {
|
||||
// 先判断是否设置支付密码。0是没设置。没设置的情况下跳转到设置页面。有的话输入支付密码
|
||||
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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue