This commit is contained in:
xingyy 2025-02-26 11:51:21 +08:00
parent 743206c277
commit 28215a75e6
6 changed files with 12 additions and 12 deletions

View File

@ -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') }}
</van-floating-bubble>
</template>

View File

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

View File

@ -1,11 +1,11 @@
<script setup>
import pdfView from './pdfView'
import pdfView from './pdfView/index.vue'
import { contractView } from "~/api/goods/index.js"
import {codeAuthStore} from "~/stores-collect-code/auth/index.js";
import {signOffline} from "~/api/goods/index.js";
import {useI18n} from "vue-i18n";
definePageMeta({
title:'签署'
i18n: 'signature.protocol.title'
})
const {t} =useI18n()
@ -98,9 +98,7 @@ const goSignature = () => {
<div class="text-#2B53AC text-14px">{{ item.title }}</div>
</template>
<pdfView
:pdf-name="item.pdfName"
:type="item.type"
:is-active="activeNames === item.id"
:is-active="activeNames === item.id"
/>
</van-collapse-item>
</van-collapse>

View File

@ -1,7 +1,7 @@
<script setup>
import {authStore} from "@/stores/auth/index.js";
import {useI18n} from 'vue-i18n'
const {$t} = useI18n()
const {t:$t} = useI18n()
const props = defineProps({
type: {
type: Number,

View File

@ -6,7 +6,7 @@ import {VueSignaturePad} from "vue-signature-pad";
import {authStore} from "~/stores/auth/index.js";
import {useI18n} from "vue-i18n";
const router = useRouter();
const {$t} = useI18n()
const {t:$t} = useI18n()
definePageMeta({
layout: ''
})

View File

@ -6,7 +6,7 @@ definePageMeta({
name: 'personal-info',
})
const {t} = useI18n()
const {$t} = useI18n()
const {t:$t} = useI18n()
const showPicker = ref(false)
const showPicker1 = ref(false)
const onConfirm = () => {