|
...
|
...
|
@@ -140,28 +140,63 @@ Page({ |
|
|
|
console.log(res.data.seller.is_new_template,'is_new_templateis_new_template');
|
|
|
|
console.log(res.data.openid,'resdataopenidopenidopenidopenid');
|
|
|
|
console.log(opt.hasInvitation,'hasInvitation');
|
|
|
|
console.log(opt.openid,'optopenidoptopenidopt.openid');
|
|
|
|
console.log(opt.openid,'optopenidoptopenidopt.openid');
|
|
|
|
let ur1='/pages/customer/detail_owner';
|
|
|
|
let ur2='/pages/customer/detail_owner_invitation_new_style';
|
|
|
|
let ur3='/pages/customer/detail_owner_invitation_new';
|
|
|
|
let ur4='/pages/customer/detail_owner_invitation';
|
|
|
|
let ur5='/pages/customer/detail_customer';
|
|
|
|
let ur6='/pages/customer/detail_invitation';
|
|
|
|
// if (!res.data.openid) {//无预订人
|
|
|
|
// url = '/pages/customer/detail_owner';
|
|
|
|
// if (opt.hasInvitation == 1 && is_new=='1') {
|
|
|
|
// url = '/pages/customer/detail_owner_invitation_new';
|
|
|
|
// }else{
|
|
|
|
// url = '/pages/customer/detail_owner_invitation';
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// url = '/pages/customer/detail_customer';
|
|
|
|
// if (opt.hasInvitation == 1 && is_new=='1') {
|
|
|
|
// url = '/pages/customer/detail_owner_invitation_new';
|
|
|
|
// }else{
|
|
|
|
// url = '/pages/customer/detail_invitation';
|
|
|
|
// }
|
|
|
|
// if (res.data.openid == opt.openid) {
|
|
|
|
// url = '/pages/customer/detail_owner';
|
|
|
|
// if (opt.hasInvitation == 1 && is_new=='1') {
|
|
|
|
// url = '/pages/customer/detail_owner_invitation_new';
|
|
|
|
// }else{
|
|
|
|
// url = '/pages/customer/detail_owner_invitation';
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
if (!res.data.openid) {//无预订人
|
|
|
|
url = '/pages/customer/detail_owner';
|
|
|
|
if (opt.hasInvitation == 1 && is_new=='1') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new';
|
|
|
|
}else{
|
|
|
|
url = '/pages/customer/detail_owner_invitation';
|
|
|
|
}
|
|
|
|
url = ur1;
|
|
|
|
if (opt.hasInvitation == 1 && is_new=='1' && res.data.sid=='8') {//店铺是8 跳转到新邀请函新模板
|
|
|
|
url = ur2;
|
|
|
|
}else if(opt.hasInvitation == 1 && is_new=='1'){
|
|
|
|
url = ur3;
|
|
|
|
}else{
|
|
|
|
url = ur4;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
url = '/pages/customer/detail_customer';
|
|
|
|
if (opt.hasInvitation == 1 && is_new=='1') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new';
|
|
|
|
}else{
|
|
|
|
url = '/pages/customer/detail_invitation';
|
|
|
|
url = ur5;
|
|
|
|
if (opt.hasInvitation == 1 && is_new=='1' && res.data.sid=='8') {//店铺是8 跳转到新邀请函新模板
|
|
|
|
url = ur2;
|
|
|
|
}else if(opt.hasInvitation == 1 && is_new=='1'){
|
|
|
|
url = ur3;
|
|
|
|
}else{
|
|
|
|
url = ur6;
|
|
|
|
}
|
|
|
|
if (res.data.openid == opt.openid) {
|
|
|
|
url = '/pages/customer/detail_owner';
|
|
|
|
if (opt.hasInvitation == 1 && is_new=='1') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new';
|
|
|
|
url = ur1;
|
|
|
|
if (opt.hasInvitation == 1 && is_new=='1' && res.data.sid=='8') {//店铺是8 跳转到新邀请函新模板
|
|
|
|
url = ur2;
|
|
|
|
}else if(opt.hasInvitation == 1 && is_new=='1'){
|
|
|
|
url = ur3;
|
|
|
|
}else{
|
|
|
|
url = '/pages/customer/detail_owner_invitation';
|
|
|
|
}
|
|
|
|
url = ur4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|