|
@@ -7,33 +7,39 @@
|
|
|
<!-- 加载初始页面 -->
|
|
|
<div id="gui-thumb"></div>
|
|
|
|
|
|
- <!-- 左侧固定导航栏 -->
|
|
|
- <div class="lay_left">
|
|
|
- <div class="logo">
|
|
|
+ <!-- 上侧固定导航栏 -->
|
|
|
+ <div class="lay_top">
|
|
|
+ <div class="login">
|
|
|
<img src="@/assets/img/logo.png" alt="" />
|
|
|
+ <p>北京武警执勤第七支队数字史馆</p>
|
|
|
</div>
|
|
|
- <div class="lay_con">
|
|
|
- <div
|
|
|
- class="tab"
|
|
|
- @click="jump(item.img)"
|
|
|
- v-for="item in tabArr"
|
|
|
- :key="item.id"
|
|
|
- >
|
|
|
- <img
|
|
|
- :src="require('@/assets/img/' + item.img + 'ac.png')"
|
|
|
- alt=""
|
|
|
- v-if="1 === item.id"
|
|
|
- />
|
|
|
- <img
|
|
|
- :src="require('@/assets/img/' + item.img + '.png')"
|
|
|
- alt=""
|
|
|
- v-else
|
|
|
- />
|
|
|
+ <!-- 右边的盒子 -->
|
|
|
+ <div class="conten">
|
|
|
+ <!-- 当前时间 -->
|
|
|
+ <div class="bot_time">
|
|
|
+ {{ moment().format("LL") }} {{ moment().format("dddd") }}
|
|
|
+ </div>
|
|
|
+ <!-- tab栏 -->
|
|
|
+ <div class="tab">
|
|
|
+ <div
|
|
|
+ class="tab_row"
|
|
|
+ v-for="item in tabArr"
|
|
|
+ :key="item.id"
|
|
|
+ @click="jump(item.url)"
|
|
|
+ >
|
|
|
+ <div :class="{active:item.id===1}">{{ item.name }}</div>
|
|
|
+ <img
|
|
|
+ v-show="1 === item.id"
|
|
|
+ src="@/assets/img/active.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="bot_time">
|
|
|
- {{ moment().format("LL") }} {{ moment().format("dddd") }}
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <!-- 下侧内容 -->
|
|
|
+ <div class="right_con">
|
|
|
+ <Router-view />
|
|
|
</div>
|
|
|
|
|
|
<!-- 主容器 -->
|
|
@@ -139,10 +145,13 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
tabArr: [
|
|
|
- { id: 1, img: "tab1" },
|
|
|
- { id: 2, img: "tab2" },
|
|
|
- { id: 3, img: "tab3" },
|
|
|
- { id: 4, img: "tab4" },
|
|
|
+ { url: "tab1", id: 1, name: "数字史馆" },
|
|
|
+ { url: "tab2", id: 2, name: "数字荣誉室" },
|
|
|
+ { url: "tab3", id: 3, name: "文物史料信息库" },
|
|
|
+ { url: "tab4", id: 4, name: "教育基地" },
|
|
|
+ { url: "tab5", id: 5, name: "荣誉榜" },
|
|
|
+ { url: "tab6", id: 6, name: "官兵互动" },
|
|
|
+ { url: "tab7", id: 7, name: "留言管理" },
|
|
|
],
|
|
|
|
|
|
showWelcome: true,
|
|
@@ -191,7 +200,7 @@ export default {
|
|
|
window.evt.initEvent("loadfinish", false, false);
|
|
|
window.addEventListener("loadfinish", () => {
|
|
|
this.loading = false;
|
|
|
- document.title = "中国人民解放军陆军勤务学院";
|
|
|
+ document.title = "北京武警执勤第七支队数字史馆";
|
|
|
this.getHotSpotList();
|
|
|
window.player.on("openTips", () => {
|
|
|
this.$showTips();
|
|
@@ -221,45 +230,71 @@ export default {
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
width: 100%;
|
|
|
- width: calc(100vw - 164px);
|
|
|
height: 100%;
|
|
|
- .lay_left {
|
|
|
- position: fixed;
|
|
|
- left: 0;
|
|
|
- bottom: 0;
|
|
|
- min-height: 875px;
|
|
|
- min-width: 164px;
|
|
|
- width: 164px;
|
|
|
- height: 100vh;
|
|
|
- background-color: #b9412e;
|
|
|
- .logo {
|
|
|
- padding-top: 20px;
|
|
|
- width: 120px;
|
|
|
- margin: 0 auto;
|
|
|
+ .lay_top {
|
|
|
+ display: flex;
|
|
|
+ z-index: 99999;
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ height: 90px;
|
|
|
+ background-color: #b0111e;
|
|
|
+ .login {
|
|
|
+ margin-right: 100px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ margin-left: 100px;
|
|
|
+ width: 220px;
|
|
|
+ height: 120px;
|
|
|
+ background: url("../assets/img/logoDI.png");
|
|
|
+ background-size: 100% 100%;
|
|
|
& > img {
|
|
|
- width: 100%;
|
|
|
+ width: 62px;
|
|
|
+ height: 62px;
|
|
|
+ }
|
|
|
+ & > p {
|
|
|
+ margin-top: 8px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #be1220;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
- .lay_con {
|
|
|
- padding: 20px 0;
|
|
|
- min-height: 510px;
|
|
|
- height: calc(100vh - 185px);
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: space-around;
|
|
|
+ .conten {
|
|
|
+ color: #f2cd83;
|
|
|
+ flex: 1;
|
|
|
+ .bot_time {
|
|
|
+ text-align: right;
|
|
|
+ padding-right: 120px;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ border-bottom: 1px solid #f2cd83;
|
|
|
+ }
|
|
|
.tab {
|
|
|
- cursor: pointer;
|
|
|
- margin: 0 auto;
|
|
|
- width: 91px;
|
|
|
- & > img {
|
|
|
- width: 100%;
|
|
|
+ padding-top: 13px;
|
|
|
+ height: 60px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ .tab_row {
|
|
|
+ cursor: pointer;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 18px;
|
|
|
+ height: 60px;
|
|
|
+ &>div{
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ .active{
|
|
|
+ color: #f2cd83;
|
|
|
+ }
|
|
|
+ & > img {
|
|
|
+ width: 70px;
|
|
|
+ height: 20px;
|
|
|
+ }
|
|
|
+ &:hover div{
|
|
|
+ color: #f2cd83;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .bot_time {
|
|
|
- text-align: center;
|
|
|
- font-size: 14px;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|