暂存
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
@click="curseClick(item)" :key="index">{{item.title}}</text>
|
||||
</view>
|
||||
<view class="learnBox box">
|
||||
<view class="newBox">
|
||||
<view class="item flexbox" v-for="(item, index) in courseList" :key="index" >
|
||||
<view class="newBox" v-if="classList.length > 0">
|
||||
<view class="item flexbox" v-for="(item, index) in classList" :key="index" >
|
||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||
<view class="imgcontainer" v-if="item.icon != ''">
|
||||
<image :src="item.icon" mode="aspectFit"></image>
|
||||
@@ -45,15 +45,16 @@
|
||||
<!-- <view class="jianjie" v-html="item.content">
|
||||
</view> -->
|
||||
<view class="btn_box" >
|
||||
<text @click="enterClass" v-show="item.state == '0'">一键加入</text>
|
||||
<text class="seeInfo" @click="onPageJump('/pages/miniClass/classInfo',item.id)">查看班内情况</text>
|
||||
<!-- <text @click="enterClass" v-show="item.state == '0'">一键加入</text> -->
|
||||
<text class="seeInfo" @click="onPageJump('/pages/miniClass/classInfo',item.id)">进入班级</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <u-divider v-show="status == 2" text="已加载全部"></u-divider>
|
||||
<u-divider v-show="status == 3" text="暂无数据"></u-divider>
|
||||
<u-divider v-show="status == 1" text="加载中..."></u-divider> -->
|
||||
<u-divider v-else text="暂无数据"></u-divider>
|
||||
<!-- <u-divider v-show="status == 2" text="已加载全部"></u-divider> -->
|
||||
<!-- <u-divider v-show="status == 3" text="暂无数据"></u-divider> -->
|
||||
<!-- <u-divider v-show="status == 1" text="加载中..."></u-divider> -->
|
||||
</view>
|
||||
<view>
|
||||
<!-- <u-back-top scroll-top="100"></u-back-top> -->
|
||||
@@ -128,7 +129,7 @@
|
||||
tabList: [
|
||||
{name:'普通小班', id:'0'},{name:'联合班', id:'1'},{name:'精英班',id:'2'}],
|
||||
curTagId: 0,
|
||||
courseList: [],
|
||||
classList: [],
|
||||
status: 3, // 0 不显示, 1 加载中,2 加载全部完成,3 暂无数据
|
||||
page: 1,
|
||||
flag: true, // 函数是否执行完
|
||||
@@ -161,7 +162,7 @@
|
||||
console.log('下拉刷新')
|
||||
// this.status = 3
|
||||
// this.page = 1
|
||||
this.courseList = []
|
||||
this.classList = []
|
||||
this.getData()
|
||||
uni.stopPullDownRefresh()
|
||||
},
|
||||
@@ -222,7 +223,7 @@
|
||||
},
|
||||
curseClick(item) {
|
||||
this.subTabId = item.id
|
||||
this.courseList = []
|
||||
this.classList = []
|
||||
this.page = 1
|
||||
this.getData(this.subTabId);
|
||||
},
|
||||
@@ -251,16 +252,16 @@
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
if (res.classEntityList.length > 0) {
|
||||
this.courseList = res.classEntityList
|
||||
this.classList = res.classEntityList
|
||||
// var list = res.classEntityList
|
||||
// this.courseList = this.courseList.concat(list)
|
||||
// this.classList = this.classList.concat(list)
|
||||
// if (res.courses.pages > this.page) {
|
||||
// this.status = 0
|
||||
// } else {
|
||||
// this.status = 2
|
||||
// }
|
||||
}else{
|
||||
this.courseList = []
|
||||
this.classList = []
|
||||
}
|
||||
// else if (this.page > 1) {
|
||||
// this.status = 2 // 加载完成
|
||||
|
||||
Reference in New Issue
Block a user