2 Commits

Author SHA1 Message Date
bb640778c0 feat: 优化进入小班的加载速度
- 在多个班级信息页面中,将学员列表的获取逻辑替换为调用新的 API 接口 `getClassUserCourseFlag`,以获取带买课标识的学员信息。
- 为学员列表区域增加加载状态提示(`studentsLoading`),提升用户体验。
- 在考试周和结班状态下,调用 `userScoreList` 接口获取学员成绩信息,并为其设置超时时间为 60 秒。
- 更新应用版本号至 2.0.37,并将网络请求超时配置调整为 0。
2026-02-05 17:40:38 +08:00
0a37b21824 feat(miniClass): 增加补充姓名提示并更新用户显示字段从nickname改为name
- 将多个页面中用户昵称显示字段从 `nickname` 统一改为 `name`
- 优化课程购买提示逻辑,支持多条信息分次提示
- 更新应用版本号至2.0.36
2026-02-05 09:50:57 +08:00
11 changed files with 257 additions and 86 deletions

View File

@@ -3,7 +3,7 @@
"appid" : "__UNI__C7475A8",
"description" : "吴门医述",
"networkTimeout" : {
"request" : 15000
"request" : 0
},
"transformPx" : false,
"icons" : [
@@ -12,8 +12,8 @@
"src" : "图片路径"
}
],
"versionName" : "2.0.35",
"versionCode" : 2035,
"versionName" : "2.0.37",
"versionCode" : 2037,
"sassImplementationName" : "node-sass",
"app-plus" : {
"nvueCompiler" : "uni-app",

View File

@@ -220,7 +220,10 @@
<!-- 班内同学 -->
<template v-if="tabId == '2'">
<template v-if="students.length> 0">
<view v-if="studentsLoading" style="text-align: center;">
数据加载中
</view>
<template v-else-if="students.length> 0">
<view class="" style=" overflow: hidden; margin:20rpx 0">
<text style="font-size: 26rpx; color: #666;"> {{students.length}} 名学员</text>
</view>
@@ -236,8 +239,8 @@
</view>
<view class="textItems flex_box">
<text class="txt555"
v-if="item.student.nickname != null && item.student.nickname != ''">
{{item.student.nickname}}
v-if="item.student.name != null && item.student.name != ''">
{{item.student.name}}
</text>
<text v-else>匿名用户</text>
</view>
@@ -286,10 +289,10 @@
<view class="" v-if="tijiaoTitleId == 2 && false" style="margin: 20rpx 0;">
<radio-group @change="radioChange1" class="flex_box">
<view class="" style="margin-right:20rpx ;">
<radio value="0" />全部同学的</label>
<radio value="0" /><label>全部同学的</label>
</view>
<view class="">
<radio value="1" checked="true" />只看我自己的</label>
<radio value="1" checked="true" /><label>只看我自己的</label>
</view>
</radio-group>
</view>
@@ -309,7 +312,7 @@
</view>
<view class="leve3">
<view class="tips flex_box" v-if="item.zhedie">
<!-- <text>发布者{{item.createUser.nickname != null && item.createUser.nickname != '' ? item.createUser.nickname : '匿名用户'}}</text> -->
<!-- <text>发布者{{item.createUser.name != null && item.createUser.name != '' ? item.createUser.name : '匿名用户'}}</text> -->
<text style="" class="date">日期{{item.createTime}}</text>
</view>
<template v-if="tijiaoTitleId == 2 && isHave">
@@ -403,21 +406,21 @@
<view class="item">
<text class="adminName">班长</text>
<view class="personbox" v-if="admins.monitor.user != null">
<text>{{admins.monitor.user.nickname != null && admins.monitor.user.nickname != '' ? admins.monitor.user.nickname : '匿名用户'}}</text>
<text>{{admins.monitor.user.name != null && admins.monitor.user.name != '' ? admins.monitor.user.name : '匿名用户'}}</text>
</view>
<text v-else>暂未设置</text>
</view>
<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.name != null && admins.dmonitor.user.name != '' ? admins.dmonitor.user.name : '匿名用户'}}</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.name != null && admins.learner.user.name != '' ? admins.learner.user.name : '匿名用户'}}</text>
</view>
<text v-else>暂未设置</text>
</view>
@@ -425,7 +428,7 @@
<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.name != null && item.user.name != '' ? item.user.name+'' : '匿名用户,'}}</text>
<!-- <text>({{item.user.tel}}),</text> -->
</template>
</view>
@@ -505,7 +508,9 @@
<text class="small_btn border_radius_10"
v-if="!submitInfo.photo || submitInfo.photo != '' || submitInfo.photo != null"
@click="onPageJump('/pages/mine/userInfo/persData')"
style="display: block; height: 30px;">{{submitInfo.photo && submitInfo.photo != '' && submitInfo.photo != null ? '去修改' : '去上传'}}</text>
style="display: block; height: 30px;"
>
{{submitInfo.photo && submitInfo.photo != '' && submitInfo.photo != null ? '去修改' : '去上传'}}
</text>
</view>
</view>
@@ -568,6 +573,7 @@
showSubmitInfoBlank: false,
thisClass: {},
students: [],
studentsLoading: true,
tabId: undefined,
curTagIndex: 0,
scrollable: false,
@@ -774,6 +780,14 @@
this.submitInfo.photo = userObj.photo
}
}
if (this.thisClass.state == '3' || this.thisClass.state == '2') {
// 考试周 结班状态下的
this.students = await this.getStudentScoreList()
console.log('students考试周 结班状态下的', this.students);
} else {
this.students = await this.getStudentsList()
}
this.studentsLoading = false
},
components: {
sutdentScoreList,
@@ -963,13 +977,33 @@
.then(async (res) => {
console.log('课程购买情况',res);
if (res.code == 0) {
if (res.msg != '') {
msg = res.msg
var outputStr = await this.convertToHalfWidth(res.msg)
if (res.res && res.res.length > 0) {
const msgArr = res.res
for (const item of msgArr) {
const outputStr = await this.convertToHalfWidth(item)
const isPass = await new Promise(resolve => {
uni.showModal({
title: '提示',
content: `${outputStr}课程没有购买,请尽快购买班级内教学需要的课程,逾期您将被系统自动踢出班级,感谢您的理解和支持`
content: `${outputStr}`,
success: (res) => {
if (res.confirm) {
resolve(true)
} else {
resolve(false)
}
}
})
})
if (!isPass) {
break
}
}
// msg = res.msg
// var outputStr = await this.convertToHalfWidth(res.msg)
// uni.showModal({
// title: '提示',
// content: `${outputStr}`
// })
}
}
}).catch(e => {
@@ -1066,9 +1100,41 @@
})
});
},
// 未开班和进行中状态下,学员的信息,带买课标识
async getStudentsList() {
var list = undefined
await $http.request({
url: "common/class/getClassUserCourseFlag",
method: "POST",
data: {
"classId": parseInt(this.classId)
},
header: {
'Content-Type': 'application/json'
},
})
.then(res => {
if (res.code == 0) {
list = res.result.students
} else {
uni.showToast({
title: '获取学员信息失败',
icon: 'none',
duration: 3000
})
}
}).catch(e => {
list = []
uni.showToast({
title: e.errMsg,
icon: 'none',
duration: 3000
})
});
return list
},
// 考试周和结班状态下,学员的信息
async getStudentScoreList() {
console.log('进来了码?');
var list = undefined
await $http.request({
url: "common/class/userScoreList",
@@ -1079,6 +1145,7 @@
header: {
'Content-Type': 'application/json'
},
timeout: '60000'
})
.then(res => {
if (res.code == 0) {
@@ -1894,13 +1961,6 @@ uni.navigateTo({
this.classModel = res.result.classModel
this.courses = res.result.courses
if (this.thisClass.state == '3' || this.thisClass.state == '2') {
// 考试周 结班状态下的
this.students = await this.getStudentScoreList()
console.log('students考试周 结班状态下的', this.students);
} else {
this.students = res.result.students
}
this.refresh = true
var ss = this.getTijiaoTitleList
if (this.thisClass.state != 0 && this.tabId != '3') {
@@ -2260,7 +2320,7 @@ uni.navigateTo({
color: #999;
}
.date {}
// .date {}
@@ -2688,7 +2748,7 @@ uni.navigateTo({
}
}
.optionsBox {}
// .optionsBox {}
.btn_box_certificate {
margin-top: 70rpx;
@@ -2713,9 +2773,9 @@ uni.navigateTo({
}
.userinfoPup {
.tips {
// .item{justify-content: space-around;}
}
// .tips {
// // .item{justify-content: space-around;}
// }
.small_btn {
color: #55aaff;

View File

@@ -228,7 +228,10 @@
</view>
<!-- 学员列表 -->
<view class="" v-if="tabId == '2'">
<template v-if="students.length > 0">
<view v-if="studentsLoading" style="text-align: center;">
数据加载中
</view>
<template v-else-if="students.length > 0">
<view class="" style="overflow: hidden; margin: 20rpx 0">
<text style="font-size: 26rpx; color: #666"
>共 {{ students.length }} 名学员</text
@@ -292,11 +295,11 @@
<text
class="txt555"
v-if="
item.student.nickname != null &&
item.student.nickname != ''
item.student.name != null &&
item.student.name != ''
"
>
{{ item.student.nickname }}
{{ item.student.name }}
<template>
<text>{{ item.student.tel }}</text>
</template>
@@ -429,9 +432,9 @@
v-if="admins.monitor.user != null && admins.monitor.id"
>
<text>{{
admins.monitor.user.nickname != null &&
admins.monitor.user.nickname != ""
? admins.monitor.user.nickname
admins.monitor.user.name != null &&
admins.monitor.user.name != ""
? admins.monitor.user.name
: "匿名用户"
}}</text>
<text v-if="admins.monitor.id"
@@ -447,9 +450,9 @@
v-if="admins.dmonitor.user != null && admins.dmonitor.id"
>
<text>{{
admins.dmonitor.user.nickname != null &&
admins.dmonitor.user.nickname != ""
? admins.dmonitor.user.nickname
admins.dmonitor.user.name != null &&
admins.dmonitor.user.name != ""
? admins.dmonitor.user.name
: "匿名用户"
}}</text>
<text>({{ admins.dmonitor.user.tel }})</text>
@@ -463,9 +466,9 @@
v-if="admins.learner.user != null && admins.learner.id"
>
<text>{{
admins.learner.user.nickname != null &&
admins.learner.user.nickname != ""
? admins.learner.user.nickname
admins.learner.user.name != null &&
admins.learner.user.name != ""
? admins.learner.user.name
: "匿名用户"
}}</text>
<text>({{ admins.learner.user.tel }})</text>
@@ -476,7 +479,7 @@
<template v-if="admins.counter.length > 0">
<view class="arryItemSub" v-for="(item,index) in admins.counter" :key="index">
<template v-if="item.user != null">
<text>{{item.user.nickname != null && item.user.nickname != '' ? item.user.nickname : '匿名用户'}}</text>
<text>{{item.user.name != null && item.user.name != '' ? item.user.name : '匿名用户'}}</text>
<text>({{item.user.tel}}) </text>
</template>
</view>
@@ -493,8 +496,8 @@
>
<template v-if="item.user != null">
<text>{{
item.user.nickname != null && item.user.nickname != ""
? item.user.nickname
item.user.name != null && item.user.name != ""
? item.user.name
: "匿名用户"
}}</text>
<text>({{ item.user.tel }}) </text>
@@ -516,9 +519,9 @@
<view class="upopBox" style="">
<h3 style="margin-bottom: 20rpx">
{{
thisStudent.student.nickname != null &&
thisStudent.student.nickname != ""
? thisStudent.student.nickname
thisStudent.student.name != null &&
thisStudent.student.name != ""
? thisStudent.student.name
: "匿名用户"
}}
</h3>
@@ -548,9 +551,9 @@
<view class="upopBox manScoreBox" style="">
<h3 style="margin-bottom: 20rpx">
{{
thisStudentScore.user.nickname != null &&
thisStudentScore.user.nickname != ""
? thisStudentScore.user.nickname
thisStudentScore.user.name != null &&
thisStudentScore.user.name != ""
? thisStudentScore.user.name
: "匿名用户"
}}
</h3>
@@ -639,6 +642,7 @@ export default {
showOverBtn: false,
},
students: [],
studentsLoading: true,
tabId: "2",
curTagIndex: 0,
scrollable: false,
@@ -1121,6 +1125,39 @@ export default {
that.opClass(statusCode);
}, 300);
},
// 未开班和进行中状态下,学员的信息,带买课标识
async getStudentsList() {
var list = undefined
await $http.request({
url: "common/class/getClassUserCourseFlag",
method: "POST",
data: {
"classId": parseInt(this.classId)
},
header: {
'Content-Type': 'application/json'
},
})
.then(res => {
if (res.code == 0) {
list = res.result.students
} else {
uni.showToast({
title: '获取学员信息失败',
icon: 'none',
duration: 3000
})
}
}).catch(e => {
list = []
uni.showToast({
title: e.errMsg,
icon: 'none',
duration: 3000
})
});
return list
},
// 考试周和结班状态下,学员的信息
async getStudentScoreList() {
var list = undefined;
@@ -1135,6 +1172,7 @@ export default {
//默认 无 说明:请求头
"Content-Type": "application/json",
},
timeout: '60000'
})
.then((res) => {
console.log("班状态下,学员的信息", this.classId, res);
@@ -1431,8 +1469,9 @@ export default {
this.students = await this.getStudentScoreList();
// console.log('students', this.students);
} else {
this.students = res.result.students;
this.students = await this.getStudentsList();
}
this.studentsLoading = false;
this.refresh = true;
if (this.thisClass.state == 0) {

View File

@@ -33,7 +33,10 @@
</view>
<!-- 学员列表 -->
<view class="" v-if="tabId == '2'">
<template v-if="students.length> 0 ">
<view v-if="studentsLoading" style="text-align: center;">
数据加载中
</view>
<template v-else-if="students.length> 0 ">
<view class="" style=" overflow: hidden; margin: 20rpx 0;">
<text style="font-size: 26rpx; color: #666;"> {{students.length}} 名学员</text>
<!-- <uni-section class="mb-10 nobg xueyuanTitle" title="班内学员" type="line" sub-title="">
@@ -91,8 +94,8 @@
</view>
<view :class="['textItems','flex_box']">
<text class="txt555"
v-if="item.student.nickname != null && item.student.nickname != ''">
{{item.student.nickname}}
v-if="item.student.name != null && item.student.name != ''">
{{item.student.name}}
<template>
<text>{{item.student.tel}}</text>
</template>
@@ -170,7 +173,7 @@
<view class="item">
<text class="adminName">班长</text>
<view class="personbox" v-if="admins.monitor.user != null && admins.monitor.id">
<text>{{admins.monitor.user.nickname != null && admins.monitor.user.nickname != '' ? admins.monitor.user.nickname : '匿名用户'}}</text>
<text>{{admins.monitor.user.name != null && admins.monitor.user.name != '' ? admins.monitor.user.name : '匿名用户'}}</text>
<text v-if="admins.monitor.id">({{admins.monitor.user.tel}})</text>
</view>
<text v-else>暂未设置</text>
@@ -178,14 +181,14 @@
<view class="item">
<text class="adminName">副班长</text>
<view class="personbox" v-if="admins.dmonitor.user != null && admins.dmonitor.id">
<text>{{admins.dmonitor.user.nickname != null && admins.dmonitor.user.nickname != '' ? admins.dmonitor.user.nickname : '匿名用户'}}</text>
<text>{{admins.dmonitor.user.name != null && admins.dmonitor.user.name != '' ? admins.dmonitor.user.name : '匿名用户'}}</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 && admins.learner.id">
<text>{{admins.learner.user.nickname != null && admins.learner.user.nickname != '' ? admins.learner.user.nickname : '匿名用户'}}</text>
<text>{{admins.learner.user.name != null && admins.learner.user.name != '' ? admins.learner.user.name : '匿名用户'}}</text>
<text>({{admins.learner.user.tel}})</text>
</view>
<text v-else>暂未设置</text>
@@ -194,7 +197,7 @@
<template v-if="admins.counter.length > 0">
<view class="arryItemSub" v-for="(item,index) in admins.counter" :key="index">
<template v-if="item.user != null">
<text>{{item.user.nickname != null && item.user.nickname != '' ? item.user.nickname : '匿名用户'}}</text>
<text>{{item.user.name != null && item.user.name != '' ? item.user.name : '匿名用户'}}</text>
<text>({{item.user.tel}}) </text>
</template>
</view>
@@ -205,7 +208,7 @@
<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.name != null && item.user.name != '' ? item.user.name : '匿名用户'}}</text>
<text>({{item.user.tel}}) </text>
</template>
</view>
@@ -217,7 +220,7 @@
<u-popup key="2" v-if="showStudentBlank" :show="showStudentBlank" :round="10" @close="closePup" ref="">
<view class="upopBox" style="">
<h3 style="margin-bottom: 20rpx;">
{{thisStudent.student.nickname != null && thisStudent.student.nickname != '' ? thisStudent.student.nickname : "匿名用户"}}
{{thisStudent.student.name != null && thisStudent.student.name != '' ? thisStudent.student.name : "匿名用户"}}
</h3>
<view class="item">
<text><b>身份信息</b></text>
@@ -272,7 +275,7 @@
ref="">
<view class="upopBox manScoreBox" style="">
<h3 style="margin-bottom: 20rpx;">
{{thisStudentScore.user.nickname != null && thisStudentScore.user.nickname != '' ? thisStudentScore.user.nickname : "匿名用户"}}
{{thisStudentScore.user.name != null && thisStudentScore.user.name != '' ? thisStudentScore.user.name : "匿名用户"}}
</h3>
<view class="item">
<text><b>身份信息</b></text>
@@ -352,6 +355,7 @@
thisClass: {},
students: [],
studentsLoading: true,
tabId: '2',
curTagIndex: 0,
scrollable: false,
@@ -754,6 +758,39 @@
url: `/pages/miniClass/classCaskList?id=${this.thisClass.id}&type=${this.tijiaoTitleId}`
})
},
// 未开班和进行中状态下,学员的信息,带买课标识
async getStudentsList() {
var list = undefined
await $http.request({
url: "common/class/getClassUserCourseFlag",
method: "POST",
data: {
"classId": parseInt(this.classId)
},
header: {
'Content-Type': 'application/json'
},
})
.then(res => {
if (res.code == 0) {
list = res.result.students
} else {
uni.showToast({
title: '获取学员信息失败',
icon: 'none',
duration: 3000
})
}
}).catch(e => {
list = []
uni.showToast({
title: e.errMsg,
icon: 'none',
duration: 3000
})
});
return list
},
// 考试周和结班状态下,学员的信息
async getStudentScoreList() {
var list = undefined
@@ -766,6 +803,7 @@
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'
},
timeout: '60000'
})
.then(res => {
console.log('考试周状态下,学员的信息',this.classId, res);
@@ -863,8 +901,9 @@
this.students = await this.getStudentScoreList()
// console.log('students', this.students);
} else {
this.students = res.result.students
this.students = await this.getStudentsList()
}
this.studentsLoading = false
this.refresh = true
}

View File

@@ -36,8 +36,8 @@
</view>
<view :class="['textItems','flex_box']">
<view class="txt555"
v-if="item.user.nickname != null && item.user.nickname != ''">
{{item.user.nickname}}
v-if="item.user.name != null && item.user.name != ''">
{{item.user.name}}
<template>
<text v-if="pageSorce!='myClass'">{{item.user.tel}}</text>
</template>

View File

@@ -29,7 +29,7 @@
<view class="textBox">
<view class="">
<text style="width: 100%; display: inline-block;">
{{form.monitor && form.monitor.nickname != '' && form.monitor.nickname != null ? form.monitor.nickname : '匿名用户'}}
{{form.monitor && form.monitor.name != '' && form.monitor.name != null ? form.monitor.name : '匿名用户'}}
</text>
<text style="width: 100%; display: inline-block;"> -
{{form.monitor.tel}}</text>
@@ -68,7 +68,7 @@
<view class="textBox">
<view class="">
<text style="width: 100%; display: inline-block;">
{{form.dmonitor && form.dmonitor.nickname != '' && form.dmonitor.nickname != null ? form.dmonitor.nickname : '匿名用户'}}
{{form.dmonitor && form.dmonitor.name != '' && form.dmonitor.name != null ? form.dmonitor.name : '匿名用户'}}
</text>
<text style="width: 100%; display: inline-block;"> -
{{form.dmonitor.tel}}</text>
@@ -106,7 +106,7 @@
<view class="textBox">
<view class="">
<text style="width: 100%; display: inline-block;">
{{form.learner && form.learner.nickname != '' && form.learner.nickname != null ? form.learner.nickname : '匿名用户'}}
{{form.learner && form.learner.name != '' && form.learner.name != null ? form.learner.name : '匿名用户'}}
</text>
<text style="width: 100%; display: inline-block;"> -
{{form.learner.tel}}</text>
@@ -146,7 +146,7 @@
<view class="textBox">
<view class="">
<text style="width: 100%; display: inline-block;">
{{item && item.nickname != '' && item.nickname != null ? item.nickname : '匿名用户'}}
{{item && item.name != '' && item.name != null ? item.name : '匿名用户'}}
</text>
<text style="width: 100%; display: inline-block;"> - {{item.tel}}</text>
</view>
@@ -183,7 +183,7 @@
<view class="textBox">
<view class="">
<text style="width: 100%; display: inline-block;">
{{item && item.nickname != '' && item.nickname != null ? item.nickname : '匿名用户'}}
{{item && item.name != '' && item.name != null ? item.name : '匿名用户'}}
</text>
<text style="width: 100%; display: inline-block;"> - {{item.tel}}</text>
</view>

View File

@@ -53,8 +53,8 @@
</view>
<view class="textItems flex_box">
<text class="nick"
v-if="item.student.nickname != null && item.student.nickname != ''">
{{item.student.nickname}}
v-if="item.student.name != null && item.student.name != ''">
{{item.student.name}}
</text>
<text class="nick" v-else>
匿名用户
@@ -81,7 +81,7 @@
</view>
<u-popup key="1" v-if="showEditBlank" :show="showEditBlank" :round="10" @close="closePup" ref="">
<view class="upopBox" style="">
<h3 style="margin-bottom: 20rpx;">{{thisStudent.student.nickname != null && thisStudent.student.nickname != '' ? thisStudent.student.nickname : "匿名用户"}}</h3>
<h3 style="margin-bottom: 20rpx;">{{thisStudent.student.name != null && thisStudent.student.name != '' ? thisStudent.student.name : "匿名用户"}}</h3>
<view class="item">
<text><b>身份信息</b></text>
<text v-if="thisStudent.student.vip == '0'">普通用户</text>
@@ -279,12 +279,12 @@
'Content-Type': 'application/json'
},
})
.then(res => {
.then(async res => {
this.refresh = false
if (res.code == 0) {
this.thisClass = res.result.class
this.students = res.result.students
this.students = await this.getStudentsList()
}
@@ -298,6 +298,39 @@
icon: 'none'
})
});
},
// 未开班和进行中状态下,学员的信息,带买课标识
async getStudentsList() {
var list = undefined
await $http.request({
url: "common/class/getClassUserCourseFlag",
method: "POST",
data: {
"classId": parseInt(this.classId)
},
header: {
'Content-Type': 'application/json'
},
})
.then(res => {
if (res.code == 0) {
list = res.result.students
} else {
uni.showToast({
title: '获取学员信息失败',
icon: 'none',
duration: 3000
})
}
}).catch(e => {
list = []
uni.showToast({
title: e.errMsg,
icon: 'none',
duration: 3000
})
});
return list
}
}
}

View File

@@ -53,7 +53,7 @@
<image v-else src="/static/icon/morenAvavter.png" mode="aspectFit"></image>
</view>
<view class="userName flex_box">
<text v-if="item.createUser.nickname != '' && item.createUser.nickname != null">匿名用户</text>
<text v-if="item.createUser.name != '' || item.createUser.name != null">{{item.createUser.name}}</text>
<text v-else>匿名用户</text>
</view>
</view>

View File

@@ -43,7 +43,7 @@
</view>
<view class="userName flex_box">
<text
v-if="item.createUser.nickname != '' && item.createUser.nickname != null">{{item.createUser.nickname}}</text>
v-if="item.createUser.name != '' && item.createUser.name != null">{{item.createUser.name}}</text>
<text v-else>匿名用户</text>
</view>
</view>
@@ -107,7 +107,7 @@
日期:{{curReplay.createTime}}
</view>
<view class="" v-if="curReplay.createUser" style="color: #999;padding: 10rpx 0; font-size: 26rpx;">
学员信息:{{curReplay.createUser.nickname != null && curReplay.createUser.nickname != '' ? curReplay.createUser.nickname : '匿名用户'}}
学员信息:{{curReplay.createUser.name != null && curReplay.createUser.name != '' ? curReplay.createUser.name : '匿名用户'}}
/ {{curReplay.createUser.tel}}
</view>
<!-- <view class="score" v-show="curReplay.scoreSuccess != 0">

View File

@@ -64,7 +64,7 @@
日期{{curReplay.createTime}}
</view>
<view class="" v-if="curReplay.createUser" style="color: #999;padding: 10rpx 0;">
学员信息{{curReplay.createUser.nickname != null && curReplay.createUser.nickname != '' ? curReplay.createUser.nickname : '匿名用户'}}
学员信息{{curReplay.createUser.name != null && curReplay.createUser.name != '' ? curReplay.createUser.name : '匿名用户'}}
/ {{curReplay.createUser.tel}}
</view>
</scroll-view>

Binary file not shown.