提交 82b12ecf authored 作者: pengxiaohui's avatar pengxiaohui

回跳地址刷新订单状态bug

上级 e9aaf50b
......@@ -16,7 +16,7 @@
<van-cell title="订单编号" :value="details.order_detail_id" />
<van-cell title="下单时间" :value="details.pay_time" />
<van-cell title="支付方式" :value="payTypeText" />
<van-cell title="商品总额" :value="`¥${details.payment_money}`" />
<van-cell title="商品总额" :value="`¥${details.payment_money || ''}`" />
<van-cell title="支付状态" :value="orderStatus" />
</van-cell-group>
<div class="bottom-bar" v-if="orderStatus === '待付款'">
......@@ -53,7 +53,8 @@ export default {
payType: '12',
payParams: {},
payment_method: '12',
openId: '' // 'oF3a-t9pFpmL2gWuTmtWs5HlDGkU'
openId: '', // 'oF3a-t9pFpmL2gWuTmtWs5HlDGkU',
timer: null
}
},
computed: {
......@@ -87,7 +88,6 @@ export default {
else this.getCode()
}
this.fetchOrderDetails()
this.isPayBack && this.autoUpdateStatus()
},
methods: {
handlePay(item) {
......@@ -144,10 +144,10 @@ export default {
this.details = first
if (this.isPayBack) {
if (first.order_status === '1') {
this.timer && clearInterval(this.timer)
}
if (first.order_status === '4') {
this.autoUpdateStatus()
} else if (first.order_status === '4') {
Toast.success('购买商品成功')
this.timer && clearInterval(this.timer)
}
}
}
......@@ -192,7 +192,7 @@ export default {
window.location.reload()
})
} else {
console.log('下单失败')
Toast.fail(res.msg || '购买下单失败')
}
}
} else if (payType === '4') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论