This commit is contained in:
@fawn-nine
2024-08-08 16:41:29 +08:00
parent 784e771fb8
commit c753ab18a3
10 changed files with 1131 additions and 384 deletions

View File

@@ -90,8 +90,12 @@
<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 @click="onPageJump('/pages/miniClass/studentsInClass', thisClass.id, roleCode)">
<text class="ciyao">学员人数</text>
<view class="mainTxt flex_box">
<text class="">{{students.length}}/{{thisClass.number}}人 </text>
<uni-icons type="eye" size="20" color="#333"></uni-icons></view>
</view>
<view><text class="ciyao">管理成员</text><text class="mainTxt" @click="seeManager">点击查看</text></view>
</view>
@@ -124,48 +128,6 @@
<!-- <view class="" v-if=" tabId == '1'">
班内问答
</view> -->
<!-- 班内同学 -->
<uni-section class="mb-10 nobg" title="班内学员" type="line"></uni-section>
<view class="classMateBox" v-show="students.length> 0">
<view class="newBox">
<view :class="['item',
item.student.vip == '1' ? 'superVip' : '',
item.student.vip == '2' ? 'wumenVip' : '',
item.student.vip == '3' ? 'zmVip' : '']" v-for="(item, index) in students" :key="index">
<view class="flexbox">
<view class="classmateImg">
<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 != ''">
{{item.student.nickname}}
<template v-if="isDirector || isMonitor">
<text>{{item.student.tel}}</text> <text @click="outClass(item.student.id)"
class="outBtn">踢出班级</text>
</template>
</text>
<text class="txt555" v-else>
匿名用户
</text>
<!-- <text class="userType" v-if="item.vip == '1'">超级VIP用户</text>
<text class="userType" v-if="item.vip == '2' ">医学VIP用户</text>
<text class="userType" v-if="item.vip == '3' ">国学VIP用户</text> -->
</view>
</view>
<view class="courseBuyOrNo" v-if="item.buyState !='会员 ' ">
<view class="">
<text>{{ item.buyState }}</text>
</view>
</view>
</view>
</view>
</view>
<view class="" v-show="students.length == 0">
<u-divider text="暂无学员加入"></u-divider>
</view>
<!-- 班内提交 -->
<view class="" v-if=" tabId == '3' && false">
<view class="flex_box tijiaoTitle">
@@ -251,7 +213,7 @@
</view>
</view>
</u-popup>
<view class="fabBox" v-if="isDirector || isMonitor">
<view class="fabBox" >
<uni-fab ref="fab" :pattern="pattern" :content="fabContent" :horizontal="horizontal" :vertical="vertical"
:direction="direction" @trigger="fabTrigger" @fabClick="fabClick" />
</view>
@@ -547,6 +509,7 @@
},
// 跳转
onPageJump(url, id, modeType) {
console.log('type',modeType);
uni.navigateTo({
url: `${url}?id=${id}&type=${modeType}`
});
@@ -620,7 +583,7 @@
this.$refs.fab.close()
setTimeout(() => {
uni.navigateTo({
url: `${_url}?id=${this.thisClass.id}&type=${_type}`
url: `${_url}?classId=${this.thisClass.id}&type=${_type}`
})
}, 200)
},
@@ -1133,6 +1096,7 @@
.otherItems {
// border: 1px solid #dadada;
padding: 20rpx;
text-align: center;
// background-color: rgba(255, 255, 255, .5);
border-radius: 20rpx;
justify-content: space-between;