chore(BD、BDLeader政策页): 补充翻译,替换头部组件
This commit is contained in:
parent
61e6290d54
commit
8655fb317a
@ -413,5 +413,8 @@
|
|||||||
"vehicles": "المركبات",
|
"vehicles": "المركبات",
|
||||||
"chat_box": "صندوق الدردشة",
|
"chat_box": "صندوق الدردشة",
|
||||||
"theme": "الموضوع",
|
"theme": "الموضوع",
|
||||||
"vip": "VIP"
|
"vip": "VIP",
|
||||||
|
|
||||||
|
"bd_policy": "سياسة BD",
|
||||||
|
"bd_leader_policy": "سياسة قائد BD"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -413,5 +413,8 @@
|
|||||||
"vehicles": "Vehicles",
|
"vehicles": "Vehicles",
|
||||||
"chat_box": "Chat Box",
|
"chat_box": "Chat Box",
|
||||||
"theme": "Theme",
|
"theme": "Theme",
|
||||||
"vip": "VIP"
|
"vip": "VIP",
|
||||||
|
|
||||||
|
"bd_policy": "BD Policy",
|
||||||
|
"bd_leader_policy": "BD Leader Policy"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -413,5 +413,8 @@
|
|||||||
"vehicles": "坐骑",
|
"vehicles": "坐骑",
|
||||||
"chat_box": "聊天框",
|
"chat_box": "聊天框",
|
||||||
"theme": "主题",
|
"theme": "主题",
|
||||||
"vip": "VIP"
|
"vip": "VIP",
|
||||||
|
|
||||||
|
"bd_policy": "BD政策",
|
||||||
|
"bd_leader_policy": "BD主管政策"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,12 @@
|
|||||||
<template>
|
<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
|
<img
|
||||||
v-if="from === 'BDLead'"
|
v-if="from === 'BDLead'"
|
||||||
:src="bdLeaderImgUrl"
|
:src="bdLeaderImgUrl"
|
||||||
@ -13,11 +18,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, onMounted, ref } from 'vue'
|
import { onMounted, ref } from 'vue'
|
||||||
import MobileHeader from '@/components/MobileHeader.vue'
|
|
||||||
import { useRoute } from 'vue-router'
|
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 route = useRoute()
|
||||||
|
const { t, locale } = useI18n()
|
||||||
|
|
||||||
const from = ref('')
|
const from = ref('')
|
||||||
|
|
||||||
const title = ref('')
|
const title = ref('')
|
||||||
@ -28,13 +39,13 @@ const updateImages = () => {
|
|||||||
from.value = route.query.from || 'BDLead'
|
from.value = route.query.from || 'BDLead'
|
||||||
|
|
||||||
if (from.value === 'BD') {
|
if (from.value === 'BD') {
|
||||||
title.value = 'BD Policy'
|
title.value = t('bd_policy')
|
||||||
bdImgUrl.value = new URL(
|
bdImgUrl.value = new URL(
|
||||||
'/src/assets/images/BDCenter/Policy/BDPolicy.png',
|
'/src/assets/images/BDCenter/Policy/BDPolicy.png',
|
||||||
import.meta.url
|
import.meta.url
|
||||||
).href
|
).href
|
||||||
} else if (from.value === 'BDLead') {
|
} else if (from.value === 'BDLead') {
|
||||||
title.value = 'BD Leader Policy'
|
title.value = t('bd_leader_policy')
|
||||||
bdImgUrl.value = new URL(
|
bdImgUrl.value = new URL(
|
||||||
'/src/assets/images/BDCenter/Policy/BDPolicy.png',
|
'/src/assets/images/BDCenter/Policy/BDPolicy.png',
|
||||||
import.meta.url
|
import.meta.url
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user