Commit bb8178acb5da2f488e5092f95c357e2acbaebaf1

Authored by pengye
1 parent f489ca3f

提前点餐已取消的预订不能下单

... ... @@ -35,7 +35,6 @@ Page({
textColor:'',
navColor:'',
isOrder:false,// 是否可以下单(超过该预订的餐段截止时间,不可以下单)(true 超过了 false 在时间内,可以预订)
bookStatus:'',//预订状态
},
/**
* 生命周期函数--监听页面加载
... ... @@ -115,7 +114,6 @@ Page({
tablesText
},
isOrder,
bookStatus:reserev.status,
})
setTimeout(() => {
this.getCheckCookList(obj)
... ... @@ -354,12 +352,6 @@ Page({
},
// 确认下单
determineFun() {
if(this.data.bookStatus == '4'){
return wx.showToast({
title: '该订单已取消,无法下单!',
icon: 'none',
})
}
if (!this.data.noData) {
let data = {
...this.data.options
... ... @@ -373,9 +365,16 @@ Page({
identity: this.data.options.identity,
remark:this.data.notes+''
}).then(res => {
wx.redirectTo({
url: `/pack-cookbook/pages/success_new?hasSuccess=${data.hasSuccess}&type=1&identity=${data.identity}&oid=${data.oid}&rid=${data.rid}&sellerName=${data.sellerName}&sid=${data.sid}`
})
if(res.ret == 200){
wx.redirectTo({
url: `/pack-cookbook/pages/success_new?hasSuccess=${data.hasSuccess}&type=1&identity=${data.identity}&oid=${data.oid}&rid=${data.rid}&sellerName=${data.sellerName}&sid=${data.sid}`
})
}else{
wx.showToast({
title: res.msg,
icon: 'none',
})
}
})
}
},
... ...