Commit 59b62efdda5b7298d5df89cbd0155700b0cab078

Authored by pengye
1 parent 8b5ee3a9

商家端分享充值,充值后跳转路径问题修改

@@ -154,7 +154,7 @@ Page({ @@ -154,7 +154,7 @@ Page({
154 } 154 }
155 }) 155 })
156 }, 156 },
157 - // 支付失败回调 types 1邀请函 2提前点餐 3商家端app分享 157 + // 支付成功/失败回调 types 1邀请函 2提前点餐 3商家端app分享
158 callbackFun() { 158 callbackFun() {
159 let that = this; 159 let that = this;
160 let url = '/pages/customer/detail_owner_invitation1?id=' + that.data.opt.detail.oid; 160 let url = '/pages/customer/detail_owner_invitation1?id=' + that.data.opt.detail.oid;
@@ -192,17 +192,7 @@ Page({ @@ -192,17 +192,7 @@ Page({
192 console.log('充值完成跳转', this.data.opt.detail.oid); 192 console.log('充值完成跳转', this.data.opt.detail.oid);
193 console.log('StyleType',this.data.StyleType); 193 console.log('StyleType',this.data.StyleType);
194 this.closeModal() 194 this.closeModal()
195 - let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17];  
196 - let style =arr.includes(parseInt(this.data.StyleType))  
197 - let url = '';  
198 - if (!style) {  
199 - url = `/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`;  
200 - } else {  
201 - url = `/pages/customer/detail_owner_invitation9?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`;  
202 - }  
203 - wx.reLaunch({  
204 - url  
205 - }) 195 + this.callbackFun()
206 }, 196 },
207 // 绑定名称 197 // 绑定名称
208 bindKeyNameInput(event) { 198 bindKeyNameInput(event) {