From 28215a75e60ebd2dd1231acb8a646386d8992bf2 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:51:21 +0800 Subject: [PATCH] 1231 --- app/components/floatingBubble/index.vue | 8 +++++--- app/pages/collectCode/payment/index.vue | 2 +- app/pages/collectCode/signature/protocol/index.vue | 8 +++----- app/pages/realAuth/components/detail.vue | 2 +- app/pages/signature/panel/index.vue | 2 +- app/pages/signature/personal-Info/index.vue | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/components/floatingBubble/index.vue b/app/components/floatingBubble/index.vue index f68a4a8..c9087e0 100644 --- a/app/components/floatingBubble/index.vue +++ b/app/components/floatingBubble/index.vue @@ -6,6 +6,8 @@ import { watch, onUnmounted } from 'vue' import { hideMinWindow1 } from './floating' +const { t } = useI18n() + // 组件属性定义 const props = defineProps({ /** 点击气泡时的回调函数 */ @@ -13,10 +15,10 @@ const props = defineProps({ type: Function, default: () => {} }, - /** 气泡文本内容 */ + /** 气泡文本内容(可选,默认使用国际化文本) */ text: { type: String, - default: '回到直播' + default: null } }) @@ -37,7 +39,7 @@ onUnmounted(() => { :offset="{ x: 300, y: 50 }" @click="onClick" > - {{ text }} + {{ text || t('floatingBubble.backToLive') }} diff --git a/app/pages/collectCode/payment/index.vue b/app/pages/collectCode/payment/index.vue index 25e7129..b3b408e 100644 --- a/app/pages/collectCode/payment/index.vue +++ b/app/pages/collectCode/payment/index.vue @@ -13,7 +13,7 @@ const {t} = useI18n(); const {checkoutSessionUrl,qrUid,qrData} = codeAuthStore() const payStatus = ref(0) definePageMeta({ - title: '线下支付' + i18n: 'payment.title' }) const changePayStatus = () => { payStatus.value = payStatus.value === 0 ? 1 : 0 diff --git a/app/pages/collectCode/signature/protocol/index.vue b/app/pages/collectCode/signature/protocol/index.vue index cb43883..eb63c3d 100644 --- a/app/pages/collectCode/signature/protocol/index.vue +++ b/app/pages/collectCode/signature/protocol/index.vue @@ -1,11 +1,11 @@