Commit 70429364eff879c045c231be4de52a57ba6d42c8

Authored by yiren
1 parent 5b761896

商家端跳转页面传参修改

... ... @@ -331,6 +331,8 @@ Page({
...this.data.options
}
cookbookObj.hasSuccess = 1
delete cookbookObj.navColor
delete cookbookObj.themeColor
App.Advance.PlaceOrder({
orderid: this.data.options.oid,
rid: this.data.options.rid,
... ...
... ... @@ -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() {
... ...