Commit 9a4852b3 by hxx

优惠券 bug 修复

parent a23bc750
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="receive"> <div class="receive" v-if="item.receiveTag != 0">
<div>立即</div> <div>立即</div>
<div>领取</div> <div>领取</div>
</div> </div>
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="receive" :style="{ <div class="receive" v-if="item.receiveTag != 0" :style="{
'color':datas.componentData.color && datas.componentData.color.hotColor, 'color':datas.componentData.color && datas.componentData.color.hotColor,
'background':datas.componentData.color && datas.componentData.color.type == 1 ? 'rgba(255,255,255,.8)' : 'linear-gradient(0deg,#FFE590 50%, #FFF0D1 100%)' 'background':datas.componentData.color && datas.componentData.color.type == 1 ? 'rgba(255,255,255,.8)' : 'linear-gradient(0deg,#FFE590 50%, #FFF0D1 100%)'
}"> }">
...@@ -561,7 +561,7 @@ ...@@ -561,7 +561,7 @@
领到券开始到当月月底有效 领到券开始到当月月底有效
</template> </template>
</div> </div>
<div class="coupon-receive" <div class="coupon-receive" v-if="item.receiveTag != 0"
:style="{'background' : datas.componentData.color && datas.componentData.color.name}" :style="{'background' : datas.componentData.color && datas.componentData.color.name}"
>立即领取</div> >立即领取</div>
</div> </div>
...@@ -657,6 +657,13 @@ export default { ...@@ -657,6 +657,13 @@ export default {
// 领取优惠券 // 领取优惠券
receiveCoupon(code, item) { receiveCoupon(code, item) {
console.log("----领取优惠券",code, item) console.log("----领取优惠券",code, item)
if (item.receiveTag != 1) {
wx.showToast({
title: '不在可领取时间~',
icon: "none"
})
return;
}
this.usingIntegrals = (item.consumeIntegral - 0).toFixed(0); this.usingIntegrals = (item.consumeIntegral - 0).toFixed(0);
this.couponCode = code; this.couponCode = code;
this.couItem = item; this.couItem = item;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment