Commit b8de42ab0d821029eb9cc2bf98667adc2b89cb4e

Authored by pengye
1 parent c519759d

领券和验券页面,区分个人券还是店铺券,个人券不显示券码

... ... @@ -126,7 +126,8 @@ Page({
icon:'none'
})
}
if(this.data.detail.grant_last=='0'){
// is_type 1店铺优惠券 需要判断优惠券剩余数量 2个人优惠券不需要判断数量
if(this.data.detail.grant_last=='0' && this.data.detail.is_type=='1'){
return wx.showToast({
title:'您来晚了,当前优惠券已经售罄,请与商家联系!',
duration:2000,
... ... @@ -134,7 +135,8 @@ Page({
icon:'none'
})
}
if(this.data.detail.grant_last && (this.data.detail.grant_last*1)<(this.data.num*1)){
// is_type 1店铺优惠券 需要判断优惠券剩余数量 2个人优惠券不需要判断数量
if(this.data.detail.grant_last && (this.data.detail.grant_last*1)<(this.data.num*1) && this.data.detail.is_type=='1'){
return wx.showToast({
title:'优惠券剩余数量不足!',
duration:2000,
... ...
... ... @@ -59,7 +59,8 @@
<text wx:if="{{exp_date.is_week=='1' || exp_date.is_week===true}}" class="info info_right text_info font32r text_info1" >
{{exp_date.week_show?exp_date.week_show:''}}
</text>
<view class="info" wx:if="{{detail.grant_last && detail.grant_last>0}}">
<!-- is_type 1店铺优惠券 需要判断优惠券剩余数量 2个人优惠券不需要判断数量 -->
<view class="info" wx:if="{{detail.grant_last && detail.grant_last>0 && detail.is_type=='1'}}">
<view class="info_left font32r">
剩余数量:
</view>
... ...
... ... @@ -9,13 +9,14 @@
<view class="shop_name font28r">
{{detail.sellername}}
</view>
<view class="lineBox">
<view class="line"></view>
<image wx:if="{{detail.is_examine=='1'}}" class="group" src="https://qn.colorcun.com/WechatIMG713.png" mode="" />
<image wx:if="{{detail.is_expire=='1'}}" class="group" src="https://qn.colorcun.com/WechatIMG714.png" mode="" />
<!-- is_type 1店铺券 2个人券 是店铺券 && 需要验券-->
<view class="lineBox" wx:if="{{detail.activity.is_type=='1' && detail.activity.is_examine=='1'}}">
<view class="line" ></view>
<image wx:if="{{detail.is_examine=='1'}}" class="group" src="https://qn.colorcun.com/WechatIMG713.png" mode="" />
<image wx:if="{{detail.is_expire=='1'}}" class="group" src="https://qn.colorcun.com/WechatIMG714.png" mode="" />
</view>
<image class="qcode" src="{{detail.qrcode}}" mode="" />
<view class="orderNumber font28r">
<image wx:if="{{detail.qrcode && detail.activity.is_type=='1' && detail.activity.is_examine=='1'}}" class="qcode" src="{{detail.qrcode}}" mode="" />
<view class="orderNumber font28r" wx:if="{{detail.activity.is_type=='1' && detail.activity.is_examine=='1'}}">
{{detail.order_no}}
</view>
</view>
... ...
... ... @@ -38,10 +38,9 @@ Page({
}
})
this.setData({
list
list,
isShow:true,
})
this.isShow=true
}
})
},
... ...