|
@@ -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;
|