From 7dc0c205ea361ad8983389cc5d61623d31fdf88f Mon Sep 17 00:00:00 2001 From: dinglink <837816638@qq.com> Date: Fri, 20 Mar 2020 20:26:47 +0800 Subject: [PATCH] =?UTF-8?q?edge=E7=99=BD=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/coursesHome/CoursesHomeCard.js | 17 +++++++++-------- .../src/modules/user/usersInfo/InfosCourse.js | 15 ++++++++++++++- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js b/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js index 887b5dabd..b9925c051 100644 --- a/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js +++ b/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js @@ -93,18 +93,19 @@ class CoursesHomeCard extends Component{ {item.school}

- -
- {item.teacher_users.length===0? - : - 协作老师: - {item.teacher_users&&item.teacher_users.map((iem,idx)=>{ -
{iem[0]}
+{/* +
+ {item.teacher_users.length===0?'': + 协作老师: + {item.teacher_users.map((iem,idx)=>{ + return( + {iem} + ) }) } } -
+
*/} diff --git a/public/react/src/modules/user/usersInfo/InfosCourse.js b/public/react/src/modules/user/usersInfo/InfosCourse.js index c763bc88c..d2ebd70cf 100644 --- a/public/react/src/modules/user/usersInfo/InfosCourse.js +++ b/public/react/src/modules/user/usersInfo/InfosCourse.js @@ -343,9 +343,22 @@ class InfosCourse extends Component{

{item.name}

- 用户 + 用户

{item.teacher && item.teacher.real_name}

{item&&item.school}

+ {/*
+ {item.teacher_users.length===0?'': + 协作老师: + {item.teacher_users.map((iem,idx)=>{ + return( + {iem} + ) + }) + } + + } +
*/} +