暂存
This commit is contained in:
@@ -53,9 +53,9 @@
|
||||
</view>
|
||||
<!-- 待开班班长 -->
|
||||
<view class="stepBox" v-if="thisClass.state == '0' && (roleCode.includes('1') || roleCode.includes('2'))">
|
||||
<h3 class="PM_font threeStepTitle">3步操作快速开班</h3>
|
||||
<h3 class="PM_font threeStepTitle">快速开班流程</h3>
|
||||
<view class="flex_box item">
|
||||
<i class="PM_font stepItem">1.</i>
|
||||
<!-- <i class="PM_font stepItem">1.</i> -->
|
||||
<view class="textBox">
|
||||
<text class="PM_font">设置班委</text><br/>
|
||||
<span>开班之前需要完成副班长、学委、评分员的任命</span>
|
||||
@@ -70,8 +70,8 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex_box item">
|
||||
<i class="PM_font stepItem">2.</i>
|
||||
<view class="flex_box item" v-if="classModel.isTask == 1">
|
||||
<!-- <i class="PM_font stepItem">2.</i> -->
|
||||
<view class="textBox">
|
||||
<text class="PM_font">作业设置</text><br/>
|
||||
<span>根据教学时长,至少发布{{thisClass.homeWorkNumber}}条作业</span>
|
||||
@@ -88,7 +88,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex_box item">
|
||||
<i class="PM_font stepItem">3.</i>
|
||||
<!-- <i class="PM_font stepItem">3.</i> -->
|
||||
<view class="textBox">
|
||||
<text class="PM_font">招收学员</text><br/>
|
||||
<span>班级内学员人满后可开班</span>
|
||||
@@ -104,10 +104,10 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex_box" v-if="thisClass.state == '1'">
|
||||
<view class="item fabuhomework" @click="goTaskListForWait('0')" v-if="thisClass.state == '1'">
|
||||
<view class="item fabuhomework" @click="goTaskListForWait('0')" v-if="thisClass.state == '1' && classModel.isTask == 1">
|
||||
<text>作业列表</text>
|
||||
</view>
|
||||
<view class="item yianList" @click="goTaskListForWait('1')" v-if="thisClass.state == '1'">
|
||||
<view class="item yianList" @click="goTaskListForWait('1')" v-if="thisClass.state == '1' && classModel.isMedicalcase == 1">
|
||||
<text>医案列表</text>
|
||||
</view>
|
||||
<view class="item setBanewei" v-if="thisClass.state != '2'"
|
||||
@@ -124,7 +124,7 @@
|
||||
|
||||
</view>
|
||||
<!-- 作业批改 -->
|
||||
<class-infoWork-blank v-if="thisClass.state != '0'" :thisClass="thisClass" :roleCode="roleCode"></class-infoWork-blank>
|
||||
<class-infoWork-blank v-if="thisClass.state != '0'" :thisClass="thisClass" :classModel="classModel" :roleCode="roleCode"></class-infoWork-blank>
|
||||
</view>
|
||||
<view class="mainBox">
|
||||
<view class="">
|
||||
@@ -135,6 +135,20 @@
|
||||
<!-- 学员列表 -->
|
||||
<view class="" v-if="tabId == '2'">
|
||||
<view class="classMateBox" v-show="students.length> 0 ">
|
||||
<view class="flex_box tips">
|
||||
<view class="item flex_box">
|
||||
<span class=""></span><text>普通用户</text>
|
||||
</view>
|
||||
<view class="item flex_box">
|
||||
<span class="superVip"></span><text>超级VIP</text>
|
||||
</view>
|
||||
<view class="item flex_box">
|
||||
<span class="wumenVip"></span><text>医学VIP</text>
|
||||
</view>
|
||||
<view class="item flex_box">
|
||||
<span class="zmVip"></span><text>国学VIP</text>
|
||||
</view>
|
||||
</view>
|
||||
<uni-section class="mb-10 nobg xueyuanTitle" title="班内学员" type="line" sub-title="">共 {{students.length}} 名学员</uni-section>
|
||||
<view class="newBox" >
|
||||
<view
|
||||
@@ -784,7 +798,7 @@ import { ref, onMounted } from 'vue';
|
||||
let that = this
|
||||
if (statusCode == '1') {
|
||||
console.log('this.admins',this.admins);
|
||||
if(this.homeWorkList.length == 0){
|
||||
if(this.homeWorkList.length == 0 && this.classModel.isTask == 1){
|
||||
uni.showToast({
|
||||
title: '开班前请发布班内作业,开班后将不可添加和更改',
|
||||
icon: 'none',
|
||||
@@ -792,19 +806,7 @@ import { ref, onMounted } from 'vue';
|
||||
})
|
||||
return
|
||||
}
|
||||
if (this.students.length < this.thisClass.number) {
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content:'班内成员还没有招满,确定开班操作吗?',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
that.opClass(statusCode)
|
||||
}else{
|
||||
return
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
}else if(statusCode == '2'){
|
||||
var nowTime = Date.now()
|
||||
var datecc = new Date(this.thisClass.endTime);
|
||||
@@ -850,8 +852,8 @@ import { ref, onMounted } from 'vue';
|
||||
title: '操作成功',
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.getClassInfo()
|
||||
setTimeout( () => {
|
||||
this.getClassInfo()
|
||||
}, 500)
|
||||
}else{
|
||||
uni.showToast({
|
||||
@@ -905,7 +907,7 @@ import { ref, onMounted } from 'vue';
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.getClassInfo()
|
||||
that.getClassInfo()
|
||||
}, 2000)
|
||||
}
|
||||
}).catch(e => {
|
||||
@@ -1128,6 +1130,14 @@ import { ref, onMounted } from 'vue';
|
||||
background-image: linear-gradient(-90deg, #258feb 0%, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0) 100%);
|
||||
|
||||
}
|
||||
.tips{
|
||||
padding:20rpx 10rpx ; background-color: #eee; border-radius: 10rpx;
|
||||
font-size: 24rpx; color: #666; margin: 20rpx 0; margin-bottom: 30rpx;
|
||||
|
||||
.item{align-items: center;}
|
||||
|
||||
span{display: inline-block; margin-right: 10rpx; border-radius: 4rpx;; width: 30rpx; height: 30rpx; background-color: #fff; border: 1px solid #999;}
|
||||
}
|
||||
.daikaibtn{
|
||||
.item{ padding: 10rpx 6rpx;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user