提交 0c3020d8 authored 作者: 龙菲's avatar 龙菲

陈列展示右侧增加下拉图标,强调有二级菜单

上级 94b6f454
<template> <template>
<div <div :class="{
:class="{ nav: true,
nav: true, 'header-fixed ': isFixed,
'header-fixed ': isFixed, 'home-nav': isHome || isBoutique,
'home-nav': isHome || isBoutique, 'show-themeColor': isFixed && isHome,
'show-themeColor':isFixed&&isHome, isChStyle: navbarStyle == '2',
isChStyle: navbarStyle == '2' , isRedStyle: navbarStyle == '3',
isRedStyle: navbarStyle == '3', isSDCS: navbarStyle == '4' && isFixed,
isSDCS: navbarStyle == '4'&& isFixed, isSMGZ: navbarStyle == '5' && isFixed,
isSMGZ: navbarStyle == '5'&& isFixed, isJYYCC: navbarStyle == '6' && isFixed,
isJYYCC: navbarStyle == '6'&& isFixed, isYLGDYW: navbarStyle == '7' && isFixed,
isYLGDYW: navbarStyle == '7'&& isFixed, }" id="navbar">
}"
id="navbar"
>
<div class="container"> <div class="container">
<div class="logo-container animate__animated animate__fadeInLeft"> <div class="logo-container animate__animated animate__fadeInLeft">
<img src="@/assets/imgs/home/logo3.png" /> <img src="@/assets/imgs/home/logo3.png" />
...@@ -21,19 +18,13 @@ ...@@ -21,19 +18,13 @@
</div> </div>
<div class="right"> <div class="right">
<div class="tabs animate__animated animate__fadeInUp"> <div class="tabs animate__animated animate__fadeInUp">
<div <div class="tab-item" :class="{
class="tab-item" activeHome: currentTab.name == item.name && isHome,
:class="{ active: currentTab.name == item.name,
activeHome: currentTab.name == item.name && isHome, }" v-for="(item, index) in pages" :key="index" @click="handleClickTab(item)"
active: currentTab.name == item.name, @mouseenter="handleEnterTabItem(item)" @mouseleave="handleLeaveTabItem(item)">
}"
v-for="(item, index) in pages"
:key="index"
@click="handleClickTab(item)"
@mouseenter="handleEnterTabItem(item)"
@mouseleave="handleLeaveTabItem(item)"
>
<span @click="handleToPage(item.path)">{{ item.name }} </span> <span @click="handleToPage(item.path)">{{ item.name }} </span>
<i v-if="item.name == '陈列展览'" class="el-icon-arrow-down" style="transform: translate(30%,30%);cursor: pointer;"></i>
</div> </div>
</div> </div>
...@@ -45,19 +36,10 @@ ...@@ -45,19 +36,10 @@
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item <el-dropdown-item v-if="!hasToken" @click.native="handleToLogin" class="operation-item">登陆
v-if="!hasToken"
@click.native="handleToLogin"
class="operation-item"
>登陆
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item <el-dropdown-item v-if="hasToken" class="operation-item" @click.native="handleToPersonal">
v-if="hasToken" 个人中心</el-dropdown-item>
class="operation-item"
@click.native="handleToPersonal"
>
个人中心</el-dropdown-item
>
<el-dropdown-item v-if="hasToken" @click.native="handleLogOut"> <el-dropdown-item v-if="hasToken" @click.native="handleLogOut">
<span>退出</span> <span>退出</span>
</el-dropdown-item> </el-dropdown-item>
...@@ -68,12 +50,7 @@ ...@@ -68,12 +50,7 @@
</div> </div>
</div> </div>
<transition name="el-zoom-in-top"> <transition name="el-zoom-in-top">
<div <div class="submenu" v-show="showSubMenu" @mouseenter="handleEnterSubmenu" @mouseleave="handleMouseLeaveSubMenu">
class="submenu"
v-show="showSubMenu"
@mouseenter="handleEnterSubmenu"
@mouseleave="handleMouseLeaveSubMenu"
>
<ul> <ul>
<li> <li>
<span @click="handleToPage('/display', true)">基本陈列</span> <span @click="handleToPage('/display', true)">基本陈列</span>
...@@ -87,92 +64,45 @@ ...@@ -87,92 +64,45 @@
</ul> </ul>
</div> </div>
</transition> </transition>
<el-dialog <el-dialog :visible.sync="loginVisible" append-to-body v-loading="loading"
:visible.sync="loginVisible" element-loading-background="rgba(0, 0, 0, 0.5)" :element-loading-text="loadingText"
append-to-body :before-close="handleCloseLogin">
v-loading="loading"
element-loading-background="rgba(0, 0, 0, 0.5)"
:element-loading-text="loadingText"
:before-close="handleCloseLogin"
>
<div slot="title" class="login-title"> <div slot="title" class="login-title">
<div <div :class="['title-item', isLoginByUsername ? 'active' : '']" @click="handleChangeLoginWay('username')">
:class="['title-item', isLoginByUsername ? 'active' : '']"
@click="handleChangeLoginWay('username')"
>
账号登录 账号登录
</div> </div>
<div <div :class="['title-item', isLoginByUsername ? '' : 'active']" @click="handleChangeLoginWay('phone')">
:class="['title-item', isLoginByUsername ? '' : 'active']"
@click="handleChangeLoginWay('phone')"
>
手机号登录 手机号登录
</div> </div>
<div class="line"></div> <div class="line"></div>
</div> </div>
<div class="login"> <div class="login">
<el-form <el-form :model="loginForm" :label-position="labelPosition" ref="loginForm" :rules="loginRules">
:model="loginForm"
:label-position="labelPosition"
ref="loginForm"
:rules="loginRules"
>
<el-form-item :label-width="formLabelWidth" prop="account"> <el-form-item :label-width="formLabelWidth" prop="account">
<el-input <el-input v-model="loginForm.account" autocomplete="off" clearable
v-model="loginForm.account" :placeholder="isLoginByUsername ? '账号' : '手机号'"></el-input>
autocomplete="off"
clearable
:placeholder="isLoginByUsername ? '账号' : '手机号'"
></el-input>
</el-form-item> </el-form-item>
<el-form-item :label-width="formLabelWidth" prop="password"> <el-form-item :label-width="formLabelWidth" prop="password">
<el-input <el-input v-model="loginForm.password" autocomplete="off" type="password" clearable show-password
v-model="loginForm.password" placeholder="密码"></el-input>
autocomplete="off"
type="password"
clearable
show-password
placeholder="密码"
></el-input>
</el-form-item> </el-form-item>
<el-form-item :label-width="formLabelWidth"> <el-form-item :label-width="formLabelWidth">
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="captcha"> <el-form-item prop="captcha">
<el-input <el-input ref="captcha" v-model="loginForm.captcha" placeholder="请输入验证码" name="captcha" tabindex="3"
ref="captcha" auto-complete="on" @keyup.enter.native="handleLoginSubmit" />
v-model="loginForm.captcha"
placeholder="请输入验证码"
name="captcha"
tabindex="3"
auto-complete="on"
@keyup.enter.native="handleLoginSubmit"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="captcha"> <el-col :span="12" class="captcha">
<img <img v-if="requestCodeSuccess" :src="captchaImgSrc" @click="handleGetCaptcha" />
v-if="requestCodeSuccess" <img v-else src="@/assets/404_images/checkcode.png" @click="handleGetCaptcha" />
:src="captchaImgSrc"
@click="handleGetCaptcha"
/>
<img
v-else
src="@/assets/404_images/checkcode.png"
@click="handleGetCaptcha"
/>
</el-col> </el-col>
</el-row> </el-row>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="opration"> <div class="opration">
<el-button <el-button round @click="handleLoginSubmit" size="small" class="loginBtn">登 陆</el-button>
round
@click="handleLoginSubmit"
size="small"
class="loginBtn"
>登 陆</el-button
>
<div class="register" @click="handleToRegister">注册</div> <div class="register" @click="handleToRegister">注册</div>
</div> </div>
</div> </div>
...@@ -202,7 +132,7 @@ export default { ...@@ -202,7 +132,7 @@ export default {
curPath: { curPath: {
handler: function (value) { handler: function (value) {
this.isHome = value.name == "home"; this.isHome = value.name == "home";
this.isBoutique = value.name=='boutique' this.isBoutique = value.name == 'boutique'
this.currentTab = { this.currentTab = {
name: value.name, name: value.name,
path: value.path, path: value.path,
...@@ -324,7 +254,7 @@ export default { ...@@ -324,7 +254,7 @@ export default {
path: "/", path: "/",
}, },
isHome: true, isHome: true,
isBoutique:false,//是否是精品展页 isBoutique: false,//是否是精品展页
isFixed: false, isFixed: false,
offsetTop: 0, offsetTop: 0,
loginVisible: false, loginVisible: false,
...@@ -530,6 +460,7 @@ export default { ...@@ -530,6 +460,7 @@ export default {
z-index: 9; z-index: 9;
background-color: rgba(#000, 0.25) !important; background-color: rgba(#000, 0.25) !important;
} }
.header-fixed { .header-fixed {
position: fixed !important; position: fixed !important;
background-color: $themeColor !important; background-color: $themeColor !important;
...@@ -537,15 +468,18 @@ export default { ...@@ -537,15 +468,18 @@ export default {
top: 0; top: 0;
} }
.show-themeColor{ .show-themeColor {
background-color: #2069c4 !important; background-color: #2069c4 !important;
} }
.isChStyle { .isChStyle {
background-color: #892325 !important; background-color: #892325 !important;
} }
.isRedStyle { .isRedStyle {
background-color: #a30e0c !important; background-color: #a30e0c !important;
} }
.isSDCS { .isSDCS {
background-color: #6c0c0d !important; background-color: #6c0c0d !important;
} }
...@@ -561,6 +495,7 @@ export default { ...@@ -561,6 +495,7 @@ export default {
.isYLGDYW { .isYLGDYW {
background-color: #212040 !important; background-color: #212040 !important;
} }
.nav { .nav {
height: 100px; height: 100px;
width: 100%; width: 100%;
...@@ -569,6 +504,7 @@ export default { ...@@ -569,6 +504,7 @@ export default {
// background-color: #fff; // background-color: #fff;
// background-image: url('@/assets/imgs/home/panel-bg.png'); // background-image: url('@/assets/imgs/home/panel-bg.png');
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 5px 0px; box-shadow: rgba(0, 0, 0, 0.3) 0 1px 5px 0px;
.container { .container {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -576,12 +512,14 @@ export default { ...@@ -576,12 +512,14 @@ export default {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 70px 0 100px; padding: 0 70px 0 100px;
// overflow: hidden; // overflow: hidden;
.logo-container { .logo-container {
// width: 380px; // width: 380px;
// height: 74px; // height: 74px;
display: flex; display: flex;
align-items: center; align-items: center;
img { img {
// width: 100%; // width: 100%;
// height: 100%; // height: 100%;
...@@ -591,6 +529,7 @@ export default { ...@@ -591,6 +529,7 @@ export default {
// box-shadow: 2px 2px 3px 2px rgb(0 0 0 / 30%); // box-shadow: 2px 2px 3px 2px rgb(0 0 0 / 30%);
margin-right: 8px; margin-right: 8px;
} }
.name { .name {
font-size: 30px; font-size: 30px;
font-weight: bold; font-weight: bold;
...@@ -599,6 +538,7 @@ export default { ...@@ -599,6 +538,7 @@ export default {
margin-left: 8px; margin-left: 8px;
} }
} }
.right { .right {
display: flex; display: flex;
height: 100%; height: 100%;
...@@ -609,6 +549,7 @@ export default { ...@@ -609,6 +549,7 @@ export default {
margin-right: 80px; margin-right: 80px;
min-width: 512px; min-width: 512px;
height: 100%; height: 100%;
.tab-item { .tab-item {
margin-right: 70px; margin-right: 70px;
color: #fff; color: #fff;
...@@ -618,6 +559,7 @@ export default { ...@@ -618,6 +559,7 @@ export default {
position: relative; position: relative;
height: 100%; height: 100%;
text-align: center; text-align: center;
&::after { &::after {
position: absolute; position: absolute;
content: ""; content: "";
...@@ -638,7 +580,7 @@ export default { ...@@ -638,7 +580,7 @@ export default {
opacity: 1; opacity: 1;
} }
& > span { &>span {
transform: translateY(4px); transform: translateY(4px);
font-size: 20px; font-size: 20px;
display: inline-block; display: inline-block;
...@@ -648,6 +590,7 @@ export default { ...@@ -648,6 +590,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
// a { // a {
// font-size: 18px; // font-size: 18px;
// white-space: nowrap; // white-space: nowrap;
...@@ -672,7 +615,7 @@ export default { ...@@ -672,7 +615,7 @@ export default {
} }
} }
.active::after{ .active::after {
opacity: 1; opacity: 1;
} }
} }
...@@ -681,7 +624,7 @@ export default { ...@@ -681,7 +624,7 @@ export default {
.submenu { .submenu {
// background: #f8f8f8; // background: #f8f8f8;
background-color: rgba(0,0,0,0.4); background-color: rgba(0, 0, 0, 0.4);
color: #fff; color: #fff;
height: 50px; height: 50px;
display: flex; display: flex;
...@@ -689,19 +632,23 @@ export default { ...@@ -689,19 +632,23 @@ export default {
position: absolute; position: absolute;
width: 100%; width: 100%;
z-index: 99; z-index: 99;
// border-bottom: 1px solid #f2f2f2; // border-bottom: 1px solid #f2f2f2;
ul { ul {
display: flex; display: flex;
align-items: center; align-items: center;
transform: translateX(50%); transform: translateX(50%);
li { li {
margin-right: 40px; margin-right: 40px;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
span { span {
color: #2069c4; color: #2069c4;
} }
} }
.svg-icon { .svg-icon {
margin-left: 40px; margin-left: 40px;
} }
...@@ -714,10 +661,12 @@ export default { ...@@ -714,10 +661,12 @@ export default {
.wrapper { .wrapper {
transform: translateY(4px); transform: translateY(4px);
} }
.el-button { .el-button {
background: transparent; background: transparent;
border-color: #fff; border-color: #fff;
color: #fff; color: #fff;
i { i {
font-size: 14px; font-size: 14px;
} }
...@@ -727,14 +676,17 @@ export default { ...@@ -727,14 +676,17 @@ export default {
::v-deep .el-button.is-round { ::v-deep .el-button.is-round {
padding: 10px 20px; padding: 10px 20px;
} }
.el-dropdown-menu { .el-dropdown-menu {
background-color: #fff; background-color: #fff;
// border: 1px solid #8a919f; // border: 1px solid #8a919f;
} }
.el-dropdown-menu__item { .el-dropdown-menu__item {
background-color: transparent; background-color: transparent;
// color: #fff; // color: #fff;
color: #8a919f; color: #8a919f;
a { a {
text-decoration: none; text-decoration: none;
color: #8a919f; color: #8a919f;
...@@ -753,33 +705,39 @@ export default { ...@@ -753,33 +705,39 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 30px; margin-bottom: 30px;
.text { .text {
font-weight: bold; font-weight: bold;
font-size: 24px; font-size: 24px;
color: #666; color: #666;
} }
.close { .close {
font-size: 34px; font-size: 34px;
cursor: pointer; cursor: pointer;
color: #ccc; color: #ccc;
} }
} }
.login-box { .login-box {
width: 500px; width: 500px;
margin: auto; margin: auto;
} }
} }
.opration { .opration {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-direction: column; flex-direction: column;
margin-top: 20px; margin-top: 20px;
.register { .register {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-top: 20px; margin-top: 20px;
font-size: 14px; font-size: 14px;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
color: #2069c4; color: #2069c4;
} }
...@@ -794,6 +752,7 @@ export default { ...@@ -794,6 +752,7 @@ export default {
.captcha { .captcha {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
img { img {
margin-top: 2px; margin-top: 2px;
height: 40px; height: 40px;
...@@ -807,6 +766,7 @@ export default { ...@@ -807,6 +766,7 @@ export default {
background-color: #2069c4; background-color: #2069c4;
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
&:hover { &:hover {
filter: brightness(0.9) !important; filter: brightness(0.9) !important;
background-color: #2069c4; background-color: #2069c4;
...@@ -818,9 +778,11 @@ export default { ...@@ -818,9 +778,11 @@ export default {
font-size: 14px; font-size: 14px;
} }
} }
::v-deep .el-dialog { ::v-deep .el-dialog {
width: 400px; width: 400px;
border-radius: 0; border-radius: 0;
.el-dialog__body { .el-dialog__body {
padding: 20px 30px 60px !important; padding: 20px 30px 60px !important;
} }
...@@ -846,10 +808,12 @@ export default { ...@@ -846,10 +808,12 @@ export default {
.login-title { .login-title {
display: flex; display: flex;
position: relative; position: relative;
.title-item { .title-item {
margin-right: 40px; margin-right: 40px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
&:hover { &:hover {
color: #2069c4; color: #2069c4;
} }
...@@ -858,6 +822,7 @@ export default { ...@@ -858,6 +822,7 @@ export default {
.active { .active {
color: #2069c4; color: #2069c4;
} }
.line { .line {
width: 18px; width: 18px;
height: 4px; height: 4px;
......
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
{ tab: "sdcs", name: "四渡赤水出奇兵" }, { tab: "sdcs", name: "四渡赤水出奇兵" },
{ tab: "lzsg", name: "六枝梭戛" }, { tab: "lzsg", name: "六枝梭戛" },
{ tab: "zggz", name: "中共贵州省工委斗争纪略展" }, { tab: "zggz", name: "中共贵州省工委斗争纪略展" },
{ tab: "gzjy", name: "贵州教育使馆" }, { tab: "gzjy", name: "贵州教育馆" },
], ],
activeTab: "", activeTab: "",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论