chore(BD、BDLeader政策页): 补充翻译,替换头部组件

This commit is contained in:
hzj 2025-12-12 18:00:28 +08:00
parent 61e6290d54
commit 8655fb317a
4 changed files with 29 additions and 9 deletions

View File

@ -413,5 +413,8 @@
"vehicles": "المركبات",
"chat_box": "صندوق الدردشة",
"theme": "الموضوع",
"vip": "VIP"
"vip": "VIP",
"bd_policy": "سياسة BD",
"bd_leader_policy": "سياسة قائد BD"
}

View File

@ -413,5 +413,8 @@
"vehicles": "Vehicles",
"chat_box": "Chat Box",
"theme": "Theme",
"vip": "VIP"
"vip": "VIP",
"bd_policy": "BD Policy",
"bd_leader_policy": "BD Leader Policy"
}

View File

@ -413,5 +413,8 @@
"vehicles": "坐骑",
"chat_box": "聊天框",
"theme": "主题",
"vip": "VIP"
"vip": "VIP",
"bd_policy": "BD政策",
"bd_leader_policy": "BD主管政策"
}

View File

@ -1,7 +1,12 @@
<template>
<div class="policy-container">
<div class="policy-container gradient-background-circles">
<!-- 顶部导航 -->
<MobileHeader :title="title" />
<GeneralHeader
:title="title"
:backImg="imgUrl"
color="black"
style="box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); z-index: 999"
/>
<img
v-if="from === 'BDLead'"
:src="bdLeaderImgUrl"
@ -13,11 +18,17 @@
</template>
<script setup>
import { computed, onMounted, ref } from 'vue'
import MobileHeader from '@/components/MobileHeader.vue'
import { onMounted, ref } from 'vue'
import { useRoute } from 'vue-router'
import { useI18n } from 'vue-i18n'
import GeneralHeader from '@/components/GeneralHeader.vue'
const imgUrl = new URL('/src/assets/icon/arrowBackBlack.png', import.meta.url).href
const route = useRoute()
const { t, locale } = useI18n()
const from = ref('')
const title = ref('')
@ -28,13 +39,13 @@ const updateImages = () => {
from.value = route.query.from || 'BDLead'
if (from.value === 'BD') {
title.value = 'BD Policy'
title.value = t('bd_policy')
bdImgUrl.value = new URL(
'/src/assets/images/BDCenter/Policy/BDPolicy.png',
import.meta.url
).href
} else if (from.value === 'BDLead') {
title.value = 'BD Leader Policy'
title.value = t('bd_leader_policy')
bdImgUrl.value = new URL(
'/src/assets/images/BDCenter/Policy/BDPolicy.png',
import.meta.url