|
@@ -76,8 +76,8 @@ Page({ |
|
@@ -76,8 +76,8 @@ Page({ |
|
76
|
identity:options.identity
|
76
|
identity:options.identity
|
|
77
|
},
|
77
|
},
|
|
78
|
})
|
78
|
})
|
|
79
|
- console.log('optionsoptions',{...options});
|
|
|
|
80
|
- this.getCookList()
|
79
|
+ console.log('options',{...options});
|
|
|
|
80
|
+ options.oid?this.getCookList():this.initOrder()
|
|
81
|
mta.Page.init({
|
81
|
mta.Page.init({
|
|
82
|
"appID": "500667280",
|
82
|
"appID": "500667280",
|
|
83
|
"eventID": "500667287",
|
83
|
"eventID": "500667287",
|
|
@@ -233,6 +233,7 @@ Page({ |
|
@@ -233,6 +233,7 @@ Page({ |
|
233
|
},
|
233
|
},
|
|
234
|
// 扫桌码点餐
|
234
|
// 扫桌码点餐
|
|
235
|
initOrder() {
|
235
|
initOrder() {
|
|
|
|
236
|
+ let type=this.data.options.oid?'0':'1'
|
|
236
|
App.Advance.CreateOrder({
|
237
|
App.Advance.CreateOrder({
|
|
237
|
rid: this.data.options.rid,
|
238
|
rid: this.data.options.rid,
|
|
238
|
identity: this.data.options.identity,
|
239
|
identity: this.data.options.identity,
|
|
@@ -263,6 +264,7 @@ Page({ |
|
@@ -263,6 +264,7 @@ Page({ |
|
263
|
orderItemCount: orderItemCount,
|
264
|
orderItemCount: orderItemCount,
|
|
264
|
checkCookbooklist: res.data.cookbooklist,
|
265
|
checkCookbooklist: res.data.cookbooklist,
|
|
265
|
})
|
266
|
})
|
|
|
|
267
|
+ type?this.getCookList():''
|
|
266
|
})
|
268
|
})
|
|
267
|
},
|
269
|
},
|
|
268
|
// 过滤数据
|
270
|
// 过滤数据
|
|
@@ -517,7 +519,7 @@ Page({ |
|
@@ -517,7 +519,7 @@ Page({ |
|
517
|
* 生命周期函数--监听页面显示
|
519
|
* 生命周期函数--监听页面显示
|
|
518
|
*/
|
520
|
*/
|
|
519
|
onShow() {
|
521
|
onShow() {
|
|
520
|
- this.initOrder()
|
522
|
+ this.data.options.oid?this.initOrder():'';
|
|
521
|
},
|
523
|
},
|
|
522
|
// 展示做法规格弹窗
|
524
|
// 展示做法规格弹窗
|
|
523
|
showCheckModal() {
|
525
|
showCheckModal() {
|