|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
+ <view style="padding-bottom: 140rpx">
|
|
|
<nav-bar title="课程详情"></nav-bar>
|
|
|
<view class="videoBox">
|
|
|
<!-- <view > -->
|
|
@@ -263,7 +263,14 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 讲义资料 -->
|
|
|
- <view v-show="current == 3">123</view>
|
|
|
+ <view v-show="current == 3" style="padding: 0 10rpx">
|
|
|
+ <handouts-box
|
|
|
+ :isShowSearch="false"
|
|
|
+ :isShowDownIcon="false"
|
|
|
+ :handoutsId="detail.handoutsId"
|
|
|
+ v-if="detail.handoutsId"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<view class="bottomBox" v-if="!hideBuyState">
|
|
@@ -405,12 +412,14 @@
|
|
|
import courseModule from "@/components/course/courseModule.vue";
|
|
|
import courseChapter from "@/components/course/courseChapter.vue";
|
|
|
import courseSection from "@/components/course/courseSection.vue";
|
|
|
+import handoutsBox from "@/components/course/handoutsBox.vue";
|
|
|
import { mapGetters, mapMutations } from "vuex";
|
|
|
export default {
|
|
|
components: {
|
|
|
courseModule,
|
|
|
courseChapter,
|
|
|
courseSection,
|
|
|
+ handoutsBox,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -523,6 +532,14 @@ export default {
|
|
|
if (!this.isJx) {
|
|
|
this.goodsCourseList();
|
|
|
this.appCommonGoodsCourseModuleFreeExamList();
|
|
|
+ } else {
|
|
|
+ this.list = [
|
|
|
+ {
|
|
|
+ name: "资料目录",
|
|
|
+ value: 3,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.current = 3;
|
|
|
}
|
|
|
|
|
|
// #ifdef MP-WEIXIN
|
|
@@ -664,7 +681,6 @@ export default {
|
|
|
},
|
|
|
select(val) {
|
|
|
val.check = !val.check;
|
|
|
- console.log(val, 6666);
|
|
|
},
|
|
|
checkboxChange(val) {
|
|
|
if (!this.isSingleChoice) return;
|