You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
164 lines
3.6 KiB
164 lines
3.6 KiB
<template>
|
|
<div id="app">
|
|
<dv-full-screen-container class="btgym" :style="{ backgroundImage:'url('+bgimg+')' }">
|
|
|
|
<!-- 顶部信息 -->
|
|
<div class="topnav">
|
|
<div class="toptxt">
|
|
<div style="margin-left: 2%" class="topTitle">
|
|
累计进馆人数:3,435,123万人
|
|
</div>
|
|
<img class="topImg" src="@/assets/index/top_title.png" />
|
|
<div style="margin-right: 2%" class="topTitle">
|
|
星期四 16:33:33
|
|
</div>
|
|
</div>
|
|
<div class="links">
|
|
<router-link to="/ty">体育</router-link>
|
|
<router-link to="/">总览</router-link>
|
|
<router-link to="/cultrue">文化</router-link>
|
|
</div>
|
|
</div>
|
|
|
|
<router-view />
|
|
<!-- 底部信息 -->
|
|
<div class="footer"></div>
|
|
</dv-full-screen-container>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ty from '@/views/ty/index'
|
|
export default ({
|
|
components:{
|
|
ty
|
|
},
|
|
data(){
|
|
return{
|
|
//bgimg: require("@/assets/index/bg.jpg")
|
|
bgimg:"",
|
|
}
|
|
},
|
|
created(){
|
|
|
|
// console.log(this.$route)
|
|
// this.bgimg = this.$route.params.img
|
|
},
|
|
mounted(){
|
|
// console.log("app vue")
|
|
// console.log(this.$route.meta)
|
|
// this.bgimg = this.$route.meta.img
|
|
}
|
|
})
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: #070a24;
|
|
}
|
|
// 基类
|
|
.btgym {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
// position: relative;
|
|
// background-image: url("assets/g_bg.jpg");
|
|
// background-image: var(--bg);
|
|
// background-size: 100%;
|
|
// background-repeat: no-repeat;
|
|
|
|
.topnav {
|
|
width: 100%;
|
|
height: 20%;
|
|
background-image: url("assets/index/topnav.png");
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
position: relative;
|
|
|
|
// 顶部文字
|
|
.toptxt {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.topImg {
|
|
margin-top: 1%;
|
|
width: 35%;
|
|
height: 15%;
|
|
}
|
|
.topTitle {
|
|
margin-top: 1%;
|
|
color: #00c6ff;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
// 操作链接
|
|
.links {
|
|
width: 24%;
|
|
height: 36%;
|
|
// border: 1px solid red;
|
|
margin: 0 auto;
|
|
margin-top: 2.4%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-weight: bold;
|
|
font-size: 0.26rem;
|
|
text-align: center;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
display: block;
|
|
width: 33.33%;
|
|
height: 86%;
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
color: #00bdf9;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
margin-top: 12px;
|
|
}
|
|
// 总览
|
|
a:nth-child(2){
|
|
margin-top: 22px;
|
|
background-image:url('assets/index/zl.png');
|
|
}
|
|
a:nth-child(1){
|
|
background-image: url('assets/index/ty.png');
|
|
}
|
|
a:nth-child(3){
|
|
background-image: url('assets/index/wh.png');
|
|
}
|
|
|
|
a.router-link-exact-active{
|
|
color: #fff;
|
|
}
|
|
a.router-link-exact-active:nth-child(1){
|
|
background-image: url('assets/index/ty_active.png');
|
|
}
|
|
a.router-link-exact-active:nth-child(2){
|
|
background-image: url('assets/index/zl_active.png');
|
|
}
|
|
a.router-link-exact-active:nth-child(3){
|
|
background-image: url('assets/index/wh_active.png');
|
|
}
|
|
}
|
|
}
|
|
//底部信息
|
|
.footer {
|
|
// width: 100%;
|
|
height: 120vh;
|
|
background-image: url("assets/g_footbg.png");
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 100%;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
|