【功能完善】纯积分兑换时,直接跳转到订单详情

pull/110/head
YunaiV 2024-10-04 19:17:40 +08:00
parent 96d86f237d
commit 1ffa754dbe
1 changed files with 13 additions and 4 deletions

View File

@ -40,7 +40,10 @@
</text>
</view>
</view>
<view v-if="state.orderPayload.pointActivityId" class="order-item ss-flex ss-col-center ss-row-between">
<view
v-if="state.orderPayload.pointActivityId"
class="order-item ss-flex ss-col-center ss-row-between"
>
<view class="item-title">兑换积分</view>
<view class="ss-flex ss-col-center">
<image
@ -317,9 +320,15 @@
}
//
sheep.$router.redirect('/pages/pay/index', {
id: data.payOrderId,
});
if (data.payOrderId && data.payOrderId > 0) {
sheep.$router.redirect('/pages/pay/index', {
id: data.payOrderId,
});
} else {
sheep.$router.redirect('/pages/order/detail', {
id: data.id,
});
}
}
// &