|
|
@ -83,10 +83,10 @@ |
|
|
<view class="lf-font-28 lf-color-777">运费</view> |
|
|
<view class="lf-font-28 lf-color-777">运费</view> |
|
|
<view class="lf-font-26" style="color: #F63434;">+¥{{ order_detail.order.payable_freight_yuan || 0 }}</view> |
|
|
<view class="lf-font-26" style="color: #F63434;">+¥{{ order_detail.order.payable_freight_yuan || 0 }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="lf-row-between lf-m-t-20"> |
|
|
|
|
|
|
|
|
<!-- <view class="lf-row-between lf-m-t-20"> |
|
|
<view class="lf-font-28 lf-color-777">优惠</view> |
|
|
<view class="lf-font-28 lf-color-777">优惠</view> |
|
|
<view class="lf-font-26" style="color: #F63434;">-¥{{ fullMinus(order_detail.discounts) }}</view> |
|
|
<view class="lf-font-26" style="color: #F63434;">-¥{{ fullMinus(order_detail.discounts) }}</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> --> |
|
|
</view> |
|
|
</view> |
|
|
<view class="spread-out"></view> |
|
|
<view class="spread-out"></view> |
|
|
<view class="fixed-bottom"> |
|
|
<view class="fixed-bottom"> |
|
|
@ -107,11 +107,11 @@ |
|
|
<!-- 选择优惠券弹出层 --> |
|
|
<!-- 选择优惠券弹出层 --> |
|
|
<u-popup v-model="show_coupon" mode="bottom" :round="true" borderRadius="20"> |
|
|
<u-popup v-model="show_coupon" mode="bottom" :round="true" borderRadius="20"> |
|
|
<view class="popup-content"> |
|
|
<view class="popup-content"> |
|
|
<view class="lf-row-between" v-for="(item, index) in order_detail.coupons" :key="index"> |
|
|
|
|
|
|
|
|
<label class="lf-row-between" v-for="(item, index) in order_detail.coupons" :key="index"> |
|
|
<radio-group @change="couponChange"> |
|
|
<radio-group @change="couponChange"> |
|
|
<radio :value="index" :checked="coupon_index == index"></radio> |
|
|
<radio :value="index" :checked="coupon_index == index"></radio> |
|
|
</radio-group> |
|
|
</radio-group> |
|
|
<view class="coupon-card lf-m-b-30" :class="{'invalid-bg': item.ifpast == true}"> |
|
|
|
|
|
|
|
|
<view class="coupon-card lf-m-b-30" > |
|
|
<view class="coupon-circle-top"> |
|
|
<view class="coupon-circle-top"> |
|
|
<view class="coupon-circle1"></view> |
|
|
<view class="coupon-circle1"></view> |
|
|
</view> |
|
|
</view> |
|
|
@ -129,15 +129,6 @@ |
|
|
<text class="lf-font-70 lf-font-bold">{{item.discount.action_type.value}}</text> |
|
|
<text class="lf-font-70 lf-font-bold">{{item.discount.action_type.value}}</text> |
|
|
<text>%</text> |
|
|
<text>%</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="coupon-tag" v-if="item.used_at != ''"> |
|
|
|
|
|
已使用 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="coupon-tag" v-if="item.ifpast"> |
|
|
|
|
|
已过期 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="coupon-tag" v-if="!item.ifpast && item.used_at == ''"> |
|
|
|
|
|
待使用 |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="coupon-right"> |
|
|
<view class="coupon-right"> |
|
|
<view class="lf-font-32 lf-font-bold lf-color-white">{{item.discount.title}}</view> |
|
|
<view class="lf-font-32 lf-font-bold lf-color-white">{{item.discount.title}}</view> |
|
|
@ -145,14 +136,14 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</label> |
|
|
<!-- 不使用优惠券 --> |
|
|
<!-- 不使用优惠券 --> |
|
|
<view class="lf-flex"> |
|
|
|
|
|
|
|
|
<label class="lf-flex"> |
|
|
<radio-group @change="couponChange"> |
|
|
<radio-group @change="couponChange"> |
|
|
<radio value="null" :checked="coupon_index == null"></radio> |
|
|
<radio value="null" :checked="coupon_index == null"></radio> |
|
|
</radio-group> |
|
|
</radio-group> |
|
|
<view>不使用优惠券</view> |
|
|
<view>不使用优惠券</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</label> |
|
|
</view> |
|
|
</view> |
|
|
</u-popup> |
|
|
</u-popup> |
|
|
</block> |
|
|
</block> |
|
|
@ -338,8 +329,6 @@ |
|
|
address_id: this.address.id, |
|
|
address_id: this.address.id, |
|
|
note: this.value, |
|
|
note: this.value, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 是否选择了优惠券 TODO 优惠券id是否传对? |
|
|
|
|
|
if(this.coupon_index != null){ |
|
|
if(this.coupon_index != null){ |
|
|
par.coupon_id = this.order_detail.coupons[this.coupon_index].id; |
|
|
par.coupon_id = this.order_detail.coupons[this.coupon_index].id; |
|
|
} |
|
|
} |
|
|
@ -472,8 +461,8 @@ |
|
|
height: max-content; |
|
|
height: max-content; |
|
|
background-color: #FFFFFF; |
|
|
background-color: #FFFFFF; |
|
|
border-top: 1rpx solid #e5e5e5; |
|
|
border-top: 1rpx solid #e5e5e5; |
|
|
padding-bottom: constant(safe-area-inset-bottom); |
|
|
|
|
|
padding-bottom: env(safe-area-inset-bottom); |
|
|
|
|
|
|
|
|
// padding-bottom: constant(safe-area-inset-bottom); |
|
|
|
|
|
// padding-bottom: env(safe-area-inset-bottom); |
|
|
.fixed-content{ |
|
|
.fixed-content{ |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 118rpx; |
|
|
height: 118rpx; |
|
|
@ -544,10 +533,12 @@ |
|
|
align-items: flex-start; |
|
|
align-items: flex-start; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
margin-left: 90rpx; |
|
|
|
|
|
|
|
|
margin-left: 54rpx; |
|
|
|
|
|
width: 380rpx; |
|
|
} |
|
|
} |
|
|
.coupon-left { |
|
|
.coupon-left { |
|
|
margin-left: 30rpx; |
|
|
|
|
|
|
|
|
// margin-left: 30rpx; |
|
|
|
|
|
width: 182rpx; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
|