Commit e76d6ba3 authored by 黄奎's avatar 黄奎

页面修改

parent 8064c62f
......@@ -23,7 +23,6 @@
}
.nav-content ul {
/* border-bottom: 2px solid #F8F8F8; */
padding: 12px 0;
}
......@@ -82,10 +81,10 @@
<div class="text_Degree">{{courseInfo.CourseName}}</div>
<div class="nav-content">
<ul>
<li :class="{'checkedLi':commonIndex==1}" @click="gotoPage('question',1)">
<!-- <li :class="{'checkedLi':commonIndex==1}" @click="gotoPage('question',1)">
<i class="iconfont icon-tiku"></i>题库
</li>
<!-- <li :class="{'checkedLi':commonIndex==2}" @click="gotoPage('teachplan',2)">
</li> -->
<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)">
......@@ -93,7 +92,7 @@
</li>
<li :class="{'checkedLi':commonIndex==4}" @click="gotoPage('coursejob',4)">
<i class="iconfont icon-icon_zhangjielianxi"></i>作业
</li> -->
</li>
</ul>
</div>
</q-list>
......@@ -131,7 +130,7 @@
opacity: 0.5
},
CourseId: 0,
commonIndex: 1, //选中
commonIndex: 2, //选中
courseInfo: {}, //课程信息
}
},
......@@ -140,14 +139,17 @@
handler: function (route) {
var newPath = route.path.split("?")[0].toLowerCase();
switch (newPath) {
case "/course/chapter":
this.commonIndex = 3;
case "/course/courseinfo":
this.commonIndex = 1;
break;
case "/course/teachplan":
this.commonIndex = 2;
break;
case "/course/courseinfo":
this.commonIndex = 1;
case "/course/chapter":
this.commonIndex = 3;
break;
case "/course/coursejob":
this.commonIndex = 4;
break;
}
},
......@@ -164,7 +166,7 @@
this.getCourseInfo();
},
mounted() {
this.gotoPage('question',1);
this.gotoPage('teachplan', 2);
},
methods: {
//获取课程信息
......
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