fix:修复bug

This commit is contained in:
2026-01-22 10:52:58 +08:00
parent b0daa7b59b
commit 6a1dff4b94
46 changed files with 3779 additions and 2522 deletions
+4 -4
View File
@@ -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) {