Showing
4 changed files
with
15 additions
and
12 deletions
| @@ -126,7 +126,8 @@ Page({ | @@ -126,7 +126,8 @@ Page({ | ||
| 126 | icon:'none' | 126 | icon:'none' |
| 127 | }) | 127 | }) |
| 128 | } | 128 | } |
| 129 | - if(this.data.detail.grant_last=='0'){ | 129 | + // is_type 1店铺优惠券 需要判断优惠券剩余数量 2个人优惠券不需要判断数量 |
| 130 | + if(this.data.detail.grant_last=='0' && this.data.detail.is_type=='1'){ | ||
| 130 | return wx.showToast({ | 131 | return wx.showToast({ |
| 131 | title:'您来晚了,当前优惠券已经售罄,请与商家联系!', | 132 | title:'您来晚了,当前优惠券已经售罄,请与商家联系!', |
| 132 | duration:2000, | 133 | duration:2000, |
| @@ -134,7 +135,8 @@ Page({ | @@ -134,7 +135,8 @@ Page({ | ||
| 134 | icon:'none' | 135 | icon:'none' |
| 135 | }) | 136 | }) |
| 136 | } | 137 | } |
| 137 | - if(this.data.detail.grant_last && (this.data.detail.grant_last*1)<(this.data.num*1)){ | 138 | + // is_type 1店铺优惠券 需要判断优惠券剩余数量 2个人优惠券不需要判断数量 |
| 139 | + if(this.data.detail.grant_last && (this.data.detail.grant_last*1)<(this.data.num*1) && this.data.detail.is_type=='1'){ | ||
| 138 | return wx.showToast({ | 140 | return wx.showToast({ |
| 139 | title:'优惠券剩余数量不足!', | 141 | title:'优惠券剩余数量不足!', |
| 140 | duration:2000, | 142 | duration:2000, |
| @@ -59,7 +59,8 @@ | @@ -59,7 +59,8 @@ | ||
| 59 | <text wx:if="{{exp_date.is_week=='1' || exp_date.is_week===true}}" class="info info_right text_info font32r text_info1" > | 59 | <text wx:if="{{exp_date.is_week=='1' || exp_date.is_week===true}}" class="info info_right text_info font32r text_info1" > |
| 60 | {{exp_date.week_show?exp_date.week_show:''}} | 60 | {{exp_date.week_show?exp_date.week_show:''}} |
| 61 | </text> | 61 | </text> |
| 62 | - <view class="info" wx:if="{{detail.grant_last && detail.grant_last>0}}"> | 62 | + <!-- is_type 1店铺优惠券 需要判断优惠券剩余数量 2个人优惠券不需要判断数量 --> |
| 63 | + <view class="info" wx:if="{{detail.grant_last && detail.grant_last>0 && detail.is_type=='1'}}"> | ||
| 63 | <view class="info_left font32r"> | 64 | <view class="info_left font32r"> |
| 64 | 剩余数量: | 65 | 剩余数量: |
| 65 | </view> | 66 | </view> |
| @@ -9,13 +9,14 @@ | @@ -9,13 +9,14 @@ | ||
| 9 | <view class="shop_name font28r"> | 9 | <view class="shop_name font28r"> |
| 10 | {{detail.sellername}} | 10 | {{detail.sellername}} |
| 11 | </view> | 11 | </view> |
| 12 | - <view class="lineBox"> | ||
| 13 | - <view class="line"></view> | ||
| 14 | - <image wx:if="{{detail.is_examine=='1'}}" class="group" src="https://qn.colorcun.com/WechatIMG713.png" mode="" /> | ||
| 15 | - <image wx:if="{{detail.is_expire=='1'}}" class="group" src="https://qn.colorcun.com/WechatIMG714.png" mode="" /> | 12 | + <!-- is_type 1店铺券 2个人券 是店铺券 && 需要验券--> |
| 13 | + <view class="lineBox" wx:if="{{detail.activity.is_type=='1' && detail.activity.is_examine=='1'}}"> | ||
| 14 | + <view class="line" ></view> | ||
| 15 | + <image wx:if="{{detail.is_examine=='1'}}" class="group" src="https://qn.colorcun.com/WechatIMG713.png" mode="" /> | ||
| 16 | + <image wx:if="{{detail.is_expire=='1'}}" class="group" src="https://qn.colorcun.com/WechatIMG714.png" mode="" /> | ||
| 16 | </view> | 17 | </view> |
| 17 | - <image class="qcode" src="{{detail.qrcode}}" mode="" /> | ||
| 18 | - <view class="orderNumber font28r"> | 18 | + <image wx:if="{{detail.qrcode && detail.activity.is_type=='1' && detail.activity.is_examine=='1'}}" class="qcode" src="{{detail.qrcode}}" mode="" /> |
| 19 | + <view class="orderNumber font28r" wx:if="{{detail.activity.is_type=='1' && detail.activity.is_examine=='1'}}"> | ||
| 19 | {{detail.order_no}} | 20 | {{detail.order_no}} |
| 20 | </view> | 21 | </view> |
| 21 | </view> | 22 | </view> |
-
Please register or login to post a comment