Commit 9134b8ef92c49463b910e8af88a3b967281e0e56

Authored by vking
1 parent 83569ad6

对接商户端跳入

@@ -40,6 +40,10 @@ Page({ @@ -40,6 +40,10 @@ Page({
40 this.reserveId=opt.rid 40 this.reserveId=opt.rid
41 delete opt.rid 41 delete opt.rid
42 } 42 }
  43 + if(opt.goPath){//商户端跳入带入的参数
  44 + this.goPath=opt.goPath
  45 + delete opt.goPath
  46 + }
43 this.indexOpt=opt; 47 this.indexOpt=opt;
44 mta.Page.init({ 48 mta.Page.init({
45 "appID":"500667280", 49 "appID":"500667280",
@@ -108,6 +112,11 @@ Page({ @@ -108,6 +112,11 @@ Page({
108 url:url 112 url:url
109 }) 113 })
110 } 114 }
  115 + if(this.goPath){
  116 + return wx.reLaunch({
  117 + url:'./'+this.goPath
  118 + })
  119 + }
111 }, 120 },
112 async getbooklist(isExport=false){ 121 async getbooklist(isExport=false){
113 let time=0; 122 let time=0;
@@ -220,7 +220,7 @@ @@ -220,7 +220,7 @@
220 "id": 21, 220 "id": 21,
221 "name": "预订本-80商家", 221 "name": "预订本-80商家",
222 "pathName": "pack-book/pages/book/b_index", 222 "pathName": "pack-book/pages/book/b_index",
223 - "query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=763&rid=33354", 223 + "query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=763&goPath=b_addnew",
224 "scene": 1001 224 "scene": 1001
225 }, 225 },
226 { 226 {