更新v1.5

This commit is contained in:
kele
2022-12-07 18:42:08 +08:00
parent d4418f23c2
commit 2e55927d2e
8 changed files with 138 additions and 38 deletions
+13 -3
View File
@@ -70,11 +70,18 @@
<!-- <view v-if="state.orderInfo.coupon_discount_fee > 0" class="order-item ss-flex ss-col-center ss-row-between"> -->
<view class="item-title">优惠券</view>
<view class="ss-flex ss-col-center" @tap="state.showCoupon = true">
<text class="item-value text-red" v-if="state.orderPayload.coupon_id != 0"
<text class="item-value text-red" v-if="state.orderPayload.coupon_id"
>-{{ state.orderInfo.coupon_discount_fee }}</text
>
<text class="item-value text-red" v-else
>{{ state.couponInfo.can_use?.length }}张可用</text
<text
class="item-value"
:class="state.couponInfo.can_use?.length > 0 ? 'text-red' : 'text-disabled'"
v-else
>{{
state.couponInfo.can_use?.length > 0
? state.couponInfo.can_use?.length + '张可用'
: '暂无可用优惠券'
}}</text
>
<text class="_icon-forward item-icon"></text>
@@ -337,6 +344,9 @@
.item-value {
font-family: OPPOSANS;
}
.text-disabled {
color: #bbbbbb;
}
.item-icon {
color: $dark-9;