|
|
@@ -187,6 +187,7 @@ import { http } from '@/plugins/http'
|
|
|
import toast from '@/utils/toast'
|
|
|
import { usePageVisibility } from '@vant/use'
|
|
|
import { Browser } from '@capacitor/browser'
|
|
|
+import { useI18n } from 'vue-i18n'
|
|
|
|
|
|
const router = useRouter()
|
|
|
function navigate() {
|
|
|
@@ -247,6 +248,7 @@ function getSaleBatch() {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const i18n = useI18n()
|
|
|
const goList = info => {
|
|
|
if (getStatus(info) === '抢购中') {
|
|
|
router.push({
|
|
|
@@ -256,7 +258,7 @@ const goList = info => {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- toast(this.$t('common.wait') + '...')
|
|
|
+ toast(i18n.t('common.wait') + '...')
|
|
|
}
|
|
|
}
|
|
|
|