|
@@ -549,6 +549,16 @@
|
|
|
<u-icon name="close" color="#9C9C9C" size="40" @click="closePop()"></u-icon>
|
|
|
</view>
|
|
|
<view class="coruse_num">共{{ courseTotal }}门</view>
|
|
|
+ <view class="menuSel">
|
|
|
+ <scroll-view class="r_sliper" scroll-x="true" >
|
|
|
+ <view v-for="(item,index) in subList" :key="index" style="margin-right: 20rpx;display:inline-block">
|
|
|
+ <!-- :class="paramList[0].subjectId==item.id?'r_t1':'r_t2'"@click="cMenu(item.id)" -->
|
|
|
+ <view class="r_t1" @click="cMenu(item)">
|
|
|
+ {{item.subjectName}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </scroll-view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="check_con">
|
|
|
<scroll-view scroll-y="true" style="height: 700rpx;">
|
|
@@ -697,6 +707,7 @@ export default {
|
|
|
courseList: [], // 课程列表
|
|
|
courseTotal: 0,
|
|
|
reStart: false, // 是否显示模块/章/节
|
|
|
+ subList: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -754,6 +765,7 @@ export default {
|
|
|
console.log('ahhhhh视频hhhhhhhh')
|
|
|
// /course/courseList查询商品下的课程列表
|
|
|
this.courseList = []
|
|
|
+ this.menuList = []
|
|
|
this.$api.courseCourseList({
|
|
|
pageNum: 1,
|
|
|
pageSize: 100,
|
|
@@ -763,6 +775,10 @@ export default {
|
|
|
}).then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.courseList.push.apply(this.courseList, res.data.rows)
|
|
|
+ // this.menuList.push.apply(this.courseList, res.data.rows)
|
|
|
+ let allItem = [{ subjectId: 0, subjectName: '所有'}]
|
|
|
+ this.subList = [...allItem, ...this.courseList]
|
|
|
+ console.log('this.subList:', this.subList)
|
|
|
this.courseTotal = res.data.total || 0
|
|
|
if (res.data.rows.length) {
|
|
|
this.courseBusiness(res.data.rows[0].businessId)
|