Commit c4a73c5abb48bc375f9cddd3066f1a2dbb646e2f

Authored by pengye
1 parent ea964673

邀请函分模板路径修改

... ... @@ -55,12 +55,12 @@
"pages/reserve/reserve",
"pages/tcads/cmyy",
"pages/pinglun/video",
"pages/customer/detail_owner_invitation_new",
"pages/customer/detail_owner_invitation_new1",
"pages/me/coupon_news",
"pages/me/wananchi",
"pages/pinglun/createOpinion",
"pages/pinglun/opinionSuccess",
"pages/customer/detail_owner_invitation_new_style"
"pages/customer/detail_owner_invitation_new2"
],
"requiredPrivateInfos": [
"getLocation",
... ...
// pages/customer/detail_owner_invitation_new.js
// pages/customer/detail_owner_invitation_new1.js
var mta = require('mta-wechat-analysis')
import util from '../../utils/util';
import App from '../../utils/api';
... ...
<!--pages/customer/detail_owner_invitation_new.wxml-->
<!--pages/customer/detail_owner_invitation_new1.wxml-->
<import src="../tpl/invitation"></import>
<nav hasHome class="navhome" place="{{true}}">
</nav>
... ...
/* pages/customer/detail_owner_invitation_new.wxss */
/* pages/customer/detail_owner_invitation_new1.wxss */
@import "../tpl/tpls.wxss";
.titleImg {
... ...
// pages/customer/detail_owner_invitation_new.js
// pages/customer/detail_owner_invitation_new1.js
var mta = require('mta-wechat-analysis')
import util from '../../utils/util';
import App from '../../utils/api';
... ...
{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "",
"usingComponents": {
"nav": "/components/nav/nav"
}
}
\ No newline at end of file
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "",
"usingComponents": {
"nav": "/components/nav/nav"
}
}
\ No newline at end of file
... ...
<!--pages/customer/detail_owner_invitation_new_style.wxml-->
<!--pages/customer/detail_owner_invitation_new2.wxml-->
<nav hasHome class="navhome" place="{{true}}"></nav>
<scroll-view class="last-book-bg" style="line-height: 1.4;height:{{height}}px;" scroll-y>
<view class="titleImg" style="background: rgba({{homeColor}});">
... ... @@ -171,4 +171,4 @@
<button wx:if="{{marketing.is_transpond=='1'}}" class="book-item-font flex-cc font30r shareItem" open-type="share">转发给客人
</button>
</block>
</view>
\ No newline at end of file
</view>
... ...
/* pages/customer/detail_owner_invitation_new_style.wxss */
/* pages/customer/detail_owner_invitation_new2.wxss */
@import "../tpl/tpls.wxss";
.titleImg {
... ...
... ... @@ -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';
}
}
}
}
... ...