Showing
4 changed files
with
56 additions
and
7 deletions
| @@ -156,7 +156,13 @@ Page({ | @@ -156,7 +156,13 @@ Page({ | ||
| 156 | let url = '/pages/customer/detail_owner_invitation1?id=' + that.data.opt.detail.oid; | 156 | let url = '/pages/customer/detail_owner_invitation1?id=' + that.data.opt.detail.oid; |
| 157 | if(that.data.opt.types == '1'){ | 157 | if(that.data.opt.types == '1'){ |
| 158 | console.log('StyleType',this.data.StyleType); | 158 | console.log('StyleType',this.data.StyleType); |
| 159 | - url = `/pages/customer/detail_owner_invitation${that.data.StyleType}?id=${that.data.opt.detail.oid}`; | 159 | + let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17]; |
| 160 | + let style =arr.includes(parseInt(this.data.StyleType)) | ||
| 161 | + if (!style) { | ||
| 162 | + url = `/pages/customer/detail_owner_invitation${that.data.StyleType}?id=${that.data.opt.detail.oid}`; | ||
| 163 | + } else { | ||
| 164 | + url = `/pages/customer/detail_owner_invitation9?id=${that.data.opt.detail.oid}`; | ||
| 165 | + } | ||
| 160 | } | 166 | } |
| 161 | if (that.data.opt.types == '2') { | 167 | if (that.data.opt.types == '2') { |
| 162 | let data={} | 168 | let data={} |
| @@ -182,8 +188,16 @@ Page({ | @@ -182,8 +188,16 @@ Page({ | ||
| 182 | console.log('充值完成跳转', this.data.opt.detail.oid); | 188 | console.log('充值完成跳转', this.data.opt.detail.oid); |
| 183 | console.log('StyleType',this.data.StyleType); | 189 | console.log('StyleType',this.data.StyleType); |
| 184 | this.closeModal() | 190 | this.closeModal() |
| 191 | + let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17]; | ||
| 192 | + let style =arr.includes(parseInt(this.data.StyleType)) | ||
| 193 | + let url = ''; | ||
| 194 | + if (!style) { | ||
| 195 | + url = `/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`; | ||
| 196 | + } else { | ||
| 197 | + url = `/pages/customer/detail_owner_invitation9?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`; | ||
| 198 | + } | ||
| 185 | wx.reLaunch({ | 199 | wx.reLaunch({ |
| 186 | - url:`/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1` | 200 | + url |
| 187 | }) | 201 | }) |
| 188 | }, | 202 | }, |
| 189 | // 绑定名称 | 203 | // 绑定名称 |
| @@ -350,8 +364,16 @@ Page({ | @@ -350,8 +364,16 @@ Page({ | ||
| 350 | navEvent() { | 364 | navEvent() { |
| 351 | // 1 邀请函 2 提前点餐 3商家端分享 | 365 | // 1 邀请函 2 提前点餐 3商家端分享 |
| 352 | if (this.data.opt.types == '1') { | 366 | if (this.data.opt.types == '1') { |
| 367 | + let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17]; | ||
| 368 | + let style =arr.includes(parseInt(this.data.StyleType)) | ||
| 369 | + let url = ''; | ||
| 370 | + if (!style) { | ||
| 371 | + url = `/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}`; | ||
| 372 | + } else { | ||
| 373 | + url = `/pages/customer/detail_owner_invitation9?id=${this.data.opt.detail.oid}`; | ||
| 374 | + } | ||
| 353 | return wx.reLaunch({ | 375 | return wx.reLaunch({ |
| 354 | - url:`/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}` | 376 | + url |
| 355 | }) | 377 | }) |
| 356 | } | 378 | } |
| 357 | if (this.data.opt.types == '2') { | 379 | if (this.data.opt.types == '2') { |
| @@ -68,8 +68,16 @@ Page({ | @@ -68,8 +68,16 @@ Page({ | ||
| 68 | sid:this.detail.seller.id | 68 | sid:this.detail.seller.id |
| 69 | }).then(res => { | 69 | }).then(res => { |
| 70 | if(res.data && res.data.type){ | 70 | if(res.data && res.data.type){ |
| 71 | + let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17]; | ||
| 72 | + let style =arr.includes(parseInt(this.data.StyleType)) | ||
| 73 | + let url = ''; | ||
| 74 | + if (!style) { | ||
| 75 | + url = `/pages/customer/detail_owner_invitation${res.data.type}?id=${this.detail.id}&hasInvitation=1&hasSellerShare=1&tplid=1`; | ||
| 76 | + } else { | ||
| 77 | + url = `/pages/customer/detail_owner_invitation9?id=${this.detail.id}&hasInvitation=1&hasSellerShare=1&tplid=1`; | ||
| 78 | + } | ||
| 71 | wx.navigateTo({ | 79 | wx.navigateTo({ |
| 72 | - url:`/pages/customer/detail_owner_invitation${res.data.type}?id=${this.detail.id}&hasInvitation=1&hasSellerShare=1&tplid=1` | 80 | + url |
| 73 | }) | 81 | }) |
| 74 | } | 82 | } |
| 75 | }) | 83 | }) |
| @@ -141,15 +141,26 @@ Page({ | @@ -141,15 +141,26 @@ Page({ | ||
| 141 | console.log('type',res.data.seller.temp_config_type); | 141 | console.log('type',res.data.seller.temp_config_type); |
| 142 | let configType=res.data.seller.temp_config_type | 142 | let configType=res.data.seller.temp_config_type |
| 143 | console.log('configType',configType); | 143 | console.log('configType',configType); |
| 144 | + let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17]; | ||
| 144 | if (!res.data.openid) {//无预订人 | 145 | if (!res.data.openid) {//无预订人 |
| 145 | if (opt.hasInvitation == 1 && configType) { | 146 | if (opt.hasInvitation == 1 && configType) { |
| 146 | - url = '/pages/customer/detail_owner_invitation' + configType; | 147 | + let style =arr.includes(parseInt(configType)) |
| 148 | + if (!style) { | ||
| 149 | + url = '/pages/customer/detail_owner_invitation' + configType; | ||
| 150 | + } else { | ||
| 151 | + url = '/pages/customer/detail_owner_invitation9'; | ||
| 152 | + } | ||
| 147 | } else { | 153 | } else { |
| 148 | url = '/pages/customer/detail_owner_invitation1'; | 154 | url = '/pages/customer/detail_owner_invitation1'; |
| 149 | } | 155 | } |
| 150 | } else { | 156 | } else { |
| 151 | if (opt.hasInvitation == 1 && configType) { | 157 | if (opt.hasInvitation == 1 && configType) { |
| 152 | - url = '/pages/customer/detail_owner_invitation' + configType; | 158 | + let style =arr.includes(parseInt(configType)) |
| 159 | + if (!style) { | ||
| 160 | + url = '/pages/customer/detail_owner_invitation' + configType; | ||
| 161 | + } else { | ||
| 162 | + url = '/pages/customer/detail_owner_invitation9'; | ||
| 163 | + } | ||
| 153 | } else if (res.data.openid == opt.openid) { | 164 | } else if (res.data.openid == opt.openid) { |
| 154 | url = '/pages/customer/detail_owner'; | 165 | url = '/pages/customer/detail_owner'; |
| 155 | } else { | 166 | } else { |
| @@ -29,8 +29,16 @@ Page({ | @@ -29,8 +29,16 @@ Page({ | ||
| 29 | App.Seller.GetSellerTemplateConf({ | 29 | App.Seller.GetSellerTemplateConf({ |
| 30 | sid:this.data.sid | 30 | sid:this.data.sid |
| 31 | }).then(res => { | 31 | }).then(res => { |
| 32 | + let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17]; | ||
| 33 | + let style =arr.includes(parseInt(this.data.StyleType)) | ||
| 34 | + let url = '' | ||
| 35 | + if (!style) { | ||
| 36 | + url = `/pages/customer/detail_owner_invitation${res.data.type}?id=${that.data.oid}`; | ||
| 37 | + } else { | ||
| 38 | + url = `/pages/customer/detail_owner_invitation9?id=${that.data.oid}`; | ||
| 39 | + } | ||
| 32 | return wx.reLaunch({ | 40 | return wx.reLaunch({ |
| 33 | - url:`/pages/customer/detail_owner_invitation${res.data.type}?id=${that.data.oid}` | 41 | + url |
| 34 | }) | 42 | }) |
| 35 | }) | 43 | }) |
| 36 | }, | 44 | }, |
-
Please register or login to post a comment