【功能完善】积分商城:完善订单相关信息展示

This commit is contained in:
puhui999
2024-10-04 13:30:08 +08:00
parent b2e40e7011
commit 732aa7686c
2 changed files with 25 additions and 9 deletions
+4 -7
View File
@@ -58,17 +58,14 @@
>
<view class="item-title">积分抵扣</view>
<view class="ss-flex ss-col-center">
{{ state.pointStatus ? '剩余积分' : '当前积分' }}
{{ state.pointStatus || state.orderPayload.pointActivityId ? '剩余积分' : '当前积分' }}
<image
:src="sheep.$url.static('/static/img/shop/goods/score1.svg')"
class="score-img"
/>
<text class="item-value ss-m-r-24" v-if="state.orderPayload.pointActivityId">
{{ state.orderInfo.totalPoint || 0 }}
</text>
<text class="item-value ss-m-r-24" v-if="!state.orderPayload.pointActivityId">
<text class="item-value ss-m-r-24">
{{
state.pointStatus
state.pointStatus || state.orderPayload.pointActivityId
? state.orderInfo.totalPoint - state.orderInfo.usePoint
: state.orderInfo.totalPoint || 0
}}
@@ -346,7 +343,7 @@
return;
}
state.orderInfo = data;
state.couponInfo = data.coupons;
state.couponInfo = data.coupons || [];
// 设置收货地址
if (state.orderInfo.address) {
addressState.value.addressInfo = state.orderInfo.address;