Commit 1ab60a8aeba863609455ee4ee16f5232d9bf3d0f

Authored by pengye
1 parent 34d029f1

跳转到邀请函页面路径问题处理

... ... @@ -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') {
... ...
... ... @@ -68,8 +68,16 @@ Page({
sid:this.detail.seller.id
}).then(res => {
if(res.data && res.data.type){
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${res.data.type}?id=${this.detail.id}&hasInvitation=1&hasSellerShare=1&tplid=1`;
} else {
url = `/pages/customer/detail_owner_invitation9?id=${this.detail.id}&hasInvitation=1&hasSellerShare=1&tplid=1`;
}
wx.navigateTo({
url:`/pages/customer/detail_owner_invitation${res.data.type}?id=${this.detail.id}&hasInvitation=1&hasSellerShare=1&tplid=1`
url
})
}
})
... ...
... ... @@ -141,15 +141,26 @@ Page({
console.log('type',res.data.seller.temp_config_type);
let configType=res.data.seller.temp_config_type
console.log('configType',configType);
let arr = [9, 10, 11, 12, 13, 14, 15, 16, 17];
if (!res.data.openid) {//无预订人
if (opt.hasInvitation == 1 && configType) {
url = '/pages/customer/detail_owner_invitation' + configType;
let style =arr.includes(parseInt(configType))
if (!style) {
url = '/pages/customer/detail_owner_invitation' + configType;
} else {
url = '/pages/customer/detail_owner_invitation9';
}
} else {
url = '/pages/customer/detail_owner_invitation1';
}
} else {
if (opt.hasInvitation == 1 && configType) {
url = '/pages/customer/detail_owner_invitation' + configType;
let style =arr.includes(parseInt(configType))
if (!style) {
url = '/pages/customer/detail_owner_invitation' + configType;
} else {
url = '/pages/customer/detail_owner_invitation9';
}
} else if (res.data.openid == opt.openid) {
url = '/pages/customer/detail_owner';
} else {
... ...
... ... @@ -29,8 +29,16 @@ Page({
App.Seller.GetSellerTemplateConf({
sid:this.data.sid
}).then(res => {
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${res.data.type}?id=${that.data.oid}`;
} else {
url = `/pages/customer/detail_owner_invitation9?id=${that.data.oid}`;
}
return wx.reLaunch({
url:`/pages/customer/detail_owner_invitation${res.data.type}?id=${that.data.oid}`
url
})
})
},
... ...