暂存
This commit is contained in:
@@ -92,7 +92,45 @@
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<u-divider v-if="preClassList.length == 0 && learningClassList.length == 0" text="暂无数据"></u-divider>
|
||||
<view class="" v-if="examingClassList.length > 0">
|
||||
<uni-section class="mb-10 nobg" title="考试中" type="line"></uni-section>
|
||||
<view class="learnBox">
|
||||
<view class="newBox" v-if="examingClassList.length > 0">
|
||||
<view class="item flexbox" v-for="(item, index) in examingClassList" :key="index"
|
||||
@click="onPageJump('/pages/miniClass/classInfoMan',item)">
|
||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||
<view class="imgcontainer" v-if="item.icon != ''">
|
||||
<image :src="item.icon" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="imgcontainer defaultImg" v-else>
|
||||
<image src="@/static/my_04.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="buyItems">
|
||||
<view class="">
|
||||
<text v-show="item.classModel.type == 0">【普通班】</text>
|
||||
<text v-show="item.classModel.type == 1">【联合班】</text>
|
||||
<text v-show="item.classModel.type == 2">【精英班】</text>
|
||||
<text class="txt555" @click="onPageJump('/pages/miniClass/classInfoMan',item)">
|
||||
{{item.title}}
|
||||
</text>
|
||||
</view>
|
||||
<view class="jianjie">
|
||||
目标学员人数:{{item.number}} 人
|
||||
</view>
|
||||
<view class="jianjie">
|
||||
班内职务:{{item.roleName}}
|
||||
</view>
|
||||
<view class="btn_box">
|
||||
<!-- <text @click="enterClass" v-show="item.state == '0'">一键加入</text> -->
|
||||
<text class="seeInfo">进入班级</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<u-divider v-if="preClassList.length == 0 && learningClassList.length == 0 && examingClassList.length == 0" text="暂无数据"></u-divider>
|
||||
</view>
|
||||
|
||||
<!-- 过期班级 -->
|
||||
@@ -231,7 +269,8 @@
|
||||
page: 1,
|
||||
flag: true, // 函数是否执行完
|
||||
roleObj:{},
|
||||
roleCode:undefined
|
||||
roleCode:undefined,
|
||||
examingClassList:[]
|
||||
};
|
||||
},
|
||||
//第一次加载
|
||||
@@ -257,12 +296,12 @@
|
||||
}
|
||||
// console.log(this.scrollTop,'this.scrollTop')
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
async onPullDownRefresh() {
|
||||
console.log('下拉刷新')
|
||||
// this.status = 3
|
||||
// this.page = 1
|
||||
// this.classList = []
|
||||
// this.getData()
|
||||
this.classList = await this.getData('1','2')
|
||||
this.learningClassList = await this.getData('1','1')
|
||||
this.preClassList = await this.getData('1','0')
|
||||
this.examingClassList = await this.getData('1','3')
|
||||
uni.stopPullDownRefresh()
|
||||
},
|
||||
onReachBottom() {
|
||||
@@ -280,10 +319,11 @@
|
||||
// 隐藏原生的tabbar
|
||||
// uni.hideTabBar();
|
||||
this.roleCode = await this.getUserRole()
|
||||
// console.log('this.roleCode----',this.roleCode);
|
||||
console.log('this.roleCode----',this.roleCode);
|
||||
this.classList = await this.getData('1','2')
|
||||
this.learningClassList = await this.getData('1','1')
|
||||
this.preClassList = await this.getData('1','0')
|
||||
this.examingClassList = await this.getData('1','3')
|
||||
// this.getLearingClassList()
|
||||
},
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user