Commit f7a4b995 authored by 黄奎's avatar 黄奎

页面修改

parent 0b9c444b
...@@ -60,25 +60,26 @@ ...@@ -60,25 +60,26 @@
.checkedLi i { .checkedLi i {
color: #3B90FF !important; color: #3B90FF !important;
} }
.course-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: #fff; 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 courseInfo_Bg"> class="text-subtitle2 courseInfo_Bg">
<div class="full-width course-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="" :src="courseInfo.CoverImg" />
</div> </div>
<div class="text_Degree">0-N3直通车</div> <div class="text_Degree">{{courseInfo.CourseName}}</div>
<div class="nav-content"> <div class="nav-content">
<ul> <ul>
<li :class="{'checkedLi':commonIndex==1}" @click="gotoPage('question',1)"> <li :class="{'checkedLi':commonIndex==1}" @click="gotoPage('question',1)">
...@@ -104,13 +105,11 @@ ...@@ -104,13 +105,11 @@
</template> </template>
<script> <script>
import { import {
mapGetters queryCourseInfo,
} from 'vuex' } from '../../api/course/index'
export default { export default {
name: 'courseinfo', name: 'courseinfo',
components: { components: {},
},
data() { data() {
return { return {
currentPath: "/course/courseinfo", currentPath: "/course/courseinfo",
...@@ -129,7 +128,8 @@ ...@@ -129,7 +128,8 @@
opacity: 0.5 opacity: 0.5
}, },
CourseId: 0, CourseId: 0,
commonIndex:1, //选中 commonIndex: 1, //选中
courseInfo: {}, //课程信息
} }
}, },
watch: { watch: {
...@@ -142,15 +142,24 @@ ...@@ -142,15 +142,24 @@
if (this.$route.query) { if (this.$route.query) {
this.CourseId = this.$route.query.CourseId this.CourseId = this.$route.query.CourseId
} }
this.getCourseInfo();
}, },
mounted() { mounted() {
}, },
methods: { methods: {
gotoPage(routename,type) { //获取课程信息
this.commonIndex=type; getCourseInfo() {
queryCourseInfo({
CourseId: this.CourseId
}).then(res => {
this.courseInfo = res.Data;
})
},
//页面跳转
gotoPage(routename, type) {
this.commonIndex = type;
var tempStr = '/course/' + routename + '?CourseId=' + this.CourseId; var tempStr = '/course/' + routename + '?CourseId=' + this.CourseId;
console.log("tempStr", tempStr)
this.$router.push({ this.$router.push({
path: tempStr path: tempStr
}); });
...@@ -211,6 +220,7 @@ ...@@ -211,6 +220,7 @@
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;
} }
@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