Commit c00f85c6 authored by 黄奎's avatar 黄奎

页面修改

parent 24edc848
......@@ -136,7 +136,7 @@
class="text-subtitle2 second-menu-bg" :style="{'width':IsShowLeft?'0':'180px'}"
v-if="secondNavs && secondNavs.length>0">
<div class="full-width left-menu-box q-pt-md">
<div class="is-show-menu-2" @click="changeLeft">
<div class="is-show-menu-2" @click="changeLeft">
<a v-if="!IsShowLeft"><i class="iconfont icon-line-arrow-left"></i></a>
<a v-else><i class="iconfont icon-arrow-right"></i></a>
</div>
......@@ -205,6 +205,23 @@
watch: {
$route: {
handler: function (route) {
var newPath = route.path.split("?")[0].toLowerCase();
console.log("newPath",newPath)
switch (newPath) {
case "/course/chapter":
this.IsShowLeft = false;
break;
case "/course/question":
this.IsShowLeft = false;
break;
case "/course/teachplan":
this.IsShowLeft = false;
break;
case "/course/courseinfo":
this.IsShowLeft = false;
break;
}
console.log(" this.IsShowLeft", this.IsShowLeft)
this.currentPath = route.path
},
immediate: true
......@@ -273,20 +290,22 @@
.full-width {
height: 100%;
}
.is-show-menu-2{
.is-show-menu-2 {
position: absolute;
width: 35px;
height:35px;
height: 35px;
line-height: 30px;
border-radius: 50%;
background: #2961fe;
color:#fff;
color: #fff;
padding: 2px 8px;
right: -37px;
top: 1px;
top: 1px;
cursor: pointer;
z-index: 10;
}
.head-bg {
background-image: url('~assets/images/page/top.png');
background-position: right;
......
......@@ -138,7 +138,6 @@
},
mounted() {
},
methods: {
gotoPage(routename) {
......
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