Commit 0b9c444b authored by 黄奎's avatar 黄奎
parents c00f85c6 f1f29ff2
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
} }
.nav-content ul { .nav-content ul {
border-bottom: 2px solid #F8F8F8; /* border-bottom: 2px solid #F8F8F8; */
padding: 12px 0; padding: 12px 0;
} }
...@@ -60,14 +60,20 @@ ...@@ -60,14 +60,20 @@
.checkedLi i { .checkedLi i {
color: #3B90FF !important; color: #3B90FF !important;
} }
.course-menu-box{
overflow-x: hidden;
overflow-y: auto;
max-height: 100%;
height: 100%;
background: #fff;
}
</style> </style>
<template> <template>
<div class="row items-stretch full-height"> <div class="row items-stretch full-height">
<div style="box-shadow: 2px 0 10px 0 rgba(237,238,240,0.50);font-family:perfectFont;" <div style="box-shadow: 2px 0 10px 0 rgba(237,238,240,0.50);font-family:perfectFont;"
class="text-subtitle2 second-menu-bg"> class="text-subtitle2 courseInfo_Bg">
<div class="full-width left-menu-box q-pt-md"> <div class="full-width course-menu-box q-pt-md">
<q-list style="width:180px;overflow:hidden"> <q-list style="width:180px;overflow:hidden">
<div class="classD1"> <div class="classD1">
<img style="width:100%;height:100%;" alt=""> <img style="width:100%;height:100%;" alt="">
...@@ -75,13 +81,13 @@ ...@@ -75,13 +81,13 @@
<div class="text_Degree">0-N3直通车</div> <div class="text_Degree">0-N3直通车</div>
<div class="nav-content"> <div class="nav-content">
<ul> <ul>
<li class="checkedLi" @click="gotoPage('teachplan')"> <li :class="{'checkedLi':commonIndex==1}" @click="gotoPage('question',1)">
<i style="font-size:20px;" class="iconfont icon-PPT"></i>教案
</li>
<li @click="gotoPage('question')">
<i class="iconfont icon-tiku"></i>题库 <i class="iconfont icon-tiku"></i>题库
</li> </li>
<li @click="gotoPage('chapter')"> <li :class="{'checkedLi':commonIndex==2}" @click="gotoPage('teachplan',2)">
<i style="font-size:20px;" class="iconfont icon-PPT"></i>教案
</li>
<li :class="{'checkedLi':commonIndex==3}" @click="gotoPage('chapter',3)">
<i class="iconfont icon-icon_zhangjielianxi"></i>章节 <i class="iconfont icon-icon_zhangjielianxi"></i>章节
</li> </li>
</ul> </ul>
...@@ -123,6 +129,7 @@ ...@@ -123,6 +129,7 @@
opacity: 0.5 opacity: 0.5
}, },
CourseId: 0, CourseId: 0,
commonIndex:1, //选中
} }
}, },
watch: { watch: {
...@@ -140,7 +147,8 @@ ...@@ -140,7 +147,8 @@
}, },
methods: { methods: {
gotoPage(routename) { gotoPage(routename,type) {
this.commonIndex=type;
var tempStr = '/course/' + routename + '?CourseId=' + this.CourseId; var tempStr = '/course/' + routename + '?CourseId=' + this.CourseId;
console.log("tempStr", tempStr) console.log("tempStr", tempStr)
this.$router.push({ this.$router.push({
...@@ -157,15 +165,7 @@ ...@@ -157,15 +165,7 @@
height: 100%; height: 100%;
} }
.head-bg { .courseInfo_Bg {
background-image: url('~assets/images/page/top.png');
background-position: right;
background-repeat: no-repeat;
background-size: auto 100%;
}
.second-menu-bg {
background-image: url('~assets/images/page/left.png');
background-position: bottom; background-position: bottom;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% auto; background-size: 100% auto;
...@@ -193,31 +193,24 @@ ...@@ -193,31 +193,24 @@
color: #636363; color: #636363;
} }
.left-menu-box { course-menu-box {
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
max-height: 100%; max-height: 100%;
height: 100%; height: 100%;
background-color: rgba(255, 255, 255, 0.3); background-color: #fff;
} }
.left-menu-box::-webkit-scrollbar { course-menu-box::-webkit-scrollbar {
width: 4px; width: 4px;
height: 4px; height: 4px;
} }
.left-menu-box::-webkit-scrollbar-thumb { course-menu-box::-webkit-scrollbar-thumb {
border-radius: 4px; border-radius: 4px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: #bbb; background: #bbb;
} }
/* .left-menu-box::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
border-radius: 10px;
background: #EDEDED;
} */
@keyframes shouqidonghua { @keyframes shouqidonghua {
from { from {
width: 180px; width: 180px;
......
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