Commit ea308504 authored by 潘永坪's avatar 潘永坪

单产品优惠券bug处理

parent 84704fdb
...@@ -139,21 +139,24 @@ ...@@ -139,21 +139,24 @@
</u-number-box> </u-number-box>
</view> </view>
</view> </view>
<view class=" middle-coupon" v-if="couponData" @click="showCoupon()"> <!-- 有可用优惠券,并且未选中 -->
<view class=" middle-coupon" v-if="couponData.masterSlaveCouponList&&couponData.masterSlaveCouponList.length>0&&!chooseCouponObj" @click="showCoupon()">
<view> <view>
</view> </view>
<!-- 有可用优惠券,并且未选中 -->
<template v-if="couponData.masterSlaveCouponList&&couponData.masterSlaveCouponList.length>0&&!chooseCouponObj">
<view> <view>
{{couponData.masterSlaveCouponList[0].couponName}} {{couponData.masterSlaveCouponList[0].couponName}}
</view> </view>
<view > <view >
未使用优惠券 未使用优惠券
</view> </view>
</template> <u-icon name="arrow-right" color="#3688FF"></u-icon>
</view>
<!-- 有可用优惠券 --> <!-- 有可用优惠券 -->
<template v-if="chooseCouponObj&&savedMoney>0"> <view class=" middle-coupon" v-if="chooseCouponObj&&savedMoney>0" @click="showCoupon()">
<view>
</view>
<view> <view>
{{chooseCouponObj.couponName}} {{chooseCouponObj.couponName}}
</view> </view>
...@@ -162,17 +165,19 @@ ...@@ -162,17 +165,19 @@
<text style="font-size: 24rpx;position: relative;top: 6rpx;">¥</text> <text style="font-size: 24rpx;position: relative;top: 6rpx;">¥</text>
{{parseFloat(savedMoney.toFixed(2))}} {{parseFloat(savedMoney.toFixed(2))}}
</view> </view>
</template> <u-icon name="arrow-right" color="#3688FF"></u-icon>
</view>
<!-- 可用优惠券条件--> <!-- 可用优惠券条件-->
<template v-if="ableConpon"> <view class=" middle-coupon" v-if="ableConpon" @click="showCoupon()">
<view>
</view>
<view> <view>
{{ableConpon.couponName}} {{ableConpon.couponName}}
</view> </view>
<view> <view>
{{ableConpon.couponRule}} {{ableConpon.couponRule}}
</view> </view>
</template>
<u-icon name="arrow-right" color="#3688FF"></u-icon> <u-icon name="arrow-right" color="#3688FF"></u-icon>
</view> </view>
......
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