|
@@ -113,16 +113,17 @@
|
|
|
</template>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
- <view class="filters">
|
|
|
+ <!-- v-if="tabNum == 0" -->
|
|
|
+ <!-- <view class="filters">
|
|
|
<scroll-view class="scroll_view_H" scroll-x="true" >
|
|
|
- <!-- v-if="tabNum == 0" -->
|
|
|
+
|
|
|
<template >
|
|
|
<view v-for="(item, index) in subjectList" :key="index" class="filter_item" @click="changeSub(item.id, index)">
|
|
|
<view class="name" :class="{nactive: subIndex == index}">{{ item.subjectName }}</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
</scroll-view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="course-list" v-show="tabCurrent==0">
|
|
|
<template v-if="list1.length">
|
|
|
<!-- hover-class="none" -->
|
|
@@ -872,8 +873,15 @@ export default {
|
|
|
tab(e) {
|
|
|
this.tabCurrent = e;
|
|
|
this.tabNum = e
|
|
|
- let recommendId = e == 0 ? this.courseId : this.bankId
|
|
|
- this.getSubjectList(recommendId)
|
|
|
+ this.paramList[this.tabNum].pageNum = 1
|
|
|
+ if (e == 0) {
|
|
|
+ this.list1 = []
|
|
|
+ } else {
|
|
|
+ this.list2 = []
|
|
|
+ }
|
|
|
+ this.courseLists()
|
|
|
+ // let recommendId = e == 0 ? this.courseId : this.bankId
|
|
|
+ // this.getSubjectList(recommendId)
|
|
|
},
|
|
|
updateHomePlan() {
|
|
|
this.$refs.home.init();
|