优化问题
This commit is contained in:
parent
48b569f49d
commit
af720a1bab
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue