Commit 52ec3bfc authored by 黄奎's avatar 黄奎

页面修改

parent 1b7c3b76
<style> <style>
@import "../assets/css/Details.css"; @import "../assets/css/Details.css";
</style> </style>
<template> <template>
<div class="flexDiv"> <div class="flexDiv">
<div class="secondMenu" :class="{'big':!isCollapse}"> <div class="secondMenu" :class="{'big':!isCollapse}">
<div class="secondMenu_l"> <div class="secondMenu_l">
<div class="menuItem"> <div class="menuItem">
<el-menu default-active="1" :background-color="!isRed?'#282733':'#FBFBFB'" :text-color="!isRed?'#a3ace0':'#787A7D'" :active-text-color="!isRed?'#FFFFFF':'#33B3FF'" <el-menu default-active="1" :background-color="!isRed?'#282733':'#FBFBFB'"
:text-color="!isRed?'#a3ace0':'#787A7D'" :active-text-color="!isRed?'#FFFFFF':'#33B3FF'"
:collapse="isCollapse"> :collapse="isCollapse">
<el-submenu v-for="(item,index) in items" :index="String(index+1)" :key='index'> <el-submenu v-for="(item,index) in items" :index="String(index+1)" :key='index'>
<template slot="title" class="left-nav"> <template slot="title" class="left-nav">
...@@ -24,7 +26,7 @@ ...@@ -24,7 +26,7 @@
</el-menu> </el-menu>
</div> </div>
</div> </div>
<div class="extender" v-if="isRed" @click="changeMenuShowType"> <div class="extender" v-if="isRed" @click="changeMenuShowType">
<img src="../assets/img/extends.png" :class="{'close-extend':isCollapse}" /> <img src="../assets/img/extends.png" :class="{'close-extend':isCollapse}" />
</div> </div>
</div> </div>
...@@ -105,7 +107,7 @@ ...@@ -105,7 +107,7 @@
navWidth: 0, navWidth: 0,
//加密id //加密id
EnCodeWord: '', EnCodeWord: '',
isRed:true isRed: true
}; };
}, },
components: { components: {
...@@ -153,8 +155,8 @@ ...@@ -153,8 +155,8 @@
}, },
mounted() { mounted() {
this.openMode = 0 this.openMode = 0
if(localStorage.navsot){ if (localStorage.navsot) {
this.isCollapse=localStorage.navsot=='a' this.isCollapse = localStorage.navsot == 'a'
} }
if (localStorage.openMode && localStorage.openMode == 1) if (localStorage.openMode && localStorage.openMode == 1)
this.openMode = 1 this.openMode = 1
...@@ -181,15 +183,15 @@ ...@@ -181,15 +183,15 @@
} else { } else {
this.goUrl('/' + hrefs[hrefs.length - 1]) this.goUrl('/' + hrefs[hrefs.length - 1])
} }
this.isRed=(this.getLocalStorage().ThemeType?this.getLocalStorage().ThemeType:0)==1 this.isRed = (this.getLocalStorage().ThemeType ? this.getLocalStorage().ThemeType : 0) == 1
}, },
methods: { methods: {
nullMethod() { nullMethod() {
}, },
changeMenuShowType(){ changeMenuShowType() {
this.isCollapse=!this.isCollapse; this.isCollapse = !this.isCollapse;
localStorage.navsot=this.isCollapse?'a':'b' localStorage.navsot = this.isCollapse ? 'a' : 'b'
}, },
referPage() { referPage() {
this.currentTabName = this.tabs[this.currentRightIndex].name + '_' + this.currentRightIndex this.currentTabName = this.tabs[this.currentRightIndex].name + '_' + this.currentRightIndex
...@@ -403,6 +405,9 @@ ...@@ -403,6 +405,9 @@
case "/HotelInfo": //酒店基本信息新增修改 case "/HotelInfo": //酒店基本信息新增修改
path = "/HotelManagement"; path = "/HotelManagement";
break; break;
case "/GnHotelInfo": //国内酒店
path = "/GnHotelManagement";
break;
case "/HotelProductManage": //酒店房型 case "/HotelProductManage": //酒店房型
path = "/HotelManagement"; path = "/HotelManagement";
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment