Commit a03d3a8ebc4ca46222d8680ab4387c9b32ccb89b

Authored by pengye
1 parent 4b099a31

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

... ... @@ -70,6 +70,7 @@
</view>
</view>
</view>
<!-- 优惠券 -->
<view class="publicModule preferentialCoupon" wx:if="{{hasValueCertificate && marketing.is_coupon=='1' && coupon_dataList.length>0}}">
<image class="titleImg5" src="https://qn.colorcun.com/invitation10Title1.png" mode="" />
<block wx:for="{{coupon_dataList}}" wx:key="index" wx:for-index="index">
... ... @@ -96,7 +97,7 @@
</navigator>
</block>
</view>
<!-- 优惠券 -->
<!-- 充值 -->
<view class="publicModule preferentialCoupon" wx:if="{{hasValueRecharge && marketing.is_recharge=='1' && recharge_data}}">
<image class="titleImg6" src="https://qn.colorcun.com/invitation10Title2.png" mode="" />
<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 @@
点击了解更多会员优惠政策
</view>
</view>
<!-- 充值 -->
<!-- 评价券 -->
<view class="publicModule evaluateCoupon" wx:if="{{!is_user_comments && isComments =='1' && couponData.showCoupon =='1'}}">
<image class="titleImg4" src="https://qn.colorcun.com/invitation10Title3.png" mode="" />
<view class="preferentialItems" bindtap="evaluateFun">
<view class="certificateInfo">
<text class="discountText font20r">{{couponData.use.is_cash=='1'?'代金券':couponData.use.is_discount=='1'?'超值折扣':couponData.use.is_dish=='1'?'特惠菜品':''}}</text>
<text class="discountText font20r">评价有礼</text>
<view class="ticketName font36r">{{couponData.aname}}</view>
<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>
<view wx:if="{{couponData.exp_date.is_none=='1' || couponData.exp_date.is_none===true}}" class="limitation font24r">
... ...
... ... @@ -176,6 +176,8 @@ Page({
}).then(res => {
if (res.data.length > 0) {
let couponData = res.data[0]
couponData.use = couponData.use ? util.determine(couponData.use) : '';
couponData.exp_date = couponData.exp_date ? util.determine(couponData.exp_date) : '';
if ((couponData.use && (!couponData.use.is_cash || couponData.use.is_cash == '1'))) {
let cash = couponData.use.cash * 1;
let price = couponData.price * 1;
... ...