|
|
@ -1,7 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div id="app"> |
|
|
<div id="app"> |
|
|
<dv-full-screen-container class="btgym" :style="{ backgroundImage:'url('+bgimg+')' }"> |
|
|
<dv-full-screen-container class="btgym"> |
|
|
|
|
|
|
|
|
<!-- 顶部信息 --> |
|
|
<!-- 顶部信息 --> |
|
|
<div class="topnav"> |
|
|
<div class="topnav"> |
|
|
<div class="toptxt"> |
|
|
<div class="toptxt"> |
|
|
@ -9,9 +8,7 @@ |
|
|
累计进馆人数:3,435,123万人 |
|
|
累计进馆人数:3,435,123万人 |
|
|
</div> |
|
|
</div> |
|
|
<img class="topImg" src="@/assets/index/top_title.png" /> |
|
|
<img class="topImg" src="@/assets/index/top_title.png" /> |
|
|
<div style="margin-right: 2%" class="topTitle"> |
|
|
<div style="margin-right: 2%" class="topTitle">星期四 16:33:33</div> |
|
|
星期四 16:33:33 |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="links"> |
|
|
<div class="links"> |
|
|
<router-link to="/ty">体育</router-link> |
|
|
<router-link to="/ty">体育</router-link> |
|
|
@ -28,28 +25,24 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import ty from '@/views/ty/index' |
|
|
//https://www.jianshu.com/p/574b85349d40 |
|
|
export default ({ |
|
|
export default { |
|
|
components:{ |
|
|
|
|
|
ty |
|
|
|
|
|
}, |
|
|
|
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
//bgimg: require("@/assets/index/bg.jpg") |
|
|
// |
|
|
bgimg:"", |
|
|
|
|
|
} |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
|
|
|
|
|
|
// console.log(this.$route) |
|
|
// console.log(this.$route) |
|
|
// this.bgimg = this.$route.params.img |
|
|
|
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
// console.log("app vue") |
|
|
// |
|
|
// console.log(this.$route.meta) |
|
|
}, |
|
|
// this.bgimg = this.$route.meta.img |
|
|
methods: { |
|
|
} |
|
|
// |
|
|
}) |
|
|
}, |
|
|
|
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -63,11 +56,10 @@ body { |
|
|
.btgym { |
|
|
.btgym { |
|
|
width: 100vw; |
|
|
width: 100vw; |
|
|
height: 100vh; |
|
|
height: 100vh; |
|
|
// position: relative; |
|
|
position: relative; |
|
|
// background-image: url("assets/g_bg.jpg"); |
|
|
// background-image: url("assets/index/bg.jpg"); |
|
|
// background-image: var(--bg); |
|
|
background-size: 100%; |
|
|
// background-size: 100%; |
|
|
background-repeat: no-repeat; |
|
|
// background-repeat: no-repeat; |
|
|
|
|
|
|
|
|
|
|
|
.topnav { |
|
|
.topnav { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
@ -125,26 +117,26 @@ body { |
|
|
// 总览 |
|
|
// 总览 |
|
|
a:nth-child(2) { |
|
|
a:nth-child(2) { |
|
|
margin-top: 22px; |
|
|
margin-top: 22px; |
|
|
background-image:url('assets/index/zl.png'); |
|
|
background-image: url("assets/index/zl.png"); |
|
|
} |
|
|
} |
|
|
a:nth-child(1) { |
|
|
a:nth-child(1) { |
|
|
background-image: url('assets/index/ty.png'); |
|
|
background-image: url("assets/index/ty.png"); |
|
|
} |
|
|
} |
|
|
a:nth-child(3) { |
|
|
a:nth-child(3) { |
|
|
background-image: url('assets/index/wh.png'); |
|
|
background-image: url("assets/index/wh.png"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
a.router-link-exact-active { |
|
|
a.router-link-exact-active { |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
} |
|
|
} |
|
|
a.router-link-exact-active:nth-child(1) { |
|
|
a.router-link-exact-active:nth-child(1) { |
|
|
background-image: url('assets/index/ty_active.png'); |
|
|
background-image: url("assets/index/ty_active.png"); |
|
|
} |
|
|
} |
|
|
a.router-link-exact-active:nth-child(2) { |
|
|
a.router-link-exact-active:nth-child(2) { |
|
|
background-image: url('assets/index/zl_active.png'); |
|
|
background-image: url("assets/index/zl_active.png"); |
|
|
} |
|
|
} |
|
|
a.router-link-exact-active:nth-child(3) { |
|
|
a.router-link-exact-active:nth-child(3) { |
|
|
background-image: url('assets/index/wh_active.png'); |
|
|
background-image: url("assets/index/wh_active.png"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -160,5 +152,4 @@ body { |
|
|
left: 0; |
|
|
left: 0; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |
|
|
|