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