|
...
|
...
|
@@ -76,8 +76,8 @@ Page({ |
|
|
|
identity:options.identity
|
|
|
|
},
|
|
|
|
})
|
|
|
|
console.log('optionsoptions',{...options});
|
|
|
|
this.getCookList()
|
|
|
|
console.log('options',{...options});
|
|
|
|
options.oid?this.getCookList():this.initOrder()
|
|
|
|
mta.Page.init({
|
|
|
|
"appID": "500667280",
|
|
|
|
"eventID": "500667287",
|
|
...
|
...
|
@@ -233,6 +233,7 @@ Page({ |
|
|
|
},
|
|
|
|
// 扫桌码点餐
|
|
|
|
initOrder() {
|
|
|
|
let type=this.data.options.oid?'0':'1'
|
|
|
|
App.Advance.CreateOrder({
|
|
|
|
rid: this.data.options.rid,
|
|
|
|
identity: this.data.options.identity,
|
|
...
|
...
|
@@ -263,6 +264,7 @@ Page({ |
|
|
|
orderItemCount: orderItemCount,
|
|
|
|
checkCookbooklist: res.data.cookbooklist,
|
|
|
|
})
|
|
|
|
type?this.getCookList():''
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 过滤数据
|
|
...
|
...
|
@@ -517,7 +519,7 @@ Page({ |
|
|
|
* 生命周期函数--监听页面显示
|
|
|
|
*/
|
|
|
|
onShow() {
|
|
|
|
this.initOrder()
|
|
|
|
this.data.options.oid?this.initOrder():'';
|
|
|
|
},
|
|
|
|
// 展示做法规格弹窗
|
|
|
|
showCheckModal() {
|
...
|
...
|
|