Showing
1 changed file
with
10 additions
and
11 deletions
| @@ -35,7 +35,6 @@ Page({ | @@ -35,7 +35,6 @@ Page({ | ||
| 35 | textColor:'', | 35 | textColor:'', |
| 36 | navColor:'', | 36 | navColor:'', |
| 37 | isOrder:false,// 是否可以下单(超过该预订的餐段截止时间,不可以下单)(true 超过了 false 在时间内,可以预订) | 37 | isOrder:false,// 是否可以下单(超过该预订的餐段截止时间,不可以下单)(true 超过了 false 在时间内,可以预订) |
| 38 | - bookStatus:'',//预订状态 | ||
| 39 | }, | 38 | }, |
| 40 | /** | 39 | /** |
| 41 | * 生命周期函数--监听页面加载 | 40 | * 生命周期函数--监听页面加载 |
| @@ -115,7 +114,6 @@ Page({ | @@ -115,7 +114,6 @@ Page({ | ||
| 115 | tablesText | 114 | tablesText |
| 116 | }, | 115 | }, |
| 117 | isOrder, | 116 | isOrder, |
| 118 | - bookStatus:reserev.status, | ||
| 119 | }) | 117 | }) |
| 120 | setTimeout(() => { | 118 | setTimeout(() => { |
| 121 | this.getCheckCookList(obj) | 119 | this.getCheckCookList(obj) |
| @@ -354,12 +352,6 @@ Page({ | @@ -354,12 +352,6 @@ Page({ | ||
| 354 | }, | 352 | }, |
| 355 | // 确认下单 | 353 | // 确认下单 |
| 356 | determineFun() { | 354 | determineFun() { |
| 357 | - if(this.data.bookStatus == '4'){ | ||
| 358 | - return wx.showToast({ | ||
| 359 | - title: '该订单已取消,无法下单!', | ||
| 360 | - icon: 'none', | ||
| 361 | - }) | ||
| 362 | - } | ||
| 363 | if (!this.data.noData) { | 355 | if (!this.data.noData) { |
| 364 | let data = { | 356 | let data = { |
| 365 | ...this.data.options | 357 | ...this.data.options |
| @@ -373,9 +365,16 @@ Page({ | @@ -373,9 +365,16 @@ Page({ | ||
| 373 | identity: this.data.options.identity, | 365 | identity: this.data.options.identity, |
| 374 | remark:this.data.notes+'' | 366 | remark:this.data.notes+'' |
| 375 | }).then(res => { | 367 | }).then(res => { |
| 376 | - wx.redirectTo({ | ||
| 377 | - 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}` | ||
| 378 | - }) | 368 | + if(res.ret == 200){ |
| 369 | + wx.redirectTo({ | ||
| 370 | + 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}` | ||
| 371 | + }) | ||
| 372 | + }else{ | ||
| 373 | + wx.showToast({ | ||
| 374 | + title: res.msg, | ||
| 375 | + icon: 'none', | ||
| 376 | + }) | ||
| 377 | + } | ||
| 379 | }) | 378 | }) |
| 380 | } | 379 | } |
| 381 | }, | 380 | }, |
-
Please register or login to post a comment