liudan 6 months ago
parent f7d1086583
commit c21580819f
  1. 16
      components/orderCoupon/index.vue
  2. 1
      pages/users/order_confirm/index.vue

@ -9,13 +9,29 @@
<view class='item acea-row row-center-wrapper' :class="item.disabled ? 'disabled' : ''" <view class='item acea-row row-center-wrapper' :class="item.disabled ? 'disabled' : ''"
v-for="(item,index) in couponArr" @click="getCouponUser(index,item)" :key='index'> v-for="(item,index) in couponArr" @click="getCouponUser(index,item)" :key='index'>
<view v-if="item.coupon.send_type == 5" class='money acea-row row-column row-center-wrapper vip-coupon'> <view v-if="item.coupon.send_type == 5" class='money acea-row row-column row-center-wrapper vip-coupon'>
<view v-if="item.type=='bd_buy'">
<view class="line1 coupon_value"><text class='num'>{{item.coupon.discount}}</text></view>
<view class="pic-num">折扣券</view>
</view>
<view v-else>
<view><text class='num'>{{item.coupon_price}}</text></view> <view><text class='num'>{{item.coupon_price}}</text></view>
<view class="pic-num">{{item.use_min_price}}元可用</view> <view class="pic-num">{{item.use_min_price}}元可用</view>
</view> </view>
</view>
<view v-else class='money acea-row row-column row-center-wrapper' :style="{ 'background-image': `url(${domain}/static/diy/couponBg${keyColor}.png)` }"> <view v-else class='money acea-row row-column row-center-wrapper' :style="{ 'background-image': `url(${domain}/static/diy/couponBg${keyColor}.png)` }">
<view v-if="item.type=='bd_buy'">
<view class="line1 coupon_value"><text class='num'>{{item.coupon.discount}}</text></view>
<view class="pic-num">折扣券</view>
</view>
<view v-else>
<view><text class='num'>{{item.coupon_price}}</text></view> <view><text class='num'>{{item.coupon_price}}</text></view>
<view class="pic-num">{{item.use_min_price}}元可用</view> <view class="pic-num">{{item.use_min_price}}元可用</view>
</view> </view>
</view>
<view class='text'> <view class='text'>
<view class='condition line1'> <view class='condition line1'>
<span class='line-title' v-if='item.coupon.type===0'>店铺券</span> <span class='line-title' v-if='item.coupon.type===0'>店铺券</span>

@ -150,6 +150,7 @@
<view class='discount' @tap='couponTap(item,index)'> <view class='discount' @tap='couponTap(item,index)'>
<text v-if="item.order.coupon_price>0">优惠{{item.order.coupon_price}}</text> <text v-if="item.order.coupon_price>0">优惠{{item.order.coupon_price}}</text>
<text v-else>暂未选择优惠券</text> <text v-else>暂未选择优惠券</text>
<text class='iconfont icon-jiantou'></text> <text class='iconfont icon-jiantou'></text>
</view> </view>
</block> </block>

Loading…
Cancel
Save