暂存
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<!-- <text class="" @click="showSubmit">提交证件资料</text> -->
|
||||
<!-- <view class="stickyyy" offset-top="60" v-if="buyCourseMsg != ''">
|
||||
<text>{{buyCourseMsg}} 课程未购买</text>
|
||||
</view> -->
|
||||
</view> -->
|
||||
<view :class="['classStatus',
|
||||
thisClass.state == '0' ? 'daikai' :'',
|
||||
thisClass.state == '1' ? 'xuexizhong' :'',
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<view class="className">
|
||||
<h3>{{thisClass.title}}</h3>
|
||||
<text class="tuichu" v-if="thisClass.state == 0 && isHave" @click="outClass()">退出班级</text>
|
||||
<text class="tuichu" v-if="thisClass.state == '0' && isHave" @click="outClass()">退出班级</text>
|
||||
</view>
|
||||
<view class="otherItems flex_box">
|
||||
<view v-if="thisClass.state == '0'">
|
||||
@@ -184,7 +184,7 @@
|
||||
</view>
|
||||
<!-- 课程列表 -->
|
||||
<view class="" v-if="tabId == '0'">
|
||||
<uni-section class="mb-10 nobg nopad" title="班内课程" type="line"></uni-section>
|
||||
<!-- <uni-section class="mb-10 nobg nopad" title="班内课程" type="line"></uni-section> -->
|
||||
<view class="newBox" v-show="courses.length > 0 ">
|
||||
<view class="item flexbox" v-for="(item, index) in courses" :key="index"
|
||||
@click="onPageJump('/pages/course/courseDetail',item.id)">
|
||||
@@ -221,6 +221,10 @@
|
||||
<!-- 班内同学 -->
|
||||
<template v-if="tabId == '2'">
|
||||
<template v-if="students.length> 0">
|
||||
<view class="" style=" overflow: hidden; margin:20rpx 0">
|
||||
<text style="font-size: 26rpx; color: #666;">共 {{students.length}} 名学员</text>
|
||||
<!-- <uni-section class="mb-10 nobg xueyuanTitle" title="班内学员" type="line" sub-title=""></uni-section> -->
|
||||
</view>
|
||||
<view class="classMateBox" v-if="(thisClass.state == '0' || thisClass.state == '1')">
|
||||
<view class="newBox flexbox">
|
||||
<view :class="['item']" v-for="(item, index) in students" :key="index">
|
||||
@@ -244,7 +248,7 @@
|
||||
</view>
|
||||
<sutdent-score-list :students="students" :classModel="classModel" :tabId="tabId"
|
||||
:thisClass="thisClass" @chooseStudent="chooseStudent"
|
||||
v-if="(thisClass.state == '3' || thisClass.state == '2')"></sutdent-score-list>
|
||||
v-if="(thisClass.state == '3' || thisClass.state == '2') && students.length > 0"></sutdent-score-list>
|
||||
</template>
|
||||
<view class="" v-else>
|
||||
<u-divider text="暂无学员加入"></u-divider>
|
||||
@@ -759,12 +763,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
async onPullDownRefresh() {
|
||||
// this.curTagIndex = 0
|
||||
|
||||
console.log('this.tabId------', this.tabId);
|
||||
this.getClassInfo()
|
||||
this.getScore()
|
||||
var ll = await this.getPaperList()
|
||||
// this.pPage = 0
|
||||
// this.taskList = []
|
||||
// this.getList()
|
||||
@@ -1034,6 +1039,7 @@
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
console.log('课程购买情况',res);
|
||||
if (res.code == 0) {
|
||||
if (res.msg != '') {
|
||||
msg = res.msg
|
||||
@@ -1107,7 +1113,7 @@
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
// console.log('获取试卷列表', res);
|
||||
console.log('获取试卷列表', res);
|
||||
this.paperList = res.examPaper
|
||||
if (this.paperList.length > 0) {
|
||||
var _list = [...this.paperList]
|
||||
@@ -1753,8 +1759,7 @@
|
||||
})
|
||||
.then(async res => {
|
||||
if (res.code == 0) {
|
||||
|
||||
this.isHave = true
|
||||
// this.isHave = true
|
||||
uni.showToast({
|
||||
title: `加入成功!`,
|
||||
icon: 'success'
|
||||
@@ -1763,13 +1768,18 @@
|
||||
this.getClassInfo()
|
||||
this.buyCourseMsg = await this.checkUserCourse()
|
||||
}, 200)
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: res.errMsg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch(e => {
|
||||
console.log(e, '数据报错')
|
||||
// this.status = 3
|
||||
uni.showToast({
|
||||
title: `加入失败`,
|
||||
icon: 'error'
|
||||
title: e.errMsg,
|
||||
icon: 'none'
|
||||
})
|
||||
});
|
||||
},
|
||||
@@ -1870,7 +1880,7 @@
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
that.isHave = true
|
||||
// that.isHave = true
|
||||
uni.showToast({
|
||||
title: `退出成功!`,
|
||||
icon: 'success'
|
||||
@@ -2009,7 +2019,17 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "@/style/mixin.scss";
|
||||
|
||||
::v-deep .xueyuanTitle {
|
||||
.uni-section-header {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.uni-section-content {
|
||||
float: right;
|
||||
margin-top: 20rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
}
|
||||
.score {
|
||||
color: #55aaff;
|
||||
font-size: 30rpx !important;
|
||||
|
||||
Reference in New Issue
Block a user