提交
This commit is contained in:
@@ -39,11 +39,12 @@
|
||||
v-if="item.user.nickname != null && item.user.nickname != ''">
|
||||
{{item.user.nickname}}
|
||||
<template>
|
||||
<text>({{item.user.tel}})</text>
|
||||
<text v-if="pageSorce!='myClass'">({{item.user.tel}})</text>
|
||||
</template>
|
||||
</view>
|
||||
<text class="txt555" v-else>
|
||||
匿名用户
|
||||
|
||||
</text>
|
||||
<!-- <text @click.stop="outClass(item.student.id)" class="outBtn"
|
||||
v-if="thisClass.state != '2' && thisClass.state != '3'">踢出班级</text> -->
|
||||
@@ -85,7 +86,10 @@
|
||||
</template>
|
||||
<!-- -->
|
||||
<template v-if="classModel.isExam == 1 && item.classExamUsers.length > 0 && thisClass.state == '2'" >
|
||||
<view v-if="item.userScore >= 60 && item.userScore < 70"
|
||||
|
||||
<view :class="isShowA(item, index)"></view>
|
||||
<!-- <view v-html="isShowA(item,index)"></view> -->
|
||||
<!-- <view v-if="item.userScore >= 60 && item.userScore < 70"
|
||||
:class="['PM_font','zhengshu','Bzheng']"
|
||||
></view>
|
||||
<view v-else-if="item.userScore >= 70"
|
||||
@@ -93,7 +97,7 @@
|
||||
></view>
|
||||
<view v-else
|
||||
:class="['PM_font','zhengshu','bujige']"
|
||||
></view>
|
||||
></view> -->
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
@@ -106,7 +110,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props:['students','tabId','thisClass','classModel'],
|
||||
props:['students','tabId','thisClass','classModel','pageSorce'],
|
||||
data(){
|
||||
return{
|
||||
|
||||
@@ -116,6 +120,31 @@
|
||||
console.log('进来了吗?beforeUpdate-----------');
|
||||
} ,
|
||||
methods:{
|
||||
isShowA(item,index){
|
||||
var max;
|
||||
var str=''
|
||||
if (this.thisClass.title.includes("精英")) {
|
||||
max=Math.ceil(this.students.length * 0.2);
|
||||
} else {
|
||||
max=Math.ceil(this.students.length * 0.1);
|
||||
|
||||
}
|
||||
|
||||
if (item.userScore >= 70) {
|
||||
if (index + 1 <= max) {
|
||||
str = "PM_fon zhengshu Azheng";
|
||||
} else {
|
||||
str = "PM_fon zhengshu Bzheng";
|
||||
}
|
||||
} else if (item.userScore >= 60 && item.userScore < 70) {
|
||||
str = "PM_fon zhengshu Bzheng";
|
||||
} else {
|
||||
str = "PM_fon zhengshu bujige";
|
||||
}
|
||||
console.log(str)
|
||||
|
||||
return str
|
||||
},
|
||||
clickStudent(item) {
|
||||
// console.log('item', item);
|
||||
this.$emit('chooseStudent',item)
|
||||
|
||||
Reference in New Issue
Block a user