|
@@ -28,7 +28,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<steps-box
|
|
<steps-box
|
|
- v-if="type == 1"
|
|
|
|
|
|
+ v-show="type == 1"
|
|
:courseDetail="courseDetail"
|
|
:courseDetail="courseDetail"
|
|
:chapInfo="chapInfo"
|
|
:chapInfo="chapInfo"
|
|
:courseType="courseType"
|
|
:courseType="courseType"
|
|
@@ -38,10 +38,11 @@
|
|
:oid="oid"
|
|
:oid="oid"
|
|
></steps-box>
|
|
></steps-box>
|
|
<comment-box
|
|
<comment-box
|
|
- v-if="type == 2"
|
|
|
|
|
|
+ v-show="type == 2"
|
|
:courseid="courseid"
|
|
:courseid="courseid"
|
|
:courseType="courseType"
|
|
:courseType="courseType"
|
|
:taskCount="taskCount"
|
|
:taskCount="taskCount"
|
|
|
|
+ ref="comment"
|
|
></comment-box>
|
|
></comment-box>
|
|
</div>
|
|
</div>
|
|
<div class="courseNavIcon">
|
|
<div class="courseNavIcon">
|
|
@@ -146,18 +147,21 @@ export default {
|
|
},
|
|
},
|
|
setType(type) {
|
|
setType(type) {
|
|
this.type = type
|
|
this.type = type
|
|
|
|
+ if (type === 2) {
|
|
|
|
+ this.$refs['comment'].panelVisible = true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
navCheck() {
|
|
navCheck() {
|
|
this.navVisible = true
|
|
this.navVisible = true
|
|
},
|
|
},
|
|
nextOrpreSteps(t) {
|
|
nextOrpreSteps(t) {
|
|
this.$refs.navbox.nextOrpreSteps(t)
|
|
this.$refs.navbox.nextOrpreSteps(t)
|
|
- var a = this.$refs["cBox"];
|
|
|
|
- a.scrollTop = 0;
|
|
|
|
|
|
+ var a = this.$refs['cBox']
|
|
|
|
+ a.scrollTop = 0
|
|
},
|
|
},
|
|
back() {
|
|
back() {
|
|
// eslint-disable-next-line prettier/prettier
|
|
// eslint-disable-next-line prettier/prettier
|
|
- this.$router.push({ path: '/courseDetail', query: { courseid: this.courseid } })
|
|
|
|
|
|
+ this.$router.push({ path: '/courseDetail', query: { courseid: this.courseid }})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|