|
...
|
...
|
@@ -141,62 +141,34 @@ Page({ |
|
|
|
console.log(res.data.openid,'resdataopenidopenidopenidopenid');
|
|
|
|
console.log(opt.hasInvitation,'hasInvitation');
|
|
|
|
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';
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
console.log('type',res.data.temp_config_type);
|
|
|
|
if (!res.data.openid) {//无预订人
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
url = '/pages/customer/detail_owner';
|
|
|
|
if (opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='1') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new1';
|
|
|
|
}else if(opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='2') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new2';
|
|
|
|
}else{
|
|
|
|
url = '/pages/customer/detail_owner_invitation';
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
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;
|
|
|
|
url = '/pages/customer/detail_customer';
|
|
|
|
if (opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='1') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new1';
|
|
|
|
}else if(opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='2') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new2';
|
|
|
|
}else{
|
|
|
|
url = '/pages/customer/detail_invitation';
|
|
|
|
}
|
|
|
|
if (res.data.openid == opt.openid) {
|
|
|
|
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;
|
|
|
|
url = '/pages/customer/detail_owner';
|
|
|
|
if (opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='1') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new1';
|
|
|
|
}else if(opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='2') {
|
|
|
|
url = '/pages/customer/detail_owner_invitation_new2';
|
|
|
|
}else{
|
|
|
|
url = ur4;
|
|
|
|
}
|
|
|
|
url = '/pages/customer/detail_owner_invitation';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|