heritage-hub/src/views/commonpage.vue

125 lines
3.4 KiB
Vue
Raw Normal View History

2024-01-31 09:04:35 +00:00
<template>
2024-01-31 10:48:53 +00:00
<div style="min-height:100vh"
class="100vw">
<div style="height:80px;background:#000;"
class="color-white row items-center">
2024-01-31 11:07:21 +00:00
<div class="col-4 row items-center justify-center"><img src="../assets/images/icon-title.png"
2024-01-31 10:57:01 +00:00
style="width:40px;height:40px" /><span class="fl-ml-sm">延庆博物馆</span></div>
2024-01-31 10:48:53 +00:00
2024-01-31 10:57:01 +00:00
<div class="col-6 row justify-around items-center">
2024-01-31 10:48:53 +00:00
2024-02-01 01:29:53 +00:00
<div class="cursor header-title"
2024-02-01 02:40:05 +00:00
@click="handleLink('/home/navigation')">首页</div>
2024-02-01 01:29:53 +00:00
<div class="cursor header-title"
2024-02-01 02:40:05 +00:00
@click="handleLink('')">导航</div>
2024-02-01 01:29:53 +00:00
<div class="cursor header-title"
2024-02-01 02:40:05 +00:00
@click="handleLink('')">展览</div>
2024-02-01 01:29:53 +00:00
<div class="cursor header-title"
2024-02-01 02:40:05 +00:00
@click="handleLink('')">典藏</div>
2024-02-01 01:29:53 +00:00
<div class="cursor header-title"
2024-02-01 02:40:05 +00:00
@click="handleLink('')">资讯</div>
2024-02-01 01:29:53 +00:00
<div class="cursor header-title"
2024-02-01 02:40:05 +00:00
@click="handleLink('')">文创</div>
2024-02-01 01:29:53 +00:00
<div class="cursor header-title"
2024-02-01 02:40:05 +00:00
@click="handleLink('')">数字文脉</div>
<div class="cursor header-title hover-dom relative">关于
<div class="hidden-dom row justify-center"
style="position:absolute;top:20px;left:-38px;z-index:9999">
<div class="row justify-center secmenu fl-mt-lg"
style="padding: 4px 8px ">
<div class="cursor"
style="padding: 8px;border-bottom:1px solid #fff "
@click="handleLink('/about/statutes')">制度公开</div>
<div class="cursor"
style="padding: 8px;border-bottom:1px solid #fff "
@click="handleLink('/common/interpretive')">讲解服务</div>
<div class="cursor"
style="padding: 8px "
@click="handleLink('/common/audiencesurveys')">观众调查</div>
</div>
</div>
</div>
2024-01-31 10:48:53 +00:00
</div>
2024-01-31 09:04:35 +00:00
</div>
2024-02-01 01:29:53 +00:00
<div class="fl-page-width">
2024-01-31 09:04:35 +00:00
<router-view></router-view>
</div>
2024-01-31 10:48:53 +00:00
2024-02-01 02:40:05 +00:00
<div style="height:145px;background:#000;"
2024-01-31 12:11:02 +00:00
class="row justify-center color-white">
2024-02-01 02:40:05 +00:00
<div class="col-4 row justify-around "
style="margin-top:32px;max-width:300px">
<div class="cursor"
@click="handleLink('')">帮助</div>
<div class="
cursor"
@click="handleLink('')">隐私</div>
<div class="
cursor"
@click="handleLink('')">条款</div>
<div class="
col-12
cursor
text-center">copyright 2024 最终所有权归延庆博物馆</div>
2024-01-31 10:48:53 +00:00
</div>
2024-01-31 09:04:35 +00:00
</div>
</div>
</template>
2024-01-31 10:48:53 +00:00
<script setup>
2024-02-01 01:29:53 +00:00
import {
ref,
reactive,
onBeforeMount,
getCurrentInstance,
watch,
nextTick,
} from "vue";
import { useRoute, useRouter } from 'vue-router';
const route = useRoute();
const router = useRouter();
const state = reactive({
activePage: '',
});
onBeforeMount(() => {
const currentPath = route.path;
state.activePage = currentPath;
})
2024-02-01 02:40:05 +00:00
const handleLink = (url) => {
2024-02-01 01:29:53 +00:00
if (url) {
router.push(url)
state.activePage = url;
} else {
2024-02-01 02:24:29 +00:00
router.push('/common/staytuned')
2024-02-01 01:29:53 +00:00
}
}
2024-01-31 10:48:53 +00:00
</script>
2024-01-31 09:04:35 +00:00
<style scoped>
2024-01-31 10:48:53 +00:00
.header-title {
2024-01-31 12:11:02 +00:00
padding: 4px 18px;
2024-01-31 10:48:53 +00:00
border-radius: 25px;
}
.header-title:hover {
background: #3d8873;
}
2024-02-01 02:40:05 +00:00
.hover-dom:hover .hidden-dom {
display: block;
}
.hidden-dom {
display: none;
}
.secmenu {
width: 120px;
background: #343434;
border-radius: 10px;
}
2024-01-31 09:04:35 +00:00
</style>