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 { watch, onUnmounted } from 'vue'
import { hideMinWindow1 } from './floating' import { hideMinWindow1 } from './floating'
const { t } = useI18n()
// //
const props = defineProps({ const props = defineProps({
/** 点击气泡时的回调函数 */ /** 点击气泡时的回调函数 */
@ -13,10 +15,10 @@ const props = defineProps({
type: Function, type: Function,
default: () => {} default: () => {}
}, },
/** 气泡文本内容 */ /** 气泡文本内容(可选,默认使用国际化文本) */
text: { text: {
type: String, type: String,
default: '回到直播' default: null
} }
}) })
@ -37,7 +39,7 @@ onUnmounted(() => {
:offset="{ x: 300, y: 50 }" :offset="{ x: 300, y: 50 }"
@click="onClick" @click="onClick"
> >
{{ text }} {{ text || t('floatingBubble.backToLive') }}
</van-floating-bubble> </van-floating-bubble>
</template> </template>

View File

@ -13,7 +13,7 @@ const {t} = useI18n();
const {checkoutSessionUrl,qrUid,qrData} = codeAuthStore() const {checkoutSessionUrl,qrUid,qrData} = codeAuthStore()
const payStatus = ref(0) const payStatus = ref(0)
definePageMeta({ definePageMeta({
title: '线下支付' i18n: 'payment.title'
}) })
const changePayStatus = () => { const changePayStatus = () => {
payStatus.value = payStatus.value === 0 ? 1 : 0 payStatus.value = payStatus.value === 0 ? 1 : 0

View File

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

View File

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

View File

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

View File

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