fix:修复bug
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
import { getOrderByOrderNoScorePayStatus, cancelOrder } from '@/config/api/order.js'
|
||||
import { useI18n } from '@/utils/i18n.js'
|
||||
|
||||
const { t: $t } = useI18n()
|
||||
const { t } = useI18n()
|
||||
|
||||
const progress = ref(0)
|
||||
const leftRotateDeg = ref(0)
|
||||
@@ -91,7 +91,7 @@
|
||||
await cancelOrder({ orderId: orderNo.value })
|
||||
}
|
||||
} catch (e) {}
|
||||
uni.showToast({ title: $t('waiting.rentFailed'), icon: 'none' })
|
||||
uni.showToast({ title: t('waiting.rentFailed'), icon: 'none' })
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({ url: '/pages/index/index' })
|
||||
}, 800)
|
||||
@@ -129,7 +129,7 @@
|
||||
// 超时保护:例如 60 秒
|
||||
timeoutTimer = setTimeout(() => {
|
||||
stopAllTimers()
|
||||
uni.showToast({ title: $t('waiting.timeout'), icon: 'none' })
|
||||
uni.showToast({ title: t('waiting.timeout'), icon: 'none' })
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({ url: '/pages/index/index' })
|
||||
}, 800)
|
||||
@@ -138,7 +138,7 @@
|
||||
|
||||
onLoad((query) => {
|
||||
uni.setNavigationBarTitle({
|
||||
title: $t('waiting.title')
|
||||
title: t('waiting.title')
|
||||
})
|
||||
if (query) {
|
||||
if (query.orderNo) {
|
||||
|
||||
Reference in New Issue
Block a user