暂存
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<public-module></public-module>
|
||||
<z-nav-bar title="班级详情"></z-nav-bar>
|
||||
<z-nav-bar title="班级详情"></z-nav-bar>
|
||||
<view class="mainContent" v-if="thisClass.id">
|
||||
<view :class="['classStatus',
|
||||
this.thisClass.state == 0 ? 'daikai' :'',
|
||||
@@ -11,14 +11,23 @@
|
||||
班级状态:{{getClassStatus}}
|
||||
</view>
|
||||
<view class="className">
|
||||
<h3>{{thisClass.title}}</h3>
|
||||
<text class="tuichu" v-if="isHave && thisClass.state == 0" @click="outClass()">退出班级</text>
|
||||
</view>
|
||||
<view class="gotoExams" v-if="thisClass.state == '2'">
|
||||
<text>去考试</text>
|
||||
<h3>{{thisClass.title}}</h3>
|
||||
<text class="tuichu" v-if="thisClass.state == 0" @click="outClass()">退出班级</text>
|
||||
</view>
|
||||
<!-- <view class="gotoExams" v-if="thisClass.state == '2'">
|
||||
<text>去考试</text>
|
||||
</view> -->
|
||||
<view class="otherItems flex_box">
|
||||
<view><text class="ciyao">创建日期</text><text
|
||||
<view v-if="thisClass.state == 0">
|
||||
<text class="ciyao">创建日期</text><text
|
||||
class="mainTxt">{{thisClass.createTime.substring(0,10)}}</text>
|
||||
</view>
|
||||
<view v-if="thisClass.state == 1">
|
||||
<text class="ciyao">开班日期</text><text
|
||||
class="mainTxt">{{thisClass.createTime.substring(0,10)}}</text>
|
||||
</view>
|
||||
<view v-if="thisClass.state == 2">
|
||||
<text class="ciyao">结班日期</text><text
|
||||
class="mainTxt">{{thisClass.createTime.substring(0,10)}}</text>
|
||||
</view>
|
||||
<view><text class="ciyao">班级类型</text>
|
||||
@@ -26,29 +35,32 @@
|
||||
<text class="mainTxt" v-if="classModel.type == '1'">联合班</text>
|
||||
<text class="mainTxt" v-if="classModel.type == '2'">精英班</text>
|
||||
</view>
|
||||
<view><text class="ciyao">人数</text><text class="mainTxt">{{students.length}}/{{thisClass.number}}人</text></view>
|
||||
<view><text class="ciyao">人数</text><text
|
||||
class="mainTxt">{{students.length}}/{{thisClass.number}}人</text></view>
|
||||
<view><text class="ciyao">管理成员</text><text class="mainTxt" @click="seeManager">点击查看</text></view>
|
||||
</view>
|
||||
<view class="pingfenBox" >
|
||||
<view class="pingfenBox" v-if="thisClass.state != 0">
|
||||
<view class="scoreTitle">
|
||||
<view class="titles flex_box">
|
||||
<text>表现分</text><uni-icons type="help" size="18" color="#fff" @click="clickHelp"></uni-icons>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="otherItems flex_box userScore">
|
||||
<view>
|
||||
<text class="ciyao">作业得分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.task0Score}}</i>分</text>
|
||||
<view class="otherItems flex_box userScore">
|
||||
<view>
|
||||
<text class="ciyao">作业得分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.task0Score}}</i>分</text>
|
||||
</view>
|
||||
<view><text class="ciyao">医案得分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.task1Score}}</i>分</text>
|
||||
</view>
|
||||
<view><text class="ciyao">心得得分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.experienceScore}}</i>分</text>
|
||||
</view>
|
||||
<view><text class="ciyao">思考题分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.questionScore}}</i>分</text>
|
||||
</view>
|
||||
</view>
|
||||
<view><text class="ciyao">医案得分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.task1Score}}</i>分</text>
|
||||
</view>
|
||||
<view><text class="ciyao">心得得分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.experienceScore}}</i>分</text></view>
|
||||
<view><text class="ciyao">思考题分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.questionScore}}</i>分</text></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mainBox">
|
||||
<view class="">
|
||||
@@ -59,36 +71,37 @@
|
||||
<!-- 课程列表 -->
|
||||
<view class="" v-if="tabId == '0'">
|
||||
<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)">
|
||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||
<view class="imgcontainer">
|
||||
<image :src="item.image" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="buyItems">
|
||||
<view class="txt555">
|
||||
{{item.title}}
|
||||
<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)">
|
||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||
<view class="imgcontainer">
|
||||
<image :src="item.image" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="buyItems">
|
||||
<view class="txt555">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="jianjie" v-html="item.content"></view>
|
||||
</view>
|
||||
<view class="jianjie" v-html="item.content"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-if="classModel.days > 0" style="text-align: center; color: #999; font-size: 28rpx;">
|
||||
——— 教学时长:{{classModel.days}} 天 ———
|
||||
<view class="" v-if="classModel.days > 0"
|
||||
style="text-align: center; color: #999; font-size: 28rpx;">
|
||||
——— 教学时长:{{classModel.days}} 天 ———
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-show="courses.length == 0">
|
||||
<u-divider text="暂无课程"></u-divider>
|
||||
</view>
|
||||
<!-- <view class="" v-if="thisClass.content != ''">
|
||||
<view class="" v-show="courses.length == 0">
|
||||
<u-divider text="暂无课程"></u-divider>
|
||||
</view>
|
||||
<!-- <view class="" v-if="thisClass.content != ''">
|
||||
<text class="adminName">教学目标/班级简介</text>
|
||||
</view> -->
|
||||
<uni-section class="mb-10 nobg" title="教学目标/班内简介" type="line"></uni-section>
|
||||
<rich-text class="banjiJianjie" :nodes="formatRichText(thisClass.content)"></rich-text>
|
||||
<view class="qrcode" v-if="thisClass.qrcode != ''">
|
||||
<uni-section class="mb-10 nobg" title="群二维码" type="line"></uni-section>
|
||||
<image :src="thisClass.qrcode" mode="widthFix"></image>
|
||||
</view>
|
||||
<uni-section class="mb-10 nobg" title="教学目标/班内简介" type="line"></uni-section>
|
||||
<rich-text class="banjiJianjie" :nodes="formatRichText(thisClass.content)"></rich-text>
|
||||
<view class="qrcode" v-if="thisClass.qrcode != ''">
|
||||
<uni-section class="mb-10 nobg" title="群二维码" type="line"></uni-section>
|
||||
<image :src="thisClass.qrcode" mode="widthFix"></image>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 班内问答 -->
|
||||
<view class="" v-if=" tabId == '1'">
|
||||
@@ -100,14 +113,15 @@
|
||||
<view :class="['item','flexbox']" v-for="(item, index) in students" :key="index">
|
||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||
<view class="classmateImg">
|
||||
<image v-if="item.student.avatar != null && item.student.avatar != ''" :src="item.student.avatar"
|
||||
mode="aspectFit"></image>
|
||||
<image v-if="item.student.avatar != null && item.student.avatar != ''"
|
||||
:src="item.student.avatar" mode="aspectFit"></image>
|
||||
<image v-else src="/static/icon/morenAvavter.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="textItems flex_box">
|
||||
<text class="txt555" v-if="item.student.nickname != null && item.student.nickname != ''">
|
||||
<text class="txt555"
|
||||
v-if="item.student.nickname != null && item.student.nickname != ''">
|
||||
{{item.student.nickname}}
|
||||
</text>
|
||||
</text>
|
||||
<text v-else>匿名用户</text>
|
||||
</view>
|
||||
|
||||
@@ -118,14 +132,14 @@
|
||||
<u-divider text="暂无学员加入"></u-divider>
|
||||
</view>
|
||||
<!-- 班内提交 -->
|
||||
<view class="" v-if=" tabId == '3'">
|
||||
<view class="" v-if=" tabId == '3' && thisClass.state != '0'">
|
||||
<view class="flex_box tijiaoTitle">
|
||||
<text :class="tijiaoTitleId == item.id ? 'active' :''" @click="titleClick(item,index)"
|
||||
v-for="(item, index) in tijiaoTitleList" :key="index">{{item.name}}</text>
|
||||
</view>
|
||||
<!-- 班内任务 --><!-- 医案 --> <!-- 心得 -->
|
||||
<!-- 班内任务 --><!-- 医案 --> <!-- 心得 -->
|
||||
<view class="">
|
||||
<view class="" v-if="tijiaoTitleId == 2 && thisClass.state != 2" >
|
||||
<view class="" v-if="tijiaoTitleId == 2 && thisClass.state == '1'">
|
||||
<view class="noanser">
|
||||
<view class="">
|
||||
<text>快来添加一条记录吧~</text>
|
||||
@@ -136,38 +150,40 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-if="tijiaoTitleId == 2" style="margin: 20rpx 0;">
|
||||
<radio-group @change="radioChange1" class="flex_box">
|
||||
<radio-group @change="radioChange1" class="flex_box">
|
||||
<view class="" style="margin-right:20rpx ;">
|
||||
<radio value="0" checked="true" />全部同学的</label>
|
||||
<radio value="0" checked="true" />全部同学的</label>
|
||||
</view>
|
||||
<view class="">
|
||||
<radio value="1" />只看我自己的</label>
|
||||
</view>
|
||||
<radio value="1" />只看我自己的</label>
|
||||
</view>
|
||||
</radio-group>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- <uni-section class="mb-10 nobg" title="任务列表" type="line"></uni-section> -->
|
||||
<view v-if="taskList.length > 0 ">
|
||||
<view v-if="taskList.length > 0 ">
|
||||
<view class="submitRecode">
|
||||
<view class="newBox">
|
||||
<view class="item " v-for="(item, index) in taskList" @click="clickTask(item)">
|
||||
<view class="leve1 flex_box">
|
||||
<text>{{item.title}}</text>
|
||||
<text>{{item.title}}</text>
|
||||
</view>
|
||||
<view class="leve2">
|
||||
{{item.content}}
|
||||
</view>
|
||||
<view class="leve3" >
|
||||
{{item.content}}
|
||||
</view>
|
||||
<view class="leve3">
|
||||
<view class="tips flex_box">
|
||||
<!-- <text>发布者:{{item.createUser.nickname != null && item.createUser.nickname != '' ? item.createUser.nickname : '匿名用户'}}</text> -->
|
||||
<text style="" class="date">日期:{{item.createTime}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="">
|
||||
<view class="score" v-if="item.scoreSuccess == 1">
|
||||
分数:{{item.score}}
|
||||
</view>
|
||||
</view>
|
||||
<text class="btn" v-show="tijiaoTitleId == 2 && myExperience == 1 && item.scoreSuccess == 0" @click.stop="editMyXinde(item)" >修改</text>
|
||||
<text class="btn"
|
||||
v-show="tijiaoTitleId == 2 && myExperience == 1 && item.scoreSuccess == 0"
|
||||
@click.stop="editMyXinde(item)">修改</text>
|
||||
</view>
|
||||
<view class="leve3" v-show="item.reply && tijiaoTitleId != 2">
|
||||
<text>已提交答案</text>
|
||||
@@ -177,9 +193,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</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>
|
||||
@@ -187,14 +203,14 @@
|
||||
<u-divider text="暂无数据"></u-divider>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottomBox" v-if="!isHave && !isDirector && !isMonitor && students.length < thisClass.number">
|
||||
<view class="bottomBox" v-if=" thisClass.state == '0'&& students.length < thisClass.number">
|
||||
<button type="primary" @click="addClass">一键加入班级</button>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 管理弹出 -->
|
||||
<u-popup key="1" :show="showMan" :round="10" @close="closeManager">
|
||||
<view class="guanli">
|
||||
@@ -210,13 +226,14 @@
|
||||
<view class="item">
|
||||
<text class="adminName">副班长:</text>
|
||||
<view class="personbox" v-if="admins.dmonitor.user != null">
|
||||
<text>{{admins.dmonitor.user.nickname != null && admins.dmonitor.user.nickname != '' ? admins.dmonitor.user.nickname : '匿名用户'}}</text> -->
|
||||
<text>({{admins.dmonitor.user.tel}})</text>
|
||||
<text>{{admins.dmonitor.user.nickname != null && admins.dmonitor.user.nickname != '' ? admins.dmonitor.user.nickname : '匿名用户'}}</text>
|
||||
-->
|
||||
<text>({{admins.dmonitor.user.tel}})</text>
|
||||
</view>
|
||||
<text v-else>暂未设置</text>
|
||||
</view>
|
||||
<view class="item"><text class="adminName">学习委员:</text>
|
||||
|
||||
|
||||
<view class="personbox" v-if="admins.learner.user != null">
|
||||
<text>{{admins.learner.user.nickname != null && admins.learner.user.nickname != '' ? admins.learner.user.nickname : '匿名用户'}}</text>
|
||||
<text>({{admins.learner.user.tel}})</text>
|
||||
@@ -238,8 +255,8 @@
|
||||
<template v-if="admins.scorer.length > 0">
|
||||
<view class="arryItemSub" v-for="(item,index) in admins.scorer" :key="index">
|
||||
<template v-if="item.user != null">
|
||||
<text>{{item.user.nickname != null && item.user.nickname != '' ? item.user.nickname : '匿名用户'}}</text>
|
||||
<text>({{item.user.tel}}) </text>
|
||||
<text>{{item.user.nickname != null && item.user.nickname != '' ? item.user.nickname : '匿名用户'}}</text>
|
||||
<text>({{item.user.tel}}) </text>
|
||||
</template>
|
||||
</view>
|
||||
</template>
|
||||
@@ -247,8 +264,8 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<z-navigation ></z-navigation>
|
||||
|
||||
<z-navigation></z-navigation>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -260,12 +277,12 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
|
||||
horizontal: 'right',
|
||||
vertical: 'bottom',
|
||||
direction: 'vertical',
|
||||
status:88,
|
||||
loadFlag:false,
|
||||
status: 88,
|
||||
loadFlag: false,
|
||||
pattern: {
|
||||
color: '#7A7E83',
|
||||
backgroundColor: '#fff',
|
||||
@@ -292,10 +309,9 @@
|
||||
tabId: '3',
|
||||
curTagIndex: 0,
|
||||
scrollable: false,
|
||||
pPage:0,
|
||||
pPage: 0,
|
||||
// 已开班
|
||||
tabList02: [
|
||||
{
|
||||
tabList02: [{
|
||||
name: '班内提交',
|
||||
id: '3'
|
||||
},
|
||||
@@ -310,7 +326,7 @@
|
||||
{
|
||||
name: '班内学员',
|
||||
id: '2'
|
||||
}
|
||||
}
|
||||
],
|
||||
// 待开班
|
||||
tabList01: [{
|
||||
@@ -334,7 +350,7 @@
|
||||
scorer: [],
|
||||
counter: []
|
||||
|
||||
},
|
||||
},
|
||||
activeStyle: {
|
||||
color: '#333',
|
||||
fontWeight: 'bold',
|
||||
@@ -365,14 +381,14 @@
|
||||
},
|
||||
],
|
||||
tijiaoTitleId: '0',
|
||||
taskList:[], // 任务列表
|
||||
taskHaveMore:false, // 是否还有更多
|
||||
myExperience:'0',
|
||||
performanceScore:{
|
||||
taskList: [], // 任务列表
|
||||
taskHaveMore: false, // 是否还有更多
|
||||
myExperience: '0',
|
||||
performanceScore: {
|
||||
task1Score: 0,
|
||||
experienceScore: 0,
|
||||
task0Score: 0,
|
||||
questionScore: 0
|
||||
experienceScore: 0,
|
||||
task0Score: 0,
|
||||
questionScore: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -380,12 +396,19 @@
|
||||
uni.hideTabBar();
|
||||
this.classId = e.id
|
||||
this.getUserInfo()
|
||||
uni.$on('refreshData',() => {
|
||||
uni.$on('refreshData', () => {
|
||||
console.log('开始刷新列表数据');
|
||||
this.pPage = 0
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
})
|
||||
this.pPage = 0
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
})
|
||||
// uni.$on('refreshUserAnswerList',() => {
|
||||
// console.log('开始刷新用户提交列表');
|
||||
// this.pPage = 0
|
||||
// this.taskList = []
|
||||
// this.getList()
|
||||
// })
|
||||
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.status != 2 && this.status != 3) {
|
||||
@@ -398,14 +421,14 @@
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
uni.stopPullDownRefresh()
|
||||
},
|
||||
onShow() {
|
||||
},
|
||||
onShow() {
|
||||
this.getClassInfo()
|
||||
this.getScore()
|
||||
},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
getClassStatus(){
|
||||
getClassStatus() {
|
||||
var _roleName = ''
|
||||
switch (this.thisClass.state) {
|
||||
case '0':
|
||||
@@ -416,15 +439,15 @@
|
||||
break;
|
||||
case '2':
|
||||
_roleName = '已结班';
|
||||
break;
|
||||
break;
|
||||
}
|
||||
return _roleName
|
||||
}
|
||||
,tabList(){
|
||||
},
|
||||
tabList() {
|
||||
var list = []
|
||||
if(this.thisClass.state == 0){
|
||||
if (this.thisClass.state == 0) {
|
||||
list = this.tabList01
|
||||
}else{
|
||||
} else {
|
||||
list = this.tabList02
|
||||
}
|
||||
return list
|
||||
@@ -432,7 +455,7 @@
|
||||
},
|
||||
methods: {
|
||||
// 查询平时表现分
|
||||
getScore(){
|
||||
getScore() {
|
||||
$http.request({
|
||||
url: "common/class/getUserScore",
|
||||
method: "POST",
|
||||
@@ -444,15 +467,15 @@
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if(res.code == 0){
|
||||
if (res.code == 0) {
|
||||
this.performanceScore = res.result
|
||||
console.log('this.performanceScore-------',this.performanceScore);
|
||||
}else{
|
||||
console.log('this.performanceScore-------', this.performanceScore);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '平时成绩获取失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
title: '平时成绩获取失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: '平时成绩获取失败',
|
||||
@@ -460,39 +483,36 @@
|
||||
})
|
||||
});
|
||||
},
|
||||
editMyXinde(item){
|
||||
editMyXinde(item) {
|
||||
// var options = JSON.stringify(item)
|
||||
uni.navigateTo({
|
||||
url:`/pages/miniClass/addHomeWork?id=${item.id}&type=2`
|
||||
url: `/pages/miniClass/addHomeWork?id=${item.id}&type=2`
|
||||
})
|
||||
},
|
||||
radioChange1(e){
|
||||
radioChange1(e) {
|
||||
this.myExperience = e.detail.value
|
||||
console.log('点了',this.myExperience);
|
||||
console.log('点了', this.myExperience);
|
||||
this.pPage = 0
|
||||
this.taskList = []
|
||||
this.getList()
|
||||
},
|
||||
goPingfen(url,classId,type){
|
||||
},
|
||||
goPingfen(url, classId, type) {
|
||||
uni.navigateTo({
|
||||
url:`${url}?classId=${classId}&type=${type}`
|
||||
url: `${url}?classId=${classId}&type=${type}`
|
||||
})
|
||||
},
|
||||
// 点击作业或者医案,进入详细介绍
|
||||
clickTask(item){
|
||||
var options = JSON.stringify(item)
|
||||
if(this.tijiaoTitleId == 2){
|
||||
clickTask(item) {
|
||||
// var options = JSON.stringify(item)
|
||||
if (this.tijiaoTitleId == 2) {
|
||||
// 进入的是心得
|
||||
uni.navigateTo({
|
||||
url:`/pages/miniClass/xindeDetail?options=${options}`
|
||||
url: `/pages/miniClass/xindeDetail?id=${item.id}`
|
||||
})
|
||||
return
|
||||
}
|
||||
console.log('this.tijiaoTitleId',this.tijiaoTitleId);
|
||||
|
||||
// console.log('options',options);
|
||||
}
|
||||
uni.navigateTo({
|
||||
url:`/pages/miniClass/taskDetail?id=${item.id}&`
|
||||
url: `/pages/miniClass/taskDetail?id=${item.id}&classState=${this.thisClass.state}`
|
||||
})
|
||||
},
|
||||
delClass() {
|
||||
@@ -532,7 +552,7 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
getList(){
|
||||
getList() {
|
||||
console.log('进入函数了吗');
|
||||
this.status = 1;
|
||||
if (this.loadFlag) {
|
||||
@@ -540,20 +560,20 @@
|
||||
return;
|
||||
}
|
||||
uni.showLoading({
|
||||
title:'加载中'
|
||||
title: '加载中'
|
||||
})
|
||||
this.loadFlag = true;
|
||||
this.pPage++;
|
||||
var data = {
|
||||
|
||||
"limit": 10,
|
||||
"page": this.pPage,
|
||||
"classId": this.thisClass.id,
|
||||
"type": this.tijiaoTitleId+'', //类型 0班内任务1医案2心得
|
||||
"myExperience": this.myExperience, //0全部心得1我的心得
|
||||
"title": ""
|
||||
}
|
||||
console.log('data',data);
|
||||
|
||||
"limit": 10,
|
||||
"page": this.pPage,
|
||||
"classId": this.thisClass.id,
|
||||
"type": this.tijiaoTitleId + '', //类型 0班内任务1医案2心得
|
||||
"myExperience": this.myExperience, //0全部心得1我的心得
|
||||
"title": ""
|
||||
}
|
||||
console.log('data', data);
|
||||
$http.request({
|
||||
url: "common/class/getClassTaskListStudent",
|
||||
method: "POST",
|
||||
@@ -564,11 +584,11 @@
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
if(res.page.records.length > 0){
|
||||
console.log('数据获取成功',res.page.records);
|
||||
if (res.page.records.length > 0) {
|
||||
console.log('数据获取成功', res.page.records);
|
||||
var lis = res.page.records
|
||||
this.taskList = this.taskList.concat(lis)
|
||||
if(res.page.pages > 1){
|
||||
if (res.page.pages > 1) {
|
||||
this.taskHaveMore = true
|
||||
}
|
||||
if (res.page.pages > this.pPage) {
|
||||
@@ -576,7 +596,7 @@
|
||||
} else {
|
||||
this.status = 2;
|
||||
}
|
||||
}else{
|
||||
} else {
|
||||
this.status = 3; // 暂无数据
|
||||
}
|
||||
this.loadFlag = false;
|
||||
@@ -595,7 +615,7 @@
|
||||
},
|
||||
titleClick(item, textIndex) {
|
||||
console.log('进来了吗');
|
||||
if(this.tijiaoTitleId == textIndex){
|
||||
if (this.tijiaoTitleId == textIndex) {
|
||||
return
|
||||
}
|
||||
this.tijiaoTitleId = textIndex
|
||||
@@ -622,8 +642,8 @@
|
||||
},
|
||||
// 添加心得
|
||||
addXinde(url, id, modeType) {
|
||||
uni.navigateTo({
|
||||
url: `${url}?classId=${this.thisClass.id}&type=${modeType}`
|
||||
uni.navigateTo({
|
||||
url: `${url}?classId=${this.thisClass.id}&type=${modeType}&sort=undefined`
|
||||
});
|
||||
},
|
||||
// 跳转
|
||||
@@ -635,11 +655,11 @@
|
||||
tabClick(e) {
|
||||
console.log('e', e);
|
||||
this.tabId = e.id
|
||||
if(e.id == 3){
|
||||
if (e.id == 3) {
|
||||
console.log('心得');
|
||||
this.getList()
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
formatRichText(html) {
|
||||
if (html == '') {
|
||||
@@ -735,7 +755,7 @@
|
||||
uni.navigateTo({
|
||||
url: `${_url}?id=${this.thisClass.id}&type=${_type}`
|
||||
})
|
||||
}, 200)
|
||||
}, 200)
|
||||
},
|
||||
// 改变班级状态
|
||||
changeClassStatu(statusCode) {
|
||||
@@ -783,7 +803,7 @@
|
||||
})
|
||||
});
|
||||
},
|
||||
taskEdit(item){
|
||||
taskEdit(item) {
|
||||
console.log('taskEdit'.item);
|
||||
},
|
||||
// 退出班级 // 踢出班级
|
||||
@@ -791,13 +811,13 @@
|
||||
let that = this
|
||||
var _useId = undefined
|
||||
var _txt = ''
|
||||
if (userId) {
|
||||
_useId = userId
|
||||
_txt = '即将踢出该学员,是否继续?'
|
||||
} else {
|
||||
_useId = this.userInfo.id
|
||||
_txt = '您即将退出当前班级,退出班级后,在本班级提交的作业、医案、心得都将被删除,是否继续?'
|
||||
}
|
||||
// if (userId) {
|
||||
// _useId = userId
|
||||
// _txt = '即将踢出该学员,是否继续?'
|
||||
// } else {
|
||||
_useId = this.userInfo.id
|
||||
_txt = '您即将退出当前班级,退出班级后,在本班级提交的作业、医案、心得都将被删除,是否继续?'
|
||||
// }
|
||||
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
@@ -844,17 +864,17 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
clickHelp(){
|
||||
clickHelp() {
|
||||
uni.showModal({
|
||||
title:'说明',
|
||||
content:"表现分占最终总成绩的40%,由作业,医案,心得,思考题四部分构成,每部分各占四分之一,且每部分最高为10分,总计40分。",
|
||||
showCancel:false,
|
||||
confirmText:'好的'
|
||||
title: '说明',
|
||||
content: "表现分占最终总成绩的40%,由作业,医案,心得,思考题四部分构成,每部分各占四分之一,且每部分最高为10分,总计40分。",
|
||||
showCancel: false,
|
||||
confirmText: '好的'
|
||||
})
|
||||
},
|
||||
showmoreTask(){
|
||||
showmoreTask() {
|
||||
uni.navigateTo({
|
||||
url:`/pages/miniClass/classCaskList?id=${this.thisClass.id}&type=${this.tijiaoTitleId}`
|
||||
url: `/pages/miniClass/classCaskList?id=${this.thisClass.id}&type=${this.tijiaoTitleId}`
|
||||
})
|
||||
},
|
||||
getClassInfo() {
|
||||
@@ -876,6 +896,11 @@
|
||||
if (res.code == 0) {
|
||||
this.isHave = res.result.isJoin
|
||||
this.thisClass = res.result.class
|
||||
if(this.thisClass.state == '0'){
|
||||
this.tabId = '0'
|
||||
}else{
|
||||
this.tabId = '3'
|
||||
}
|
||||
this.admins.list = res.result.admins
|
||||
this.admins.monitor = {}
|
||||
this.admins.dmonitor = {}
|
||||
@@ -909,7 +934,7 @@
|
||||
this.courses = res.result.courses
|
||||
this.students = res.result.students
|
||||
this.refresh = true
|
||||
if(this.thisClass.state != 0){
|
||||
if (this.thisClass.state != 0) {
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
@@ -930,7 +955,13 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "@/style/mixin.scss";
|
||||
.score{color: #55aaff; font-size: 30rpx !important; font-weight: bold;}
|
||||
|
||||
.score {
|
||||
color: #55aaff;
|
||||
font-size: 30rpx !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.flexbox {
|
||||
display: flex;
|
||||
}
|
||||
@@ -955,29 +986,73 @@
|
||||
color: #fff;
|
||||
font-weight: normal;
|
||||
}
|
||||
.classStatus{padding: 10rpx; color: #fff;}
|
||||
.daikai{background-image: linear-gradient(90deg, #258feb 0%, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0) 100% );}
|
||||
.xuexizhong{background-image: linear-gradient(90deg, #55aa00 0%, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0) 100% );}
|
||||
.yijieban{background-image: linear-gradient(90deg, #999 0%, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0) 100% );}
|
||||
.noanser{ padding: 20rpx;
|
||||
background-color: rgba(255, 255, 255, .6);
|
||||
text-align: center; border-bottom: 1px solid #eee;
|
||||
.btn{display: inline-block; border-radius: 20rpx ; padding: 10rpx 20rpx; background-color: $themeColor; color: #fff;}
|
||||
|
||||
.classStatus {
|
||||
padding: 10rpx;
|
||||
color: #fff;
|
||||
}
|
||||
.taskEdit{color: $themeColor; display: inline-block; padding-left: 20rpx;}
|
||||
.scoreTitle{text-align: center; margin-bottom: 20rpx;
|
||||
.titles{display: inline-block; padding: 6rpx 20rpx; background-color: #258feb;
|
||||
border-radius: 0 0 30rpx 30rpx ; color: #fff;
|
||||
text{ font-size: 40rpx !important;}
|
||||
}
|
||||
span{display: block;}
|
||||
|
||||
.daikai {
|
||||
background-image: linear-gradient(90deg, #258feb 0%, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0) 100%);
|
||||
}
|
||||
|
||||
.xuexizhong {
|
||||
background-image: linear-gradient(90deg, #55aa00 0%, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0) 100%);
|
||||
}
|
||||
|
||||
.yijieban {
|
||||
background-image: linear-gradient(90deg, #999 0%, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0) 100%);
|
||||
}
|
||||
|
||||
.noanser {
|
||||
padding: 20rpx;
|
||||
background-color: rgba(255, 255, 255, .6);
|
||||
text-align: center;
|
||||
border-bottom: 1px solid #eee;
|
||||
|
||||
.btn {
|
||||
display: inline-block;
|
||||
border-radius: 20rpx;
|
||||
padding: 10rpx 20rpx;
|
||||
background-color: $themeColor;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.taskEdit {
|
||||
color: $themeColor;
|
||||
display: inline-block;
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
|
||||
.scoreTitle {
|
||||
text-align: center;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.titles {
|
||||
display: inline-block;
|
||||
padding: 6rpx 20rpx;
|
||||
background-color: #258feb;
|
||||
border-radius: 0 0 30rpx 30rpx;
|
||||
color: #fff;
|
||||
|
||||
text {
|
||||
font-size: 40rpx !important;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.pingfenBox {
|
||||
border: 2px dotted #bed4ee;
|
||||
padding: 20rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding-top: 0;
|
||||
|
||||
.flex_box {
|
||||
justify-content: space-between;
|
||||
}
|
||||
@@ -1030,13 +1105,20 @@
|
||||
}
|
||||
|
||||
}
|
||||
.showMore{ width: 100%;
|
||||
text-align: center; margin: 20rpx 0;
|
||||
text{color: $themeColor;}
|
||||
|
||||
.showMore {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin: 20rpx 0;
|
||||
|
||||
text {
|
||||
color: $themeColor;
|
||||
}
|
||||
.submitRecode {
|
||||
}
|
||||
|
||||
.submitRecode {
|
||||
// padding: 20rpx;
|
||||
|
||||
|
||||
.newBox {
|
||||
.classmateImg {
|
||||
width: 40rpx !important;
|
||||
@@ -1062,22 +1144,44 @@
|
||||
margin-bottom: 20rpx;
|
||||
// .userName{}
|
||||
}
|
||||
.leve2{
|
||||
|
||||
.leve2 {
|
||||
color: #666;
|
||||
line-height: 56rpx;
|
||||
@include bov(3); padding-bottom: 6rpx;
|
||||
border-bottom: 1px dotted #eee !important;
|
||||
@include bov(3);
|
||||
padding-bottom: 6rpx;
|
||||
border-bottom: 1px dotted #eee !important;
|
||||
}
|
||||
.leve3{
|
||||
|
||||
color: $themeColor; text-align: center; padding-top: 10rpx;
|
||||
.tips{
|
||||
width: 100%; justify-content: space-between;font-size: 26rpx; color: #999;
|
||||
|
||||
.leve3 {
|
||||
|
||||
color: $themeColor;
|
||||
text-align: center;
|
||||
padding-top: 10rpx;
|
||||
|
||||
.tips {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
font-size: 26rpx;
|
||||
color: #999;
|
||||
}
|
||||
.date{ }
|
||||
.btn{border: 1px solid $themeColor; margin-top: 20rpx; display: inline-block; width: 50%; padding: 6rpx 0; border-radius: 10rpx;}
|
||||
|
||||
.date {}
|
||||
|
||||
.btn {
|
||||
border: 1px solid $themeColor;
|
||||
margin-top: 20rpx;
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
padding: 6rpx 0;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.leve3.no{color: #ff9277; text-align: center;}
|
||||
}
|
||||
|
||||
.leve3.no {
|
||||
color: #ff9277;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1085,8 +1189,13 @@
|
||||
.nobg {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.nopad{padding-left: 0 !important;}
|
||||
.bottomBox { border-top: 1px solid #eee;
|
||||
|
||||
.nopad {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
.bottomBox {
|
||||
border-top: 1px solid #eee;
|
||||
position: fixed;
|
||||
padding: 20rpx 0;
|
||||
text-align: center;
|
||||
@@ -1102,29 +1211,58 @@
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
}
|
||||
.userScore{ text-align: center;
|
||||
.mainTxt{font-size: 50rpx; color: $themeColor; font-style: normal; padding-right: 4rpx;}
|
||||
}
|
||||
.qrcode{width:100%;
|
||||
image{
|
||||
width: 200rpx;height: 200rpx;
|
||||
|
||||
|
||||
.userScore {
|
||||
text-align: center;
|
||||
|
||||
.mainTxt {
|
||||
font-size: 50rpx;
|
||||
color: $themeColor;
|
||||
font-style: normal;
|
||||
padding-right: 4rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.qrcode {
|
||||
width: 100%;
|
||||
|
||||
image {
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.mainContent {
|
||||
color: #333;
|
||||
color: #333;
|
||||
padding: 0 20rpx;
|
||||
padding-bottom:120rpx;
|
||||
padding-bottom: 120rpx;
|
||||
background-image: linear-gradient(30deg, #d4eaf0 0%, #d4eaf0 50%, #fdf0ed 100%);
|
||||
min-height: 100vh;
|
||||
}
|
||||
.gotoExams{ margin: 20rpx 0; margin-top: -10rpx;
|
||||
text{ display: block; text-align: center; width: 100%; border-radius: 10rpx; box-sizing: border-box; padding: 20rpx; color:#fff ;
|
||||
background-image: linear-gradient(-90deg, #576afc 0%, #97a1ff 100%);
|
||||
|
||||
.gotoExams {
|
||||
margin: 20rpx 0;
|
||||
margin-top: -10rpx;
|
||||
|
||||
text {
|
||||
display: block;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
border-radius: 10rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 20rpx;
|
||||
color: #fff;
|
||||
background-image: linear-gradient(-90deg, #576afc 0%, #97a1ff 100%);
|
||||
}
|
||||
}
|
||||
|
||||
.classMateBox {
|
||||
.newBox{justify-content: space-between; flex-wrap: wrap;}
|
||||
.newBox {
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.zmVip {
|
||||
background-image: linear-gradient(-60deg, #53966a 0%, #e1feef 50%, #e1feef 100%);
|
||||
}
|
||||
@@ -1138,7 +1276,7 @@
|
||||
}
|
||||
|
||||
.item {
|
||||
width:48%;
|
||||
width: 48%;
|
||||
position: relative;
|
||||
|
||||
.textItems {
|
||||
@@ -1274,10 +1412,11 @@
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.tijiaoTitle {
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
text {
|
||||
display: block;
|
||||
width: 30%;
|
||||
|
||||
Reference in New Issue
Block a user