|
|
@ -28,7 +28,15 @@ |
|
|
|
<view class="tips"> |
|
|
|
<text class="money">应付金额: ¥ 99.00</text> |
|
|
|
<text class="time">支付剩余</text> |
|
|
|
00 时 29 分 59 秒 |
|
|
|
<!-- 倒计时组件 --> |
|
|
|
<uni-countdown |
|
|
|
:second="order.countdown" |
|
|
|
color="#fff" |
|
|
|
splitor-color="#fff" |
|
|
|
:show-day="false" |
|
|
|
:show-colon="false" |
|
|
|
@timeup="onTimeup" |
|
|
|
/> |
|
|
|
</view> |
|
|
|
<view class="button">去支付</view> |
|
|
|
</template> |
|
|
@ -259,6 +267,12 @@ const getMemberOrderByIdData = async () => { |
|
|
|
onLoad(() => { |
|
|
|
getMemberOrderByIdData() |
|
|
|
}) |
|
|
|
|
|
|
|
// 倒计时结束事件 |
|
|
|
const onTimeup = () => { |
|
|
|
// 修改订单状态为已取消 |
|
|
|
order.value!.orderState = OrderState.YiQuXiao |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|