|
@@ -95,6 +95,7 @@
|
|
|
<image class="img" src="/pages3/static/imgs/toggle.png" mode="widthFix"></image>
|
|
|
<view class="toggle_name">切换课程</view>
|
|
|
</view>
|
|
|
+ <view v-if="courseTotal > 1" class="numbers">共{{ courseTotal }}门</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-line color="#D6D6DB" />
|
|
@@ -123,7 +124,7 @@
|
|
|
<view class="note">正在直播中</view>
|
|
|
<view class="title">{{livingItem.sectionName}}</view>
|
|
|
</view>
|
|
|
- <view class="menuBox" v-for="(item, index) in menuList" :key="index">
|
|
|
+ <view class="menuBox onessss" v-for="(item, index) in menuList" :key="index">
|
|
|
<!--模块 -->
|
|
|
<view v-if="item.type == 1"
|
|
|
><courseModule
|
|
@@ -924,7 +925,9 @@ export default {
|
|
|
},
|
|
|
// 进入学习
|
|
|
jump(item, index) {
|
|
|
-
|
|
|
+ console.log('item------>', item, item.goodsId, item.courseId, item.orderGoodsId)
|
|
|
+ this.courseId = item.courseId
|
|
|
+ // return
|
|
|
if (index == 0) {
|
|
|
if (item.rebuild === 0) {
|
|
|
//未重修
|
|
@@ -1241,6 +1244,7 @@ export default {
|
|
|
this.menuList = [];
|
|
|
this.$nextTick(() => {
|
|
|
this.menuList = res.data.rows;
|
|
|
+ console.log('nextTick==', this.menuList)
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -2668,6 +2672,8 @@ export default {
|
|
|
},
|
|
|
getMenuList() {
|
|
|
let self = this;
|
|
|
+ console.log('-------------------------------------')
|
|
|
+ // /course/menuList 查询课程目录结构列表
|
|
|
this.$api
|
|
|
.reMenuList({ courseId: this.courseId, gradeId: this.gradeId,orderGoodsId: this.orderGoodsId, })
|
|
|
.then((res) => {
|
|
@@ -2680,7 +2686,7 @@ export default {
|
|
|
item.menuType = item.type;
|
|
|
}
|
|
|
self.menuList = res.data.rows;
|
|
|
-
|
|
|
+console.log('======menuList', this.menuList)
|
|
|
for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
if (res.data.rows[i].type == 1) {
|
|
|
this.menuIndex = [i];
|