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 @@