|
@@ -1,5 +1,9 @@
|
|
<template>
|
|
<template>
|
|
- <div class="componentMenuBox" id="componentMenuBox">
|
|
|
|
|
|
+ <div :class="['componentMenuBox', this.$store.state.template.componentMenuStatus == 0 ? 'componentMenuBoxHide' : '']" id="componentMenuBox">
|
|
|
|
+ <div class="floatArrow">
|
|
|
|
+ <span class="el-icon-arrow-left" @click="setComponentMenuStatus(0)" v-if="this.$store.state.template.componentMenuStatus == 1"></span>
|
|
|
|
+ <span class="el-icon-arrow-right" @click="setComponentMenuStatus(1)" v-if="this.$store.state.template.componentMenuStatus == 0"></span>
|
|
|
|
+ </div>
|
|
<div class="componentMenuTitle">
|
|
<div class="componentMenuTitle">
|
|
<div v-if="this.$store.state.template.pageStatus == 1">首页可选板块:</div>
|
|
<div v-if="this.$store.state.template.pageStatus == 1">首页可选板块:</div>
|
|
<div v-if="this.$store.state.template.pageStatus == 2">频道页可选板块:</div>
|
|
<div v-if="this.$store.state.template.pageStatus == 2">频道页可选板块:</div>
|
|
@@ -73,15 +77,33 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
+ setComponentMenuStatus(data) {
|
|
|
|
+ this.$store.commit('template/setComponentMenuStatus', data);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
<style scoped lang="less">
|
|
- .componentMenuBox {
|
|
|
|
|
|
+.componentMenuBox {
|
|
|
|
+ .floatArrow {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ right: -16px;
|
|
|
|
+ width: 40px;
|
|
|
|
+ height: 40px;
|
|
|
|
+ background: #2F2F2F;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ color:#fff;
|
|
|
|
+ line-height:40px;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ color: #c7c7c7;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ padding-left: 16px;
|
|
|
|
+ }
|
|
transition: width 0.28s;
|
|
transition: width 0.28s;
|
|
- width: 290px !important;
|
|
|
|
|
|
+ width: 220px !important;
|
|
background: #2F2F2F;
|
|
background: #2F2F2F;
|
|
height: 100%;
|
|
height: 100%;
|
|
position: fixed;
|
|
position: fixed;
|
|
@@ -90,21 +112,29 @@ export default {
|
|
bottom: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
left: 0;
|
|
z-index: 1001;
|
|
z-index: 1001;
|
|
- overflow: hidden;
|
|
|
|
.sectorBox {
|
|
.sectorBox {
|
|
- height: 100%;
|
|
|
|
|
|
+ height: 100%;
|
|
}
|
|
}
|
|
.el-scrollbar {
|
|
.el-scrollbar {
|
|
- height: calc(100vh - 60px);
|
|
|
|
|
|
+ height: calc(100vh - 60px);
|
|
}
|
|
}
|
|
.componentMenuTitle {
|
|
.componentMenuTitle {
|
|
- padding: 37px 0 30px 0;
|
|
|
|
- color: #fff;
|
|
|
|
- font-size: 18px;
|
|
|
|
- div {
|
|
|
|
- border-left: 3px solid #5570F1;
|
|
|
|
- padding-left: 25px;
|
|
|
|
- }
|
|
|
|
|
|
+ padding: 37px 0 30px 0;
|
|
|
|
+ color: #fff;
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ div {
|
|
|
|
+ border-left: 3px solid #5570F1;
|
|
|
|
+ padding-left: 25px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+}
|
|
|
|
+.componentMenuBoxHide {
|
|
|
|
+ width: 10px !important;
|
|
|
|
+ .componentMenuTitle {
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
|
|
+ .el-scrollbar {
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|