Commit c00f85c6 authored by 黄奎's avatar 黄奎

页面修改

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