用户端
This commit is contained in:
@@ -58,18 +58,19 @@
|
||||
</view>
|
||||
<!-- 班内同学 -->
|
||||
<view class="classMateBox" v-show="students.length> 0 && tabId == '2'">
|
||||
<view class="newBox">
|
||||
<view class="newBox flexbox">
|
||||
<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.avatar != null && item.avatar != ''" :src="item.avatar"
|
||||
<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.nickname != null && item.nickname != ''">
|
||||
{{item.nickname}}
|
||||
<text class="txt555" v-if="item.student.nickname != null && item.student.nickname != ''">
|
||||
{{item.student.nickname}}
|
||||
</text>
|
||||
<text v-else>匿名用户</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@@ -108,8 +109,7 @@
|
||||
</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)">
|
||||
@@ -117,16 +117,21 @@
|
||||
<text>{{item.title}}</text>
|
||||
</view>
|
||||
<view class="leve2">
|
||||
{{item.content}}
|
||||
</view>
|
||||
<view class="leve3" @click.stop="editMyXinde(item)" v-show="tijiaoTitleId == 2 && myExperience == 1">
|
||||
修改
|
||||
{{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>
|
||||
|
||||
<text class="btn" v-show="tijiaoTitleId == 2 && myExperience == 1" @click.stop="editMyXinde(item)" >修改</text>
|
||||
</view>
|
||||
<view class="leve3" v-show="item.reply && tijiaoTitleId != 2">
|
||||
<text>已提交答案</text>
|
||||
</view>
|
||||
<view class="leve3 no" v-show="!item.reply && tijiaoTitleId != 2">
|
||||
<text>未提交答案</text>
|
||||
<text>未提交答案 点击开始答题</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -148,7 +153,53 @@
|
||||
<view class="bottomBox" v-if="!isHave && !isDirector && !isMonitor && students.length < thisClass.number">
|
||||
<button type="primary" @click="addClass">一键加入班级</button>
|
||||
</view>
|
||||
|
||||
<!-- 管理弹出 -->
|
||||
<u-popup key="1" :show="showMan" :round="10" @close="closeManager">
|
||||
<view class="guanli">
|
||||
<h3>班内管理人员</h3>
|
||||
<view class="item">
|
||||
<text class="adminName">班长:</text>
|
||||
<view class="personbox" v-if="admins.monitor.id">
|
||||
<text>{{admins.monitor.user.nickname != null && admins.monitor.user.nickname != '' ? admins.monitor.user.nickname : '匿名用户'}}</text>
|
||||
<text v-if="admins.monitor.id">({{admins.monitor.user.tel}})</text>
|
||||
</view>
|
||||
<text v-else>暂未设置</text>
|
||||
</view>
|
||||
<view class="item">
|
||||
<text class="adminName">副班长:</text>
|
||||
<view class="personbox" v-if="admins.dmonitor.id">
|
||||
<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.id">
|
||||
<text>{{admins.learner.user.nickname != null && admins.learner.user.nickname != '' ? admins.learner.user.nickname : '匿名用户'}}</text>
|
||||
<text>({{admins.learner.user.tel}})</text>
|
||||
</view>
|
||||
<text v-else>暂未设置</text>
|
||||
</view>
|
||||
<view class="item arryItem"><text class="adminName">记分员:</text>
|
||||
<template v-if="admins.counter.length > 0">
|
||||
<view class="arryItemSub" v-for="(item,index) in admins.counter" :key="index">
|
||||
<text>{{item.user.nickname != null && item.user.nickname != '' ? item.user.nickname : '匿名用户'}}</text>
|
||||
<text>({{item.user.tel}}) </text>
|
||||
</view>
|
||||
</template>
|
||||
<text v-else>暂未设置</text>
|
||||
</view>
|
||||
<view class="item arryItem"><text class="adminName">评分员:</text>
|
||||
<template v-if="admins.scorer.length > 0">
|
||||
<view class="arryItemSub" v-for="(item,index) in admins.scorer" :key="index">
|
||||
<text>{{item.user.nickname != null && item.user.nickname != '' ? item.user.nickname : '匿名用户'}}</text>
|
||||
<text>({{item.user.tel}}) </text>
|
||||
</view>
|
||||
</template>
|
||||
<text v-else>暂未设置</text>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<z-navigation ></z-navigation>
|
||||
</view>
|
||||
</template>
|
||||
@@ -239,11 +290,11 @@
|
||||
id: '0'
|
||||
},
|
||||
{
|
||||
name: '医案',
|
||||
name: '班内医案',
|
||||
id: '1'
|
||||
},
|
||||
{
|
||||
name: '心得',
|
||||
name: '班内心得',
|
||||
id: '2'
|
||||
},
|
||||
],
|
||||
@@ -285,9 +336,9 @@
|
||||
},
|
||||
methods: {
|
||||
editMyXinde(item){
|
||||
var options = JSON.stringify(item)
|
||||
// var options = JSON.stringify(item)
|
||||
uni.navigateTo({
|
||||
url:`/pages/miniClass/addHomeWork?options=${options}&type=2`
|
||||
url:`/pages/miniClass/addHomeWork?id=${item.id}&type=2`
|
||||
})
|
||||
},
|
||||
radioChange1(e){
|
||||
@@ -316,7 +367,7 @@
|
||||
|
||||
// console.log('options',options);
|
||||
uni.navigateTo({
|
||||
url:`/pages/miniClass/taskDetail?options=${options}`
|
||||
url:`/pages/miniClass/taskDetail?id=${item.id}`
|
||||
})
|
||||
},
|
||||
delClass() {
|
||||
@@ -371,7 +422,7 @@
|
||||
url: "common/class/getClassTaskListStudent",
|
||||
method: "POST",
|
||||
data: {
|
||||
"limit": 100,
|
||||
"limit": 10,
|
||||
"page": 1,
|
||||
"classId": this.thisClass.id,
|
||||
"type": this.tijiaoTitleId+'', //类型 0班内任务1医案2心得
|
||||
@@ -855,10 +906,18 @@
|
||||
// .userName{}
|
||||
}
|
||||
.leve2{
|
||||
color: #999;
|
||||
@include bov()
|
||||
color: #666;
|
||||
@include bov(3)
|
||||
|
||||
}
|
||||
.leve3{color: $themeColor; text-align: center; padding-top: 10rpx;}
|
||||
.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;}
|
||||
}
|
||||
.leve3.no{color: #ff9277; text-align: center;}
|
||||
}
|
||||
}
|
||||
@@ -894,6 +953,7 @@
|
||||
}
|
||||
|
||||
.classMateBox {
|
||||
.newBox{justify-content: space-between; flex-wrap: wrap;}
|
||||
.zmVip {
|
||||
background-image: linear-gradient(-60deg, #53966a 0%, #e1feef 50%, #e1feef 100%);
|
||||
}
|
||||
@@ -907,7 +967,7 @@
|
||||
}
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
width:48%;
|
||||
position: relative;
|
||||
|
||||
.textItems {
|
||||
|
||||
Reference in New Issue
Block a user