|
|
@@ -127,6 +127,8 @@
|
|
|
<view class="note">正在直播中</view>
|
|
|
<view class="title">{{livingItem.sectionName}}</view>
|
|
|
</view>
|
|
|
+ <!-- <view class="all_item" v-for="(cou, c_index) in goodsTeacher" :key="c_index"> -->
|
|
|
+ <!-- <view class="cou_title">{{ cou.}}</view> -->
|
|
|
<view v-if="teacherList && teacherList.length > 0" class='teacher_names'>
|
|
|
<view v-for="(tea, index) in teacherList" :key="index" class="names"
|
|
|
:class="{nactive: teacherIndex == index}" @click="activeFunc(tea, index)">
|
|
|
@@ -197,6 +199,7 @@
|
|
|
></view>
|
|
|
<!-- @togoBack="togoBack($event)" -->
|
|
|
</view>
|
|
|
+ <!-- </view> -->
|
|
|
</view>
|
|
|
<!--讲义 -->
|
|
|
<view v-show="current == 1">
|
|
|
@@ -998,9 +1001,15 @@ export default {
|
|
|
this.teacherList = item.teaList
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ this.goodsTeacher.forEach(async (item) => {
|
|
|
+ let courseItem = await this.getMenuList(item.courseList[0].courseId)
|
|
|
+ console.log('==', courseItem);
|
|
|
+ item['courseMeun'] = courseItem
|
|
|
+ })
|
|
|
+ console.log('===,== this.goodsTeacher', this.goodsTeacher);
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
// 原来onshow里面的内容
|
|
|
originOnShow() {
|
|
|
console.log('原来onshow里面的originOnShow')
|
|
|
@@ -3046,12 +3055,11 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getMenuList() {
|
|
|
- // console.log('menuList的目录');
|
|
|
- let self = this;
|
|
|
+ getMenuList(courseId = this.courseId) {
|
|
|
+ console.log('menuList的目录courseId:', courseId);
|
|
|
// /course/menuList 查询课程目录结构列表
|
|
|
- this.$api
|
|
|
- .reMenuList({ courseId: this.courseId, gradeId: this.gradeId,orderGoodsId: this.orderGoodsId, })
|
|
|
+ return this.$api
|
|
|
+ .reMenuList({ courseId: courseId, gradeId: this.gradeId,orderGoodsId: this.orderGoodsId, })
|
|
|
.then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
@@ -3061,7 +3069,7 @@ export default {
|
|
|
item.name = item.menuName;
|
|
|
item.menuType = item.type;
|
|
|
}
|
|
|
- self.menuList = res.data.rows;
|
|
|
+ this.menuList = res.data.rows;
|
|
|
this.reStart = true
|
|
|
for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
if (res.data.rows[i].type == 1) {
|
|
|
@@ -3092,6 +3100,7 @@ export default {
|
|
|
}
|
|
|
console.log('menuList: ---', this.menuList, 'menuIndex:', this.menuIndex);
|
|
|
}
|
|
|
+ return Promise.resolve(this.menuList)
|
|
|
});
|
|
|
},
|
|
|
courseDetail() {
|