dl_site_nuxt/pages/separate.vue
2025-07-24 00:44:07 +08:00

57 lines
1005 B
Vue

<template>
<!-- 单页面模块 -->
<div class="content">
<BannerTop :options="bannerTopOptions"/>
</div>
</template>
<script>
export default {
name: 'separate',
data() {
return {
}
},
async asyncData({$axios,query}) {
const { data: pageInfo } = await $axios.get(`/web/categoryInfo?id=${query.catgId}`)
let bannerTopOptions = {
title: pageInfo.title,
subTitle: pageInfo.description,
img: require('../assets/image/banner/aboutus-banner.png')
}
return {
pageInfo,
bannerTopOptions
}
},
head() {
return {
title: this.pageInfo.title,
meta: [
{
hid: 'keywords',
name: 'keywords',
content: this.pageInfo.keyword
},
{
hid: 'description',
name: 'description',
content: this.pageInfo.description
}
]
}
},
}
</script>
<style lang="scss" scoped>
.content {
width: 100%;
height: 100%;
}
</style>