Commit 93c34361e3cb0540494dc136535f2cab5caf1ae3

Authored by pengye
1 parent 6e65c0c9

邀请函新增模板23

@@ -60,7 +60,7 @@ Page({ @@ -60,7 +60,7 @@ Page({
60 isVoice: '', //播报按钮 60 isVoice: '', //播报按钮
61 openOrder: '', //点餐 61 openOrder: '', //点餐
62 isComments: '', //券和充值 62 isComments: '', //券和充值
63 - bookType: '', //模板18为1,模板21为2 63 + bookType: '', //模板18为1,模板21为2 模板23为3
64 make:'',//用餐类型 1婚宴模板1 2商务宴模板1 64 make:'',//用餐类型 1婚宴模板1 2商务宴模板1
65 urlsArr: [], //包间预览图片、餐厅logo、餐厅首图列表 65 urlsArr: [], //包间预览图片、餐厅logo、餐厅首图列表
66 roomimage: [], //包间信息列表 66 roomimage: [], //包间信息列表
@@ -308,6 +308,9 @@ Page({ @@ -308,6 +308,9 @@ Page({
308 * 生命周期函数--监听页面显示 308 * 生命周期函数--监听页面显示
309 */ 309 */
310 onShow: function () { 310 onShow: function () {
  311 + this.setData({
  312 + titleList: []
  313 + })
311 this.getDetail() 314 this.getDetail()
312 this.getText() 315 this.getText()
313 this.getPaymentStatus() 316 this.getPaymentStatus()
@@ -821,8 +824,15 @@ Page({ @@ -821,8 +824,15 @@ Page({
821 couponList = this.addCoupons(coupon_data_free,couponList); 824 couponList = this.addCoupons(coupon_data_free,couponList);
822 // 根据券ID获取券详情 825 // 根据券ID获取券详情
823 this.getActivityByIdFun(couponList) 826 this.getActivityByIdFun(couponList)
824 - // 获取所有充值活动  
825 - this.getRechargeDetail() 827 + // 根据充值ID获取充值详情
  828 + if (this.data.bookType == '3') {
  829 + if (marketing && marketing.is_recharge && marketing.is_recharge == '1' && marketing.recharge_data) {
  830 + this.getRechargeDetailInfo(marketing.recharge_data.id)
  831 + }
  832 + } else {
  833 + // 获取所有充值活动
  834 + this.getRechargeDetail()
  835 + }
826 if (store && store.images && store.images.length > 0) store.images = util.determine(store.images); 836 if (store && store.images && store.images.length > 0) store.images = util.determine(store.images);
827 if (reserve && reserve.park_info_images && reserve.park_info_images.length > 0) reserve.park_info_images = util.determine(reserve.park_info_images); 837 if (reserve && reserve.park_info_images && reserve.park_info_images.length > 0) reserve.park_info_images = util.determine(reserve.park_info_images);
828 if (signboard && signboard.images && signboard.images.length > 0) signboard.images = util.determine(signboard.images); 838 if (signboard && signboard.images && signboard.images.length > 0) signboard.images = util.determine(signboard.images);
@@ -834,8 +844,8 @@ Page({ @@ -834,8 +844,8 @@ Page({
834 let bookType = this.data.bookType; 844 let bookType = this.data.bookType;
835 let urlsArr = this.data.urlsArr 845 let urlsArr = this.data.urlsArr
836 marketing.wecomle = (reserve && reserve.swich_welcome == '1' && marketing && marketing.wecomle) ? marketing.wecomle : '' 846 marketing.wecomle = (reserve && reserve.swich_welcome == '1' && marketing && marketing.wecomle) ? marketing.wecomle : ''
837 - if (bookType == '1' && home && home.image) urlsArr.push(home.image)  
838 - if (bookType == '1' && marketing && marketing.logo) urlsArr.push(marketing.logo) 847 + if ((bookType == '1' || bookType == '3') && home && home.image) urlsArr.push(home.image)
  848 + if ((bookType == '1' || bookType == '3') && marketing && marketing.logo) urlsArr.push(marketing.logo)
839 let obj = { 849 let obj = {
840 chef, 850 chef,
841 marketing, 851 marketing,
@@ -851,7 +861,7 @@ Page({ @@ -851,7 +861,7 @@ Page({
851 isMoreBtn: marketing && marketing.is_online_book == '1' && this.data.options.onlineReserve == '1', 861 isMoreBtn: marketing && marketing.is_online_book == '1' && this.data.options.onlineReserve == '1',
852 isShareItem: this.data.options.isOrder != '1' && marketing && marketing.is_transpond == '1', 862 isShareItem: this.data.options.isOrder != '1' && marketing && marketing.is_transpond == '1',
853 isComments: is_comments == '1' && marketing && marketing.is_comments_coupon == '1', 863 isComments: is_comments == '1' && marketing && marketing.is_comments_coupon == '1',
854 - colors: bookType == '1' ? '#7c191e' : bookType == '2' ? '#000' : '', 864 + colors: bookType == '1' ? '#7c191e' : bookType == '2' ? '#000' : bookType == '3' ? '#0A3D41' : '',
855 urlsArr 865 urlsArr
856 } 866 }
857 console.log('获取数据GetSellerTemplateConf--------------------', { 867 console.log('获取数据GetSellerTemplateConf--------------------', {
@@ -1119,6 +1129,36 @@ Page({ @@ -1119,6 +1129,36 @@ Page({
1119 } 1129 }
1120 }) 1130 })
1121 }, 1131 },
  1132 + // 模板23根据充值ID获取充值详情
  1133 + getRechargeDetailInfo(id) {
  1134 + App.Activity.GetNewRecharge({
  1135 + id
  1136 + }).then(res => {
  1137 + if (res.data) {
  1138 + let detail = res.data
  1139 + let exp_date = res.data.exp_date ? JSON.parse(res.data.exp_date) : ''
  1140 + let recharge_list = res.data.recharge_list ? JSON.parse(res.data.recharge_list) : ''
  1141 + let priceInfo, scoreInfo, certificate;
  1142 + detail.recharge_list = recharge_list;
  1143 + detail.exp_date = exp_date;
  1144 + if (recharge_list.is_price == '1') priceInfo = '会员充值满' + detail.recharge_money + '元赠送' + recharge_list.price + '元余额';
  1145 + if (recharge_list.is_score == '1') scoreInfo = '会员充值满' + detail.recharge_money + '元赠送' + recharge_list.score + '积分';
  1146 + if (recharge_list.is_coupons == '1' && recharge_list.coupons_names.length > 0) certificate = recharge_list.coupons_names.join('、');
  1147 + let recharge_data = (this.data.dataStr < detail.etime * 1 && detail.is_open == '1') ? detail : ''
  1148 + console.log('邀请函23--------------充值', recharge_data);
  1149 + this.setData({
  1150 + recharge_data,
  1151 + scoreInfo,
  1152 + priceInfo,
  1153 + certificate
  1154 + })
  1155 + } else {
  1156 + this.setData({
  1157 + recharge_data: {},
  1158 + })
  1159 + }
  1160 + })
  1161 + },
1122 // 选择充值活动 1162 // 选择充值活动
1123 checkRechargeData(e) { 1163 checkRechargeData(e) {
1124 let id = e.currentTarget.dataset['id']; 1164 let id = e.currentTarget.dataset['id'];
@@ -1679,7 +1719,7 @@ Page({ @@ -1679,7 +1719,7 @@ Page({
1679 duration: 800, 1719 duration: 800,
1680 timingFunction: 'ease', 1720 timingFunction: 'ease',
1681 }); 1721 });
1682 - if(this.data.bookType == '1'){ 1722 + if(this.data.bookType == '1' || this.data.bookType == '3'){
1683 animation.translateY('-60%') 1723 animation.translateY('-60%')
1684 .translateX('34%') 1724 .translateX('34%')
1685 .scale(0) 1725 .scale(0)
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <view class="fullscreenMask" animation="{{animationData}}" wx:if="{{isShow=='1'}}"> 12 <view class="fullscreenMask" animation="{{animationData}}" wx:if="{{isShow=='1'}}">
13 <image src="https://qn.colorcun.com/getCouponIcon2.png" mode=""/> 13 <image src="https://qn.colorcun.com/getCouponIcon2.png" mode=""/>
14 </view> 14 </view>
15 - <view class="targetPoint" style="{{bookType =='1'?'right: 4%;top: 35%;':'left: 2%;top: 27%;'}}"></view> 15 + <view class="targetPoint" style="{{(bookType =='1' || bookType =='3')?'right: 4%;top: 35%;':'left: 2%;top: 27%;'}}"></view>
16 <image wx:if="{{detail.status =='4'}}" class="cannotImg" src="https://qn.colorcun.com/cancelImg.png" /> 16 <image wx:if="{{detail.status =='4'}}" class="cannotImg" src="https://qn.colorcun.com/cancelImg.png" />
17 <image wx:if="{{options.isOrder == '1' && detail.status !='4'}}" class="cannotImg" src="https://qn.colorcun.com/overImg.png" /> 17 <image wx:if="{{options.isOrder == '1' && detail.status !='4'}}" class="cannotImg" src="https://qn.colorcun.com/overImg.png" />
18 <view class="reservationInfoBox" wx:if="{{detail && detail.ddate}}"> 18 <view class="reservationInfoBox" wx:if="{{detail && detail.ddate}}">
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 <image wx:if="{{bookType == '2'}}" class="infoTopImg1 {{options.hasSellerShare == '1' ? 'infoTopImg2' :''}}" src="https://nosqn.colorcun.com/{{options.hasSellerShare == '1' ? 'invitation11Title2_1.png' : 'invitation11Title2.png'}}" mode=""/> 21 <image wx:if="{{bookType == '2'}}" class="infoTopImg1 {{options.hasSellerShare == '1' ? 'infoTopImg2' :''}}" src="https://nosqn.colorcun.com/{{options.hasSellerShare == '1' ? 'invitation11Title2_1.png' : 'invitation11Title2.png'}}" mode=""/>
22 <text class="infoTopText2 font44r" space="nbsp">{{seller.name||reserve.seller_name}}</text> 22 <text class="infoTopText2 font44r" space="nbsp">{{seller.name||reserve.seller_name}}</text>
23 <text class="infoTopText3 font28r" space="nbsp" wx:if="{{reserve.swich_slogan == '1' && home.slogan}}">{{home.slogan}}</text> 23 <text class="infoTopText3 font28r" space="nbsp" wx:if="{{reserve.swich_slogan == '1' && home.slogan}}">{{home.slogan}}</text>
24 - <image wx:if="{{bookType == '1' && (!make || make=='2')}}" class="infoTopText4 {{options.hasSellerShare == '1' ? 'infoTopText5' :''}}" src="https://nosqn.colorcun.com/{{options.hasSellerShare == '1' ? 'invitation11Title1.png' : 'invitation11Title.png'}}" mode=""/> 24 + <image wx:if="{{(bookType == '1' && (!make || make=='2')) || bookType == '3'}}" class="infoTopText4 {{options.hasSellerShare == '1' ? 'infoTopText5' :''}}" src="https://nosqn.colorcun.com/{{options.hasSellerShare == '1' ? 'invitation11Title1.png' : 'invitation11Title.png'}}" mode=""/>
25 <image wx:if="{{bookType == '1' && make == '1'}}" class="infoTopBj2" src="https://qn.colorcun.com/invitation11Bg2.png" mode="" /> 25 <image wx:if="{{bookType == '1' && make == '1'}}" class="infoTopBj2" src="https://qn.colorcun.com/invitation11Bg2.png" mode="" />
26 </view> 26 </view>
27 <view class="informationBox"> 27 <view class="informationBox">
@@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
46 <view class="contentData font32r contentFlex">{{seller.soltName}}<text class="marLeft font28r">{{temp_ddate}}</text></view> 46 <view class="contentData font32r contentFlex">{{seller.soltName}}<text class="marLeft font28r">{{temp_ddate}}</text></view>
47 <picker wx:if="{{options.isOrder != '1' && (detail.status =='1' || detail.status =='2') && options.hasSellerShare == '1'}}" bindchange="bindPickerChange" value="{{index}}" range="{{timeList}}"> 47 <picker wx:if="{{options.isOrder != '1' && (detail.status =='1' || detail.status =='2') && options.hasSellerShare == '1'}}" bindchange="bindPickerChange" value="{{index}}" range="{{timeList}}">
48 <view class="picker"> 48 <view class="picker">
49 - <image class="arrivalImg" src="https://nosqn.colorcun.com/editDdateTime{{bookType == '1' ? '1' : '4'}}.png" mode=""/> 49 + <image class="arrivalImg" src="https://nosqn.colorcun.com/editDdateTime{{bookType == '1' ? '1' : bookType == '2' ? '4' :'5'}}.png" mode=""/>
50 </view> 50 </view>
51 </picker> 51 </picker>
52 </view> 52 </view>
@@ -89,13 +89,13 @@ @@ -89,13 +89,13 @@
89 </view> 89 </view>
90 </view> 90 </view>
91 </view> 91 </view>
92 - <swiper wx:if="{{bookType == '1' && urlsArr.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff"> 92 + <swiper wx:if="{{(bookType == '1' || bookType == '3') && urlsArr.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
93 <swiper-item wx:for="{{urlsArr}}" wx:key="index"> 93 <swiper-item wx:for="{{urlsArr}}" wx:key="index">
94 <image mode="aspectFill" class="detailBannerImg" src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{urlsArr}}"></image> 94 <image mode="aspectFill" class="detailBannerImg" src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{urlsArr}}"></image>
95 </swiper-item> 95 </swiper-item>
96 </swiper> 96 </swiper>
97 - <text space="nbsp" wx:if="{{bookType == '1' && marketing.wecomle}}" class="welcomeInfo font32r">{{marketing.wecomle}}</text>  
98 - <view class="appointment" wx:if="{{bookType == '1' && customersList.length>0}}"> 97 + <text space="nbsp" wx:if="{{(bookType == '1' || bookType == '3') && marketing.wecomle}}" class="welcomeInfo font32r">{{marketing.wecomle}}</text>
  98 + <view class="appointment" wx:if="{{(bookType == '1' || bookType == '3') && customersList.length>0}}">
99 <view class="notifyTitle"> 99 <view class="notifyTitle">
100 <text></text> 100 <text></text>
101 <view class="font36r">已确认赴约</view><text></text> 101 <view class="font36r">已确认赴约</view><text></text>
@@ -111,7 +111,7 @@ @@ -111,7 +111,7 @@
111 </view> 111 </view>
112 </view> 112 </view>
113 </view> 113 </view>
114 - <view class="receptionBox" wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> 114 + <view class="receptionBox" wx:if="{{bookType == '2' && staffinfo && reserve.swich_manager=='1'}}">
115 <view class="peopleInfo"> 115 <view class="peopleInfo">
116 <image bindtap="lookImgs" wx:if="{{staffinfo.photo}}" data-url="{{staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> 116 <image bindtap="lookImgs" wx:if="{{staffinfo.photo}}" data-url="{{staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image>
117 <view class="noHeaderimg" wx:else></view> 117 <view class="noHeaderimg" wx:else></view>
@@ -132,6 +132,82 @@ @@ -132,6 +132,82 @@
132 </view> 132 </view>
133 </view> 133 </view>
134 </view> 134 </view>
  135 + <view class="receptionBox" wx:if="{{bookType != '2' && staffinfo && reserve.swich_manager=='1'}}">
  136 + <view class="peopleInfo">
  137 + <image bindtap="lookImgs" wx:if="{{staffinfo.photo}}" data-url="{{staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image>
  138 + <view class="noHeaderimg" wx:else></view>
  139 + <view class="font28r">{{staffinfo.name}}</view>
  140 + <view class="font28r">{{staffinfo.position}}</view>
  141 + </view>
  142 + <view class="handleInfo">
  143 + <view class="font40r title1">尊敬的贵宾您好!</view>
  144 + <view class="font28r texts">很荣幸能为您提供专属接待和服务</view>
  145 + <view class="contactBtns">
  146 + <view wx:if="{{staffinfo.phone}}" class="font24r brownFont" data-phone="{{staffinfo.phone}}" bindtap="call">
  147 + <image src="https://qn.colorcun.com/{{bookType == '1'?'invitation11Phone':bookType == '2'?'invitation10Phone':'invitation23Phone'}}.png" mode="" /><text>联系我</text>
  148 + </view>
  149 + <view wx:if="{{staffinfo.wechat}}" class="font24r brownFont" bindtap="copyWeChat">
  150 + <image src="https://qn.colorcun.com/{{bookType == '1'?'invitation11Wx':bookType == '2'?'invitation10Wx':'invitation23Wx'}}.png" mode="" /><text>加微信</text>
  151 + </view>
  152 + </view>
  153 + </view>
  154 + </view>
  155 + <view class="preferentialCoupon" wx:if="{{bookType == '3' && hasValueCertificate && marketing && coupon_dataList.length>0}}">
  156 + <block wx:for="{{coupon_dataList}}" wx:key="index" wx:for-index="index">
  157 + <navigator wx:if="{{item.resultCoupon || !item.resultCoupon || item.is_type != '3'}}" url="/pack-activity/pack/receiveCoupon?id={{item.id}}&sid={{seller.sid}}&oid={{detail.id}}&types=1&StyleType={{StyleType}}&types=1&StyleType={{StyleType}}" hover-class="navigator-hover">
  158 + <view class="preferentialItems">
  159 + <view class="itemLeft">
  160 + <text wx:if="{{item.discount!='0.00' && (item.use.is_cash=='1' || item.use.is_cash) && item.discount}}" class="discountText font24r">{{item.discount}}折</text>
  161 + <view class="discountText1 font20r {{item.arule.is_accumulation == '1'?'discountText2':'discountText3'}}" wx:if="{{item.is_type == '3'}}">{{item.arule.is_accumulation == '1' ? '可' : '不可'}}叠加</view>
  162 + <view class="priceText" wx:if="{{item.price}}">
  163 + <view class="icons font24r">¥</view><text class="font48r">{{item.price}}</text>
  164 + </view>
  165 + <view class="icons font20r" wx:if="{{item.is_type == '3' && item.desc!='0'}}">消费满{{item.desc}}元可用</view>
  166 + </view>
  167 + <view class="couponLine"></view>
  168 + <view class="itemRight">
  169 + <view class="btns">
  170 + <text class="font32r anameText">{{item.aname}}</text>
  171 + <block wx:if="{{item.is_type == '1' || item.is_type == '2'}}">
  172 + <text wx:if="{{item.exp_date.is_week=='1' || item.exp_date.is_week===true}}" class="bottom font24r">{{item.exp_date.week_show?item.exp_date.week_show+'可用':''}}{{item.desc?','+item.desc+'。':'。'}}</text>
  173 + <view wx:if="{{item.exp_date.is_none=='1' || item.exp_date.is_none===true}}" class="bottom font24r">
  174 + 无限制{{item.desc?','+item.desc+'。':'。'}}
  175 + </view>
  176 + <view wx:if="{{item.exp_date.is_birthday=='1' || item.exp_date.is_birthday===true}}" class="bottom font24r">
  177 + 会员生日当天可用{{item.desc?','+item.desc+'。':'。'}}
  178 + </view>
  179 + </block>
  180 + <block wx:if="{{item.is_type == '3' || item.is_type == '4'}}">
  181 + <view wx:if="{{(item.useStime && item.useEtime) || item.foreverText}}" class="bottom font24r">有效期:{{item.foreverText?item.foreverText : ''}}</view>
  182 + <view wx:if="{{item.useStime && item.useEtime}}" class="bottom font24r nodate">{{item.useStime}} 至 {{item.useEtime}}</view>
  183 + <view wx:if="{{item.morText || item.noonText || item.noonText}}" class="bottom font24r">不可用日期:</view>
  184 + <view wx:if="{{item.morText}}" class="bottom font24r nodate">{{item.morText}}</view>
  185 + <view wx:if="{{item.noonText}}" class="bottom font24r nodate">{{item.noonText}}</view>
  186 + <view wx:if="{{item.nigText}}" class="bottom font24r nodate">{{item.nigText}}</view>
  187 + <view wx:if="{{item.exp_date.week_show=='无'}}" class="bottom font24r">无使用时间限制</view>
  188 + <view wx:if="{{item.is_type == '4' && item.desc!='0'}}" class="bottom font24r">消费满{{item.desc}}元可用</view>
  189 + </block>
  190 + </view>
  191 + <view class="btnBox" wx:if="{{item.is_type == '3'}}" >
  192 + <view class="font24r orderingFood {{item.resultCoupon == '1'?'orderingFood1':'orderingFood2'}}">{{item.resultCoupon == '1'?'已领取':'领取'}}</view>
  193 + <view class="grantNum" wx:if="{{item.receiveNumText}}">
  194 + <view class="font24r">已被领取</view>
  195 + <view class="font24r"><text>{{item.receiveNumText}}</text>张</view>
  196 + </view>
  197 + </view>
  198 + <view wx:if="{{item.is_type != '3'}}" class="font24r orderingFood">
  199 + 立即抢购
  200 + </view>
  201 + </view>
  202 + </view>
  203 + </navigator>
  204 + </block>
  205 + </view>
  206 + <view wx:if="{{bookType == '3' && is_comments=='1' && !is_user_comments}}" class="evaluateBox" bindtap="evaluateFun">
  207 + <text wx:if="{{is_comments=='1' && (marketing.is_comments_coupon!='1' || couponData.showCoupon!='1')}}">想<text class="font36r">吐槽</text>?戳这里填写意见!--></text>
  208 + <text wx:if="{{marketing.is_comments_coupon=='1' && couponData && couponData.showCoupon =='1'}}">想<text class="font36r">吐槽</text>?戳这里填写意见反馈赢好礼!</text>
  209 + <image src="https://nosqn.colorcun.com/evaluate2.png" mode="" />
  210 + </view>
135 <view class="appointment" wx:if="{{bookType == '2' && customersList.length>0}}"> 211 <view class="appointment" wx:if="{{bookType == '2' && customersList.length>0}}">
136 <view class="notifyTitle"> 212 <view class="notifyTitle">
137 <text></text> 213 <text></text>
@@ -146,7 +222,7 @@ @@ -146,7 +222,7 @@
146 </view> 222 </view>
147 </view> 223 </view>
148 </view> 224 </view>
149 - <view class="publicModule {{customersList.length>0?'preferentialCouponBox2':'preferentialCouponBox'}} preferentialCouponBox {{(titleList.length==0 && (roomimage && roomimage.length>0))?'preferentialCouponBox1':''}}" wx:if="{{titleList.length>0 || (roomimage && roomimage.length>0)}}"> 225 + <view class="publicModule {{customersList.length>0?'preferentialCouponBox2':'preferentialCouponBox'}} preferentialCouponBox {{(titleList.length==0 && (roomimage && roomimage.length>0))?'preferentialCouponBox1':''}}" wx:if="{{bookType != '3' && (titleList.length>0 || (roomimage && roomimage.length>0))}}">
150 <view class="tileBox" wx:if="{{titleList.length>0}}"> 226 <view class="tileBox" wx:if="{{titleList.length>0}}">
151 <view wx:for="{{titleList}}" wx:key="index" wx:for-index="index" bindtap="checkTitleFun" data-type="{{item.id}}" class="titleItem font28r {{activeTitle==item.id?'activeTitleItem':''}}">{{item.title}}</view> 227 <view wx:for="{{titleList}}" wx:key="index" wx:for-index="index" bindtap="checkTitleFun" data-type="{{item.id}}" class="titleItem font28r {{activeTitle==item.id?'activeTitleItem':''}}">{{item.title}}</view>
152 </view> 228 </view>
@@ -481,6 +557,128 @@ @@ -481,6 +557,128 @@
481 </view> 557 </view>
482 </view> 558 </view>
483 </block> 559 </block>
  560 + <block wx:if="{{bookType == '3'}}">
  561 + <!-- 餐厅介绍 -->
  562 + <view class="publicModules" wx:if="{{store && (store.textInfo || store.imgsInfo.length>0 || store.videosInfo.length>0)}}">
  563 + <view class="chefText font36r">
  564 + <view class="line"></view>
  565 + <view class="font36r chefTextInfo">餐厅介绍</view>
  566 + <view class="line"></view>
  567 + </view>
  568 + <view class="labelBox" wx:if="{{store.textInfo}}">
  569 + <text class="texts font28r" space="nbsp">{{store.textInfo}}</text>
  570 + </view>
  571 + <swiper wx:if="{{store.imgsInfo.length>1}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
  572 + <swiper-item wx:for="{{store.imgsInfo}}" wx:key="index">
  573 + <image mode="aspectFill" class="detailBannerImg" src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.imgsInfo}}"></image>
  574 + </swiper-item>
  575 + </swiper>
  576 + <image wx:if="{{store.imgsInfo.length == '1'}}" mode="widthFix" class="detailBannerImg1" src="{{store.imgsInfo[0]}}" bindtap="lookImgs" data-url="{{store.imgsInfo[0]}}" data-imgs="{{store.imgsInfo}}"></image>
  577 + <block wx:for="{{store.videosInfo}}" wx:key="index">
  578 + <video class="boxBlock" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video>
  579 + </block>
  580 + </view>
  581 + <!-- 招牌菜品 -->
  582 + <view class="publicModules" wx:if="{{signboard && (signboard.textInfo || signboard.imgsInfo.length>0 || signboard.videosInfo.length>0 || (hasValueOrder && openOrder == '1' && marketing.is_order=='1'))}}">
  583 + <view class="chefText font36r">
  584 + <view class="line"></view>
  585 + <view class="font36r chefTextInfo">招牌菜品</view>
  586 + <view class="line"></view>
  587 + </view>
  588 + <view class="labelBox" wx:if="{{signboard.textInfo}}">
  589 + <text class="texts font28r" space="nbsp">{{signboard.textInfo}}</text>
  590 + </view>
  591 + <swiper wx:if="{{signboard.imgsInfo.length>1}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
  592 + <swiper-item wx:for="{{signboard.imgsInfo}}" wx:key="index">
  593 + <image mode="aspectFill" class="detailBannerImg" src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.imgsInfo}}"></image>
  594 + </swiper-item>
  595 + </swiper>
  596 + <image wx:if="{{signboard.imgsInfo.length == '1'}}" mode="widthFix" class="detailBannerImg1" src="{{signboard.imgsInfo[0]}}" bindtap="lookImgs" data-url="{{signboard.imgsInfo[0]}}" data-imgs="{{signboard.imgsInfo}}"></image>
  597 + <block wx:for="{{signboard.videosInfo}}">
  598 + <video class="boxBlock" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video>
  599 + </block>
  600 + <view class="orderBox" wx:if="{{hasValueOrder && openOrder == '1' && marketing.is_order=='1'}}">
  601 + <view class="font32r">提前点餐 到店不用等</view>
  602 + <view wx:if="{{openOrder == '1' && marketing.is_order == '1'}}" bindtap="cookbook" class="font28r cook" style="position: relative;">
  603 + 去点餐
  604 + </view>
  605 + </view>
  606 + </view>
  607 + <!-- 主厨介绍 -->
  608 + <view class="publicModules" wx:if="{{chef && (chef.textInfo || chef.imgsInfo.length>0 || chef.videosInfo.length>0)}}">
  609 + <view class="chefText font36r">
  610 + <view class="line"></view>
  611 + <view class="font36r chefTextInfo">主厨介绍</view>
  612 + <view class="line"></view>
  613 + </view>
  614 + <view class="labelBox" wx:if="{{chef.textInfo}}">
  615 + <text class="texts font28r" space="nbsp">{{chef.textInfo}}</text>
  616 + </view>
  617 + <swiper wx:if="{{chef.imgsInfo.length>1}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
  618 + <swiper-item wx:for="{{chef.imgsInfo}}" wx:key="index">
  619 + <image mode="aspectFill" class="detailBannerImg" src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{chef.imgsInfo}}"></image>
  620 + </swiper-item>
  621 + </swiper>
  622 + <image wx:if="{{chef.imgsInfo.length == '1'}}" mode="widthFix" class="detailBannerImg1" src="{{chef.imgsInfo[0]}}" bindtap="lookImgs" data-url="{{chef.imgsInfo[0]}}" data-imgs="{{chef.imgsInfo}}"></image>
  623 + <block wx:for="{{chef.videosInfo}}" wx:key="index">
  624 + <video class="boxBlock" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video>
  625 + </block>
  626 + </view>
  627 + <!-- 停车指引 -->
  628 + <view class="publicModules" wx:if="{{reserve && (reserve.textInfo || reserve.imgsInfo.length>0 || reserve.videosInfo.length>0)}}">
  629 + <view class="chefText font36r">
  630 + <view class="line"></view>
  631 + <view class="font36r chefTextInfo">停车指引</view>
  632 + <view class="line"></view>
  633 + </view>
  634 + <view class="labelBox" wx:if="{{reserve.textInfo}}">
  635 + <text class="texts font28r" space="nbsp">{{reserve.textInfo}}</text>
  636 + </view>
  637 + <swiper wx:if="{{reserve.imgsInfo.length>1}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
  638 + <swiper-item wx:for="{{reserve.imgsInfo}}" wx:key="index">
  639 + <image mode="aspectFill" class="detailBannerImg" src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.imgsInfo}}"></image>
  640 + </swiper-item>
  641 + </swiper>
  642 + <image wx:if="{{reserve.imgsInfo.length == '1'}}" mode="widthFix" class="detailBannerImg1" src="{{reserve.imgsInfo[0]}}" bindtap="lookImgs" data-url="{{reserve.imgsInfo[0]}}" data-imgs="{{reserve.imgsInfo}}"></image>
  643 + <block wx:for="{{reserve.videosInfo}}" wx:key="index">
  644 + <video class="boxBlock" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video>
  645 + </block>
  646 + </view>
  647 + <!-- 会员招募 -->
  648 + <view wx:if="{{(hasValueRecharge && marketing && marketing.is_recharge=='1' && recharge_data) || (hasValueRecharge && marketing.is_link=='1')}}" class="publicModules introduceBox {{(marketing.is_online_book=='1' && options.onlineReserve == '1') || (detail.status !='4' && options.isOrder != '1' && paymentId && paymentStatus == '0') || (detail.status !='4' && options.isOrder != '1' && marketing.is_transpond=='1' && imgSrc)?'introduceBottom':''}}">
  649 + <block wx:if="{{hasValueRecharge && marketing && marketing.is_recharge=='1' && recharge_data}}">
  650 + <view class="chefText font36r">
  651 + <view class="line"></view>
  652 + <view class="font36r chefTextInfo">会员招募</view>
  653 + <view class="line"></view>
  654 + </view>
  655 + <navigator wx:if="{{recharge_data.id}}" url="/pack-activity/pack/vipRecharge?id={{recharge_data.id}}&name={{seller.name}}&sid={{seller.sid}}&oid={{detail.id}}&types=1&StyleType={{StyleType}}" hover-class="navigator-hover">
  656 + <view class="preferentialCoupon preferentialItems1 rechargeItems1">
  657 + <view class="itemLeft1">
  658 + <view class="itemTop font36r">
  659 + {{recharge_data.rname}}
  660 + </view>
  661 + <view class="itemBottom font24r" wx:if="{{priceInfo}}">
  662 + {{priceInfo}}{{(recharge_data.recharge_list.is_coupons=='0' && recharge_data.recharge_list.is_score=='0')?'。':';'}}
  663 + </view>
  664 + <view class="bottom font24r" wx:if="{{scoreInfo}}">
  665 + {{scoreInfo}}{{recharge_data.recharge_list.is_coupons=='0'?'。':';'}}
  666 + </view>
  667 + <view class="bottom font24r" wx:if="{{recharge_data.recharge_list.is_coupons=='1'}}">
  668 + {{recharge_data.recharge_list.is_coupons=='1'?'会员充值满'+recharge_data.recharge_money+'元赠送'+certificate:''}}。
  669 + </view>
  670 + </view>
  671 + <view class="font24r ordering">
  672 + 抢购
  673 + </view>
  674 + </view>
  675 + </navigator>
  676 + </block>
  677 + <view wx:if="{{hasValueRecharge && marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList">
  678 + 点击了解更多会员优惠政策
  679 + </view>
  680 + </view>
  681 + </block>
484 <view class="businessBox font24r"> 682 <view class="businessBox font24r">
485 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>, 683 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,
486 <view bindtap="gotoJoinSeller" style="text-decoration: underline;">我是商家,我要试用</view> 684 <view bindtap="gotoJoinSeller" style="text-decoration: underline;">我是商家,我要试用</view>
@@ -1587,4 +1587,234 @@ @@ -1587,4 +1587,234 @@
1587 .viewBox2 .giftImg { 1587 .viewBox2 .giftImg {
1588 left: 2%; 1588 left: 2%;
1589 top: 27%; 1589 top: 27%;
  1590 +}
  1591 +
  1592 +/* 模板23 */
  1593 +.viewBox3 {
  1594 + background: #0A3D41;
  1595 +}
  1596 +
  1597 +.viewBox3 .reservationInfoBox {
  1598 + background: url('https://qn.colorcun.com/invitation23Bj1.png') no-repeat;
  1599 + background-size: cover;
  1600 +}
  1601 +
  1602 +.viewBox3 .reservationInfo {
  1603 + padding: 220rpx 20rpx 24rpx;
  1604 + box-sizing: border-box;
  1605 + position: relative;
  1606 + color: #000;
  1607 +}
  1608 +
  1609 +.viewBox3 .reservationInfo1 {
  1610 + background: url('https://qn.colorcun.com/invitation11Bg1.png') no-repeat;
  1611 + background-size: cover;
  1612 +}
  1613 +
  1614 +.viewBox3 .informationBox {
  1615 + background: rgba(44, 102, 103, 0.7);
  1616 +}
  1617 +
  1618 +.viewBox3 .contentData,
  1619 +.viewBox3 .record,
  1620 +.viewBox3 .contentData,
  1621 +.viewBox3 .welcomeInfo,
  1622 +.viewBox3 .notifyText,
  1623 +.viewBox3 .notifyTitle view,
  1624 +.viewBox3 .brownFont,
  1625 +.viewBox3 .chefTextInfo,
  1626 +.viewBox3 .cook,
  1627 +.viewBox3 .businessBox {
  1628 + color: #FFEFC5;
  1629 +}
  1630 +
  1631 +.viewBox3 .contentDataPhone,
  1632 +.viewBox3 .divider {
  1633 + color: #E6DDB7;
  1634 +}
  1635 +
  1636 +.viewBox3 .positioning {
  1637 + color: #0B3133;
  1638 + background: #FFEFC5;
  1639 +}
  1640 +
  1641 +.viewBox3 .notifyTitle text,
  1642 +.viewBox3 .chefText .line,
  1643 +.viewBox3 .orderBox {
  1644 + background: #FFEFC5;
  1645 +}
  1646 +
  1647 +.viewBox3 .receptionBox {
  1648 + color: #0D4547;
  1649 +}
  1650 +
  1651 +.viewBox3 .brownFont,
  1652 +.viewBox3 .cook {
  1653 + background: #0D4547;
  1654 +}
  1655 +
  1656 +.viewBox3 .orderBox {
  1657 + color: #0A3D41;
  1658 +}
  1659 +
  1660 +.viewBox3 .preferentialItems1 .bottom {
  1661 + color: #0B0805;
  1662 +}
  1663 +
  1664 +.viewBox3 .publicModules {
  1665 + background: rgba(44, 102, 103, 0.5);
  1666 +}
  1667 +
  1668 +.viewBox3 .labelBox .texts {
  1669 + color: #fff;
  1670 +}
  1671 +
  1672 +.evaluateBox {
  1673 + margin: 20rpx 40rpx 48rpx 40rpx;
  1674 + display: flex;
  1675 + align-items: center;
  1676 + justify-content: space-between;
  1677 + color: #FFEFC5;
  1678 +}
  1679 +
  1680 +.evaluateBox image {
  1681 + width: 64rpx;
  1682 + height: 64rpx;
  1683 +}
  1684 +
  1685 +.evaluateBox text {
  1686 + color: #FFEFC5;
  1687 + font-size: 24rpx;
  1688 +}
  1689 +
  1690 +.evaluateBox text text {
  1691 + font-size: 36rpx;
  1692 +}
  1693 +
  1694 +.preferentialItems1 {
  1695 + display: flex;
  1696 + background: linear-gradient(180deg, #ffefd0 0%, #ffdc9b 100%);
  1697 + margin-bottom: 20rpx;
  1698 + min-height: 160rpx;
  1699 + padding-bottom: 10rpx;
  1700 + border-radius: 20rpx;
  1701 + border: 2rpx solid #ff7e06;
  1702 +}
  1703 +
  1704 +.rechargeItems1 {
  1705 + background: url('https://qn.colorcun.com/certificateBj2.png') no-repeat;
  1706 + background-size: 100% 100%;
  1707 + min-height: 160rpx;
  1708 + display: flex;
  1709 + justify-content: space-between;
  1710 + align-items: center;
  1711 + height: auto;
  1712 + padding: 12rpx 0;
  1713 + margin: 0 20rpx 40rpx 0;
  1714 + border: none;
  1715 +}
  1716 +
  1717 +.rechargeItems1 .orderingFood {
  1718 + margin-right: 20rpx;
  1719 +}
  1720 +
  1721 +.itemTop {
  1722 + display: flex;
  1723 + width: 100%;
  1724 + align-items: center;
  1725 + font-family: 'Abel';
  1726 + color: #FD4D59;
  1727 + margin-bottom: 10rpx;
  1728 +}
  1729 +
  1730 +.itemBottom {
  1731 + color: #0B0805;
  1732 + font-family: PingFang SC;
  1733 + font-weight: 500;
  1734 + display: -webkit-box;
  1735 + word-break: break-all;
  1736 + word-wrap: break-word;
  1737 + overflow: hidden;
  1738 + text-align: left;
  1739 +}
  1740 +
  1741 +.itemLeft1 {
  1742 + width: 64%;
  1743 + display: flex;
  1744 + flex-direction: column;
  1745 + justify-content: center;
  1746 + position: relative;
  1747 + margin-left: 38rpx;
  1748 +}
  1749 +
  1750 +.ordering {
  1751 + padding: 0 44rpx;
  1752 + color: #0B0805;
  1753 + border: 2rpx solid #0B0805;
  1754 + text-align: center;
  1755 + border-radius: 198rpx;
  1756 + line-height: 44rpx;
  1757 + height: 44rpx;
  1758 + width: max-content;
  1759 + flex-shrink: 0;
  1760 + background: transparent;
  1761 + margin-right: 20rpx;
  1762 +}
  1763 +
  1764 +.viewBox3 .preferentialCoupon .orderingFood {
  1765 + background: linear-gradient(94.4deg, #f41919 2.72%, #ff7426 122.17%);
  1766 + color: #fff !important;
  1767 + border: none !important;
  1768 +}
  1769 +
  1770 +.viewBox3 .preferentialCoupon .orderingFood1 {
  1771 + border: 2rpx solid #fa4b20 !important;
  1772 + background: transparent !important;
  1773 + color: #fa4b20 !important;
  1774 + font-weight: 600;
  1775 +}
  1776 +
  1777 +.viewBox3 .preferentialItems {
  1778 + border: 2rpx solid #ff7e06;
  1779 + background: linear-gradient(180deg, #ffefd0 0%, #ffdc9b 100%);
  1780 +
  1781 +}
  1782 +
  1783 +.viewBox3 .preferentialCoupon navigator:nth-last-of-type(1) .preferentialItems{
  1784 + margin-bottom: 0;
  1785 +}
  1786 +
  1787 +.viewBox3 .favouredPolicy {
  1788 + width: 45%;
  1789 + color: #FFEFC5;
  1790 + font-family: PingFang SC;
  1791 + font-weight: 500;
  1792 + border: 2rpx solid #FFEFC5;
  1793 + border-radius: 22rpx;
  1794 + text-align: center;
  1795 + padding: 10rpx;
  1796 + margin: 0 auto;
  1797 +}
  1798 +
  1799 +.viewBox3 .introduceBox {
  1800 + background: transparent;
  1801 + padding: 40rpx 20rpx 0rpx 20rpx;
  1802 +}
  1803 +
  1804 +.viewBox3 .shareItem,
  1805 +.viewBox3 .moreBtn,
  1806 +.viewBox3 .paymenBtn {
  1807 + color: #FFEFC5;
  1808 + border: 2rpx solid #FFEFC5;
  1809 + background: transparent;
  1810 +}
  1811 +
  1812 +.viewBox3 .shareItem {
  1813 + background: #FFEFC5;
  1814 + color: #0A3D41;
  1815 + border: none;
  1816 +}
  1817 +
  1818 +.viewBox3 .sharewidth {
  1819 + background: #2C6667;
1590 } 1820 }
@@ -172,7 +172,7 @@ Page({ @@ -172,7 +172,7 @@ Page({
172 } 172 }
173 if(data.type == '0') url = '/pack-invitation/pages/detail_owner_invitation1'; 173 if(data.type == '0') url = '/pack-invitation/pages/detail_owner_invitation1';
174 if(data.type == '300') url = '/pack-invitation/pages/detail_owner_invitation13'; 174 if(data.type == '300') url = '/pack-invitation/pages/detail_owner_invitation13';
175 - if(data.type == '18' || data.type == '21') url = '/pack-invitation/pages/detail_owner_invitation11'; 175 + if(data.type == '18' || data.type == '21' || data.type == '23') url = '/pack-invitation/pages/detail_owner_invitation11';
176 if(data.type == '19' || data.type == '22') url = '/pack-invitation/pages/detail_owner_invitation12'; 176 if(data.type == '19' || data.type == '22') url = '/pack-invitation/pages/detail_owner_invitation12';
177 if(data.type == '20') url = '/pack-invitation/pages/detail_owner_invitation10'; 177 if(data.type == '20') url = '/pack-invitation/pages/detail_owner_invitation10';
178 let marketing = util.determine(data.marketing); 178 let marketing = util.determine(data.marketing);
@@ -181,6 +181,7 @@ Page({ @@ -181,6 +181,7 @@ Page({
181 url += '?id=' + this.data.options.id + '&tplid=' + this.data.options.tplid + '&onlineReserve=' + is_online_reserve + '&hasInvitation=' + this.data.options.hasInvitation + '&hasSellerShare=' + this.data.options.hasSellerShare + '&isDeposit=' + isDeposit + '&isMeeting=' + isMeeting; 181 url += '?id=' + this.data.options.id + '&tplid=' + this.data.options.tplid + '&onlineReserve=' + is_online_reserve + '&hasInvitation=' + this.data.options.hasInvitation + '&hasSellerShare=' + this.data.options.hasSellerShare + '&isDeposit=' + isDeposit + '&isMeeting=' + isMeeting;
182 if(data.type == '18' || data.type == '19') url += '&bookType=1'; 182 if(data.type == '18' || data.type == '19') url += '&bookType=1';
183 if(data.type == '21' || data.type == '22') url += '&bookType=2'; 183 if(data.type == '21' || data.type == '22') url += '&bookType=2';
  184 + if(data.type == '23') url += '&bookType=3';
184 // console.log('宴会类型-------------',reserev.reserve_type); 185 // console.log('宴会类型-------------',reserev.reserve_type);
185 // if(reserev.reserve_type == '生日宴') url += '&bookType=1' 186 // if(reserev.reserve_type == '生日宴') url += '&bookType=1'
186 // if(reserev.reserve_type == '婚宴' && (data.type == '18' || data.type == '19')) url += '&make=1' 187 // if(reserev.reserve_type == '婚宴' && (data.type == '18' || data.type == '19')) url += '&make=1'