feat(BD政策页): 引用页面头部组件
This commit is contained in:
parent
7c77764a6f
commit
4c0f3153de
@ -1,20 +1,26 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="policy-container">
|
<div class="policy-container">
|
||||||
|
<!-- 顶部导航 -->
|
||||||
|
<MobileHeader :title="title" />
|
||||||
<img :src="imgUrl" alt="Policy Image" class="policy-image" />
|
<img :src="imgUrl" alt="Policy Image" class="policy-image" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
import MobileHeader from '@/components/MobileHeader.vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const from = route.query.from || 'BDLead'
|
const from = route.query.from || 'BDLead'
|
||||||
|
const title = ref('')
|
||||||
|
|
||||||
const imgUrl = computed(() => {
|
const imgUrl = computed(() => {
|
||||||
if (from === 'BD') {
|
if (from === 'BD') {
|
||||||
|
title.value = 'BD Policy'
|
||||||
return new URL('/src/assets/images/BDPolicy/BDPolicy.png', import.meta.url).href
|
return new URL('/src/assets/images/BDPolicy/BDPolicy.png', import.meta.url).href
|
||||||
} else if (from === 'BDLead') {
|
} else if (from === 'BDLead') {
|
||||||
|
title.value = 'BD Leader Policy'
|
||||||
return new URL('/src/assets/images/BDPolicy/BDLeaderPolicy.png', import.meta.url).href
|
return new URL('/src/assets/images/BDPolicy/BDLeaderPolicy.png', import.meta.url).href
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user