Commit d5b00a90 authored by lvtz's avatar lvtz

fix

parent 61bf0df3
......@@ -135,7 +135,7 @@ Page({
capacity: data.capacity,
},
needPsd: needPsd,
selectedTeachers: data.school_teacher_classes || [],
selectedTeachers: data.school_teachers || [],
courseSelect: data.course,
total: data.total
},()=>{
......
......@@ -290,15 +290,15 @@ Page({
}).then((res) => {
if (res.code == 200) {
let teacherArr = []
if(res.data.school_teacher_classes){
res.data.school_teacher_classes.forEach(item => {
if(res.data.school_teachers){
res.data.school_teachers.forEach(item => {
teacherArr.push(item.nickname)
})
teacherArr = teacherArr.join('、');
}else{
teacherArr = []
}
res.data.school_teacher_classes = teacherArr
res.data.school_teachers = teacherArr
if (res.data && res.data.deleted_at) {
wx.showModal({
title: '提示',
......
......@@ -28,7 +28,7 @@
</view>
</view>
<view class="teacher-classroom">
{{circleInfo.school_teacher_classes.length>0?circleInfo.school_teacher_classes:'暂无'}}/{{circleInfo.class_room?circleInfo.class_room.title:'暂无'}}
{{circleInfo.school_teachers.length>0?circleInfo.school_teachers:'暂无'}}/{{circleInfo.class_room?circleInfo.class_room.title:'暂无'}}
</view>
</view>
<!-- <view class="operate-btn-box">
......
......@@ -110,7 +110,7 @@ Page({
} else {
if (data.total) {
data.list.forEach(item => {
let itemT = item.school_teacher_classes;
let itemT = item.school_teachers;
let teacherArr = []
if(itemT){
itemT.forEach((ele)=>{
......
......@@ -26,7 +26,7 @@
<view class="item-contentbox">
<view class="content-item">
<view class="item-label">老师:</view>
<view class="item-text">{{item.school_teacher_classes.length>0?item.teacherArr:'暂无'}}</view>
<view class="item-text">{{item.school_teachers.length>0?item.teacherArr:'暂无'}}</view>
</view>
<view class="content-item">
<view class="item-label">学员:</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment