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

单产品优惠券bug处理

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