|
@@ -141,62 +141,34 @@ Page({ |
|
@@ -141,62 +141,34 @@ Page({ |
|
141
|
console.log(res.data.openid,'resdataopenidopenidopenidopenid');
|
141
|
console.log(res.data.openid,'resdataopenidopenidopenidopenid');
|
|
142
|
console.log(opt.hasInvitation,'hasInvitation');
|
142
|
console.log(opt.hasInvitation,'hasInvitation');
|
|
143
|
console.log(opt.openid,'optopenidoptopenidopt.openid');
|
143
|
console.log(opt.openid,'optopenidoptopenidopt.openid');
|
|
144
|
- let ur1='/pages/customer/detail_owner';
|
|
|
|
145
|
- let ur2='/pages/customer/detail_owner_invitation_new_style';
|
|
|
|
146
|
- let ur3='/pages/customer/detail_owner_invitation_new';
|
|
|
|
147
|
- let ur4='/pages/customer/detail_owner_invitation';
|
|
|
|
148
|
- let ur5='/pages/customer/detail_customer';
|
|
|
|
149
|
- let ur6='/pages/customer/detail_invitation';
|
|
|
|
150
|
- // if (!res.data.openid) {//无预订人
|
|
|
|
151
|
- // url = '/pages/customer/detail_owner';
|
|
|
|
152
|
- // if (opt.hasInvitation == 1 && is_new=='1') {
|
|
|
|
153
|
- // url = '/pages/customer/detail_owner_invitation_new';
|
|
|
|
154
|
- // }else{
|
|
|
|
155
|
- // url = '/pages/customer/detail_owner_invitation';
|
|
|
|
156
|
- // }
|
|
|
|
157
|
- // } else {
|
|
|
|
158
|
- // url = '/pages/customer/detail_customer';
|
|
|
|
159
|
- // if (opt.hasInvitation == 1 && is_new=='1') {
|
|
|
|
160
|
- // url = '/pages/customer/detail_owner_invitation_new';
|
|
|
|
161
|
- // }else{
|
|
|
|
162
|
- // url = '/pages/customer/detail_invitation';
|
|
|
|
163
|
- // }
|
|
|
|
164
|
- // if (res.data.openid == opt.openid) {
|
|
|
|
165
|
- // url = '/pages/customer/detail_owner';
|
|
|
|
166
|
- // if (opt.hasInvitation == 1 && is_new=='1') {
|
|
|
|
167
|
- // url = '/pages/customer/detail_owner_invitation_new';
|
|
|
|
168
|
- // }else{
|
|
|
|
169
|
- // url = '/pages/customer/detail_owner_invitation';
|
|
|
|
170
|
- // }
|
|
|
|
171
|
- // }
|
|
|
|
172
|
- // }
|
144
|
+ console.log('type',res.data.temp_config_type);
|
|
173
|
if (!res.data.openid) {//无预订人
|
145
|
if (!res.data.openid) {//无预订人
|
|
174
|
- url = ur1;
|
|
|
|
175
|
- if (opt.hasInvitation == 1 && is_new=='1' && res.data.sid=='8') {//店铺是8 跳转到新邀请函新模板
|
|
|
|
176
|
- url = ur2;
|
|
|
|
177
|
- }else if(opt.hasInvitation == 1 && is_new=='1'){
|
|
|
|
178
|
- url = ur3;
|
|
|
|
179
|
- }else{
|
|
|
|
180
|
- url = ur4;
|
|
|
|
181
|
- }
|
146
|
+ url = '/pages/customer/detail_owner';
|
|
|
|
147
|
+ if (opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='1') {
|
|
|
|
148
|
+ url = '/pages/customer/detail_owner_invitation_new1';
|
|
|
|
149
|
+ }else if(opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='2') {
|
|
|
|
150
|
+ url = '/pages/customer/detail_owner_invitation_new2';
|
|
|
|
151
|
+ }else{
|
|
|
|
152
|
+ url = '/pages/customer/detail_owner_invitation';
|
|
|
|
153
|
+ }
|
|
182
|
} else {
|
154
|
} else {
|
|
183
|
- url = ur5;
|
|
|
|
184
|
- if (opt.hasInvitation == 1 && is_new=='1' && res.data.sid=='8') {//店铺是8 跳转到新邀请函新模板
|
|
|
|
185
|
- url = ur2;
|
|
|
|
186
|
- }else if(opt.hasInvitation == 1 && is_new=='1'){
|
|
|
|
187
|
- url = ur3;
|
|
|
|
188
|
- }else{
|
|
|
|
189
|
- url = ur6;
|
155
|
+ url = '/pages/customer/detail_customer';
|
|
|
|
156
|
+ if (opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='1') {
|
|
|
|
157
|
+ url = '/pages/customer/detail_owner_invitation_new1';
|
|
|
|
158
|
+ }else if(opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='2') {
|
|
|
|
159
|
+ url = '/pages/customer/detail_owner_invitation_new2';
|
|
|
|
160
|
+ }else{
|
|
|
|
161
|
+ url = '/pages/customer/detail_invitation';
|
|
190
|
}
|
162
|
}
|
|
191
|
if (res.data.openid == opt.openid) {
|
163
|
if (res.data.openid == opt.openid) {
|
|
192
|
- url = ur1;
|
|
|
|
193
|
- if (opt.hasInvitation == 1 && is_new=='1' && res.data.sid=='8') {//店铺是8 跳转到新邀请函新模板
|
|
|
|
194
|
- url = ur2;
|
|
|
|
195
|
- }else if(opt.hasInvitation == 1 && is_new=='1'){
|
|
|
|
196
|
- url = ur3;
|
164
|
+ url = '/pages/customer/detail_owner';
|
|
|
|
165
|
+ if (opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='1') {
|
|
|
|
166
|
+ url = '/pages/customer/detail_owner_invitation_new1';
|
|
|
|
167
|
+ }else if(opt.hasInvitation == 1 && is_new=='1' && res.data.temp_config_type=='2') {
|
|
|
|
168
|
+ url = '/pages/customer/detail_owner_invitation_new2';
|
|
197
|
}else{
|
169
|
}else{
|
|
198
|
- url = ur4;
|
|
|
|
199
|
- }
|
170
|
+ url = '/pages/customer/detail_owner_invitation';
|
|
|
|
171
|
+ }
|
|
200
|
}
|
172
|
}
|
|
201
|
}
|
173
|
}
|
|
202
|
}
|
174
|
}
|