|
...
|
...
|
@@ -156,7 +156,13 @@ Page({ |
|
|
|
let url = '/pages/customer/detail_owner_invitation1?id=' + that.data.opt.detail.oid;
|
|
|
|
if(that.data.opt.types == '1'){
|
|
|
|
console.log('StyleType',this.data.StyleType);
|
|
|
|
url = `/pages/customer/detail_owner_invitation${that.data.StyleType}?id=${that.data.opt.detail.oid}`;
|
|
|
|
let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17];
|
|
|
|
let style =arr.includes(parseInt(this.data.StyleType))
|
|
|
|
if (!style) {
|
|
|
|
url = `/pages/customer/detail_owner_invitation${that.data.StyleType}?id=${that.data.opt.detail.oid}`;
|
|
|
|
} else {
|
|
|
|
url = `/pages/customer/detail_owner_invitation9?id=${that.data.opt.detail.oid}`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (that.data.opt.types == '2') {
|
|
|
|
let data={}
|
|
...
|
...
|
@@ -182,8 +188,16 @@ Page({ |
|
|
|
console.log('充值完成跳转', this.data.opt.detail.oid);
|
|
|
|
console.log('StyleType',this.data.StyleType);
|
|
|
|
this.closeModal()
|
|
|
|
let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17];
|
|
|
|
let style =arr.includes(parseInt(this.data.StyleType))
|
|
|
|
let url = '';
|
|
|
|
if (!style) {
|
|
|
|
url = `/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`;
|
|
|
|
} else {
|
|
|
|
url = `/pages/customer/detail_owner_invitation9?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`;
|
|
|
|
}
|
|
|
|
wx.reLaunch({
|
|
|
|
url:`/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`
|
|
|
|
url
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 绑定名称
|
|
...
|
...
|
@@ -350,8 +364,16 @@ Page({ |
|
|
|
navEvent() {
|
|
|
|
// 1 邀请函 2 提前点餐 3商家端分享
|
|
|
|
if (this.data.opt.types == '1') {
|
|
|
|
let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17];
|
|
|
|
let style =arr.includes(parseInt(this.data.StyleType))
|
|
|
|
let url = '';
|
|
|
|
if (!style) {
|
|
|
|
url = `/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}`;
|
|
|
|
} else {
|
|
|
|
url = `/pages/customer/detail_owner_invitation9?id=${this.data.opt.detail.oid}`;
|
|
|
|
}
|
|
|
|
return wx.reLaunch({
|
|
|
|
url:`/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}`
|
|
|
|
url
|
|
|
|
})
|
|
|
|
}
|
|
|
|
if (this.data.opt.types == '2') {
|
...
|
...
|
|