Commit 202c293857cca259258126a7dbfbf0ccce5ef1a3

Authored by pengye
1 parent 81165827

进入页是08店铺的时候,显示新邀请函新模板

@@ -140,28 +140,63 @@ Page({ @@ -140,28 +140,63 @@ Page({
140 console.log(res.data.seller.is_new_template,'is_new_templateis_new_template'); 140 console.log(res.data.seller.is_new_template,'is_new_templateis_new_template');
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 if (!res.data.openid) {//无预订人 173 if (!res.data.openid) {//无预订人
145 - url = '/pages/customer/detail_owner';  
146 - if (opt.hasInvitation == 1 && is_new=='1') {  
147 - url = '/pages/customer/detail_owner_invitation_new';  
148 - }else{  
149 - url = '/pages/customer/detail_owner_invitation';  
150 - } 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 + }
151 } else { 182 } else {
152 - url = '/pages/customer/detail_customer';  
153 - if (opt.hasInvitation == 1 && is_new=='1') {  
154 - url = '/pages/customer/detail_owner_invitation_new';  
155 - }else{  
156 - url = '/pages/customer/detail_invitation'; 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;
157 } 190 }
158 if (res.data.openid == opt.openid) { 191 if (res.data.openid == opt.openid) {
159 - url = '/pages/customer/detail_owner';  
160 - if (opt.hasInvitation == 1 && is_new=='1') {  
161 - url = '/pages/customer/detail_owner_invitation_new'; 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;
162 }else{ 197 }else{
163 - url = '/pages/customer/detail_owner_invitation';  
164 - } 198 + url = ur4;
  199 + }
165 } 200 }
166 } 201 }
167 } 202 }