Commit 70429364eff879c045c231be4de52a57ba6d42c8

Authored by yiren
1 parent 5b761896

商家端跳转页面传参修改

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