Commit a03d3a8ebc4ca46222d8680ab4387c9b32ccb89b

Authored by pengye
1 parent 4b099a31

邀请函--生日宴用餐类型

@@ -70,6 +70,7 @@ @@ -70,6 +70,7 @@
70 </view> 70 </view>
71 </view> 71 </view>
72 </view> 72 </view>
  73 + <!-- 优惠券 -->
73 <view class="publicModule preferentialCoupon" wx:if="{{hasValueCertificate && marketing.is_coupon=='1' && coupon_dataList.length>0}}"> 74 <view class="publicModule preferentialCoupon" wx:if="{{hasValueCertificate && marketing.is_coupon=='1' && coupon_dataList.length>0}}">
74 <image class="titleImg5" src="https://qn.colorcun.com/invitation10Title1.png" mode="" /> 75 <image class="titleImg5" src="https://qn.colorcun.com/invitation10Title1.png" mode="" />
75 <block wx:for="{{coupon_dataList}}" wx:key="index" wx:for-index="index"> 76 <block wx:for="{{coupon_dataList}}" wx:key="index" wx:for-index="index">
@@ -96,7 +97,7 @@ @@ -96,7 +97,7 @@
96 </navigator> 97 </navigator>
97 </block> 98 </block>
98 </view> 99 </view>
99 - <!-- 优惠券 --> 100 + <!-- 充值 -->
100 <view class="publicModule preferentialCoupon" wx:if="{{hasValueRecharge && marketing.is_recharge=='1' && recharge_data}}"> 101 <view class="publicModule preferentialCoupon" wx:if="{{hasValueRecharge && marketing.is_recharge=='1' && recharge_data}}">
101 <image class="titleImg6" src="https://qn.colorcun.com/invitation10Title2.png" mode="" /> 102 <image class="titleImg6" src="https://qn.colorcun.com/invitation10Title2.png" mode="" />
102 <navigator 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"> 103 <navigator 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">
@@ -121,12 +122,12 @@ @@ -121,12 +122,12 @@
121 点击了解更多会员优惠政策 122 点击了解更多会员优惠政策
122 </view> 123 </view>
123 </view> 124 </view>
124 - <!-- 充值 --> 125 + <!-- 评价券 -->
125 <view class="publicModule evaluateCoupon" wx:if="{{!is_user_comments && isComments =='1' && couponData.showCoupon =='1'}}"> 126 <view class="publicModule evaluateCoupon" wx:if="{{!is_user_comments && isComments =='1' && couponData.showCoupon =='1'}}">
126 <image class="titleImg4" src="https://qn.colorcun.com/invitation10Title3.png" mode="" /> 127 <image class="titleImg4" src="https://qn.colorcun.com/invitation10Title3.png" mode="" />
127 <view class="preferentialItems" bindtap="evaluateFun"> 128 <view class="preferentialItems" bindtap="evaluateFun">
128 <view class="certificateInfo"> 129 <view class="certificateInfo">
129 - <text class="discountText font20r">{{couponData.use.is_cash=='1'?'代金券':couponData.use.is_discount=='1'?'超值折扣':couponData.use.is_dish=='1'?'特惠菜品':''}}</text> 130 + <text class="discountText font20r">评价有礼</text>
130 <view class="ticketName font36r">{{couponData.aname}}</view> 131 <view class="ticketName font36r">{{couponData.aname}}</view>
131 <text wx:if="{{couponData.exp_date.is_week=='1' || couponData.exp_date.is_week===true}}" class="limitation font24r">{{couponData.exp_date.week_show?couponData.exp_date.week_show+'可用':''}}{{couponData.desc?','+couponData.desc+'。':'。'}}</text> 132 <text wx:if="{{couponData.exp_date.is_week=='1' || couponData.exp_date.is_week===true}}" class="limitation font24r">{{couponData.exp_date.week_show?couponData.exp_date.week_show+'可用':''}}{{couponData.desc?','+couponData.desc+'。':'。'}}</text>
132 <view wx:if="{{couponData.exp_date.is_none=='1' || couponData.exp_date.is_none===true}}" class="limitation font24r"> 133 <view wx:if="{{couponData.exp_date.is_none=='1' || couponData.exp_date.is_none===true}}" class="limitation font24r">
@@ -176,6 +176,8 @@ Page({ @@ -176,6 +176,8 @@ Page({
176 }).then(res => { 176 }).then(res => {
177 if (res.data.length > 0) { 177 if (res.data.length > 0) {
178 let couponData = res.data[0] 178 let couponData = res.data[0]
  179 + couponData.use = couponData.use ? util.determine(couponData.use) : '';
  180 + couponData.exp_date = couponData.exp_date ? util.determine(couponData.exp_date) : '';
179 if ((couponData.use && (!couponData.use.is_cash || couponData.use.is_cash == '1'))) { 181 if ((couponData.use && (!couponData.use.is_cash || couponData.use.is_cash == '1'))) {
180 let cash = couponData.use.cash * 1; 182 let cash = couponData.use.cash * 1;
181 let price = couponData.price * 1; 183 let price = couponData.price * 1;