From ed762c7613d6dbbd3fb006293b03f966e40e1b95 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Wed, 20 May 2026 14:15:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=96=E6=B6=88this.$i18n.locale?= =?UTF-8?q?=E7=9A=84=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/InAppPurchaseDetails/index.vue | 26 ++++++++++++++----- src/views/game/lottery-config/form-edit.vue | 2 +- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/components/data/InAppPurchaseDetails/index.vue b/src/components/data/InAppPurchaseDetails/index.vue index e9d55b6..2f61e70 100644 --- a/src/components/data/InAppPurchaseDetails/index.vue +++ b/src/components/data/InAppPurchaseDetails/index.vue @@ -42,9 +42,9 @@ {{ order.details.env }} {{ order.details.env }} -
{{ $t('pages.inAppPurchaseDetails.label.type') }}: {{ orderReceiptTypeMap[order.details.receiptType] }}
+
{{ $t('pages.inAppPurchaseDetails.label.type') }}: {{ getReceiptTypeLabel(order.details.receiptType) }}
{{ $t('pages.inAppPurchaseDetails.label.status') }}: - {{ orderStatusMap[order.details.status].label }} + {{ getOrderStatus(order.details.status).label }}
{{ $t('pages.inAppPurchaseDetails.label.id') }}: {{ order.details.id }}
{{ $t('pages.inAppPurchaseDetails.label.trackId') }}: {{ order.details.trackId }}
@@ -52,8 +52,8 @@
{{ $t('pages.inAppPurchaseDetails.label.orderId') }}: {{ order.details.orderId }}
{{ $t('pages.inAppPurchaseDetails.label.platformChannel') }}: - - + +
{{ $t('pages.inAppPurchaseDetails.label.countryCode') }}: {{ order.details.countryCode }}
{{ $t('pages.inAppPurchaseDetails.label.currency') }}: {{ order.details.currency }}
@@ -73,7 +73,7 @@
{{ $t('pages.inAppPurchaseDetails.section.statusFlow') }}
- +
@@ -168,7 +168,7 @@ export default { }, computed: { orderReceiptTypeMap() { - const locale = this.$i18n.locale + const locale = this.$locale void locale return { PAYMENT: this.$t('pages.inAppPurchaseDetails.receiptType.payment'), @@ -176,7 +176,7 @@ export default { } }, orderStatusMap() { - const locale = this.$i18n.locale + const locale = this.$locale void locale return { CREATE: { @@ -231,6 +231,18 @@ export default { handleClose() { this.$emit('close') }, + getReceiptTypeLabel(receiptType) { + return this.orderReceiptTypeMap[receiptType] || receiptType || '-' + }, + getOrderStatus(status) { + return this.orderStatusMap[status] || { + label: status || '-', + tagType: 'info' + } + }, + getOrderFactory(details) { + return (details && details.factory) || {} + }, loadInAppPurchase() { const that = this that.orderLoading = true diff --git a/src/views/game/lottery-config/form-edit.vue b/src/views/game/lottery-config/form-edit.vue index 58d1166..5600800 100644 --- a/src/views/game/lottery-config/form-edit.vue +++ b/src/views/game/lottery-config/form-edit.vue @@ -503,7 +503,7 @@ export default { }, computed: { badgeRestaurants() { - const locale = this.$i18n.locale + const locale = this.$locale void locale return [{ value: '0', label: this.$t('pages.gameLotteryConfigForm.word.permanent') }] },