|
|
@@ -93,10 +93,10 @@
|
|
|
<view class="notice_wrap" v-if="goodsData.buyNote">
|
|
|
<view class="video_t1_t" @click="studyNotice"> 学员须知 </view>
|
|
|
</view>
|
|
|
+ <!-- courseTotal -->
|
|
|
<view class="toggle_course" v-if="goodsTeacher.length > 1" @click="changeCourses()">
|
|
|
<image class="img" src="/pages3/static/imgs/toggle.png" mode="widthFix"></image>
|
|
|
<view class="toggle_name">切换课程</view>
|
|
|
- <!-- courseTotal -->
|
|
|
<view class="numbers">共{{ goodsTeacher.length }}门</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -129,87 +129,85 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="all_items" v-for="(courseItem, c_index) in goodsTeacher" :key="c_index">
|
|
|
-
|
|
|
<view v-for="(cour, cou_index) in courseItem.courseList" :key="cou_index">
|
|
|
<view v-if="cour.show && cour.show == 1">
|
|
|
<view v-if="courseTotal > 1" class="cou_title">{{ cour.courseName }}</view>
|
|
|
- <!-- 双师制 -->
|
|
|
- <view v-if="courseItem.teaList && courseItem.teaList.length > 0" class='teacher_names'>
|
|
|
- <view v-for="(tea, tindex) in courseItem.teaList" :key="tindex" class="names"
|
|
|
- :class="{nactive: teacherIndex == tindex}" @click="activeFunc(tea, tindex)">
|
|
|
- {{ tea.aliasName }}
|
|
|
+ <!-- <view v-show="courseItem.courseShow"> -->
|
|
|
+ <!-- 双师制 -->
|
|
|
+ <view v-if="courseItem.teaList && courseItem.teaList.length > 0" class='teacher_names'>
|
|
|
+ <view v-for="(tea, tindex) in courseItem.teaList" :key="tindex" class="names"
|
|
|
+ :class="{nactive: teacherIndex == tindex}" @click="activeFunc(tea, tindex)">
|
|
|
+ {{ tea.aliasName }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <!-- 目录列表 -->
|
|
|
- <view class="menuBox onessss" v-for="(item, index) in courseItem.courseMeun" :key="index">
|
|
|
- <!--模块 -->
|
|
|
- <view v-if="item.type == 1"
|
|
|
- ><courseModule
|
|
|
- v-if="reStart"
|
|
|
- :orderGoodsId="orderGoodsId"
|
|
|
- :sectionMaxNum="goodsData.sectionMaxNum"
|
|
|
- :needOpen="item.menuIndex === index ? true : false"
|
|
|
- :courseId="courseId"
|
|
|
- :preItem="menuList[index - 1]"
|
|
|
- :learningOrder="businessData.goodsLearningOrder"
|
|
|
- :goodsId="goodsId"
|
|
|
- :gradeId="gradeId"
|
|
|
- :isBuy="true"
|
|
|
- :menuItem="item"
|
|
|
- :levelId="item.menuId"
|
|
|
- :goodsType='1'
|
|
|
- :menuAllList="menuAllList"
|
|
|
- :sectionItem="sectionItem"
|
|
|
- ></courseModule
|
|
|
- ></view>
|
|
|
- <!--章 -->
|
|
|
- <view v-if="item.type == 2"
|
|
|
- ><courseChapter
|
|
|
- v-if="reStart"
|
|
|
- :orderGoodsId="orderGoodsId"
|
|
|
- :sectionMaxNum="goodsData.sectionMaxNum"
|
|
|
- :needOpen="item.menuIndex === index ? true : false"
|
|
|
- :courseId="courseId"
|
|
|
- :preItem="menuList[index - 1]"
|
|
|
- @playEnd="sectionPlayEnd($event, index)"
|
|
|
- :learningOrder="businessData.goodsLearningOrder"
|
|
|
- :goodsId="goodsId"
|
|
|
- :gradeId="gradeId"
|
|
|
- :isBuy="true"
|
|
|
- :menuItem="item"
|
|
|
- :levelId="'0-' + item.menuId"
|
|
|
- :goodsType='1'
|
|
|
- :menuAllList="menuAllList"
|
|
|
- ></courseChapter
|
|
|
- ></view>
|
|
|
- <!--节 -->
|
|
|
- <view v-if="item.type == 3"
|
|
|
- ><courseSection
|
|
|
- ref="MoudleSection"
|
|
|
- v-if="reStart"
|
|
|
- :orderGoodsId="orderGoodsId"
|
|
|
- :sectionMaxNum="goodsData.sectionMaxNum"
|
|
|
- @playEnd="sectionPlayEnd($event, index)"
|
|
|
- :courseId="courseId"
|
|
|
- :preItem="menuList[index - 1]"
|
|
|
- :learningOrder="businessData.goodsLearningOrder"
|
|
|
- :goodsId="goodsId"
|
|
|
- :gradeId="gradeId"
|
|
|
- :isBuy="true"
|
|
|
- :menuItem="item"
|
|
|
- :levelId="'0-0-' + item.menuId"
|
|
|
- :goodsType='1'
|
|
|
- :testType="3"
|
|
|
- :menuAllList="menuAllList"
|
|
|
- ></courseSection
|
|
|
- ></view>
|
|
|
- <!-- @togoBack="togoBack($event)" -->
|
|
|
- </view>
|
|
|
+ <!-- 目录列表 -->
|
|
|
+ <view class="menuBox onessss" v-for="(item, index) in courseItem.courseMeun" :key="index">
|
|
|
+ <!--模块 -->
|
|
|
+ <view v-if="item.type == 1"
|
|
|
+ ><courseModule
|
|
|
+ v-if="reStart"
|
|
|
+ :orderGoodsId="orderGoodsId"
|
|
|
+ :sectionMaxNum="goodsData.sectionMaxNum"
|
|
|
+ :needOpen="item.menuIndex === index ? true : false"
|
|
|
+ :courseId="courseId"
|
|
|
+ :preItem="menuList[index - 1]"
|
|
|
+ :learningOrder="businessData.goodsLearningOrder"
|
|
|
+ :goodsId="goodsId"
|
|
|
+ :gradeId="gradeId"
|
|
|
+ :isBuy="true"
|
|
|
+ :menuItem="item"
|
|
|
+ :levelId="item.menuId"
|
|
|
+ :goodsType='1'
|
|
|
+ :menuAllList="menuAllList"
|
|
|
+ :sectionItem="sectionItem"
|
|
|
+ ></courseModule
|
|
|
+ ></view>
|
|
|
+ <!--章 -->
|
|
|
+ <view v-if="item.type == 2"
|
|
|
+ ><courseChapter
|
|
|
+ v-if="reStart"
|
|
|
+ :orderGoodsId="orderGoodsId"
|
|
|
+ :sectionMaxNum="goodsData.sectionMaxNum"
|
|
|
+ :needOpen="item.menuIndex === index ? true : false"
|
|
|
+ :courseId="courseId"
|
|
|
+ :preItem="menuList[index - 1]"
|
|
|
+ @playEnd="sectionPlayEnd($event, index)"
|
|
|
+ :learningOrder="businessData.goodsLearningOrder"
|
|
|
+ :goodsId="goodsId"
|
|
|
+ :gradeId="gradeId"
|
|
|
+ :isBuy="true"
|
|
|
+ :menuItem="item"
|
|
|
+ :levelId="'0-' + item.menuId"
|
|
|
+ :goodsType='1'
|
|
|
+ :menuAllList="menuAllList"
|
|
|
+ ></courseChapter
|
|
|
+ ></view>
|
|
|
+ <!--节 -->
|
|
|
+ <view v-if="item.type == 3"
|
|
|
+ ><courseSection
|
|
|
+ ref="MoudleSection"
|
|
|
+ v-if="reStart"
|
|
|
+ :orderGoodsId="orderGoodsId"
|
|
|
+ :sectionMaxNum="goodsData.sectionMaxNum"
|
|
|
+ @playEnd="sectionPlayEnd($event, index)"
|
|
|
+ :courseId="courseId"
|
|
|
+ :preItem="menuList[index - 1]"
|
|
|
+ :learningOrder="businessData.goodsLearningOrder"
|
|
|
+ :goodsId="goodsId"
|
|
|
+ :gradeId="gradeId"
|
|
|
+ :isBuy="true"
|
|
|
+ :menuItem="item"
|
|
|
+ :levelId="'0-0-' + item.menuId"
|
|
|
+ :goodsType='1'
|
|
|
+ :testType="3"
|
|
|
+ :menuAllList="menuAllList"
|
|
|
+ ></courseSection
|
|
|
+ ></view>
|
|
|
+ <!-- @togoBack="togoBack($event)" -->
|
|
|
+ </view>
|
|
|
+ <!-- </view> -->
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--讲义 -->
|
|
|
@@ -929,10 +927,8 @@ export default {
|
|
|
this.sectionItem = res.data.data || {}
|
|
|
if (res.data.data && Object.keys(res.data.data).length) { //有最后一次看的录播的信息
|
|
|
this.courseId = res.data.data.courseId
|
|
|
- // console.log('查询用户最后一次看的录播的信息', res.data, this.courseId)
|
|
|
} else {
|
|
|
this.courseId = this.courseList[0].courseId // 没有观看记录默认一个课程
|
|
|
- // this.toggleCourseShow = true
|
|
|
}
|
|
|
} else {
|
|
|
this.courseId = this.courseList[0].courseId // 没有观看记录默认一个课程
|