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

单产品优惠券bug处理

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