diff --git a/public/react/public/js/applications.js b/public/react/public/js/applications.js index ad46a5aa0..e99bf61cd 100644 --- a/public/react/public/js/applications.js +++ b/public/react/public/js/applications.js @@ -11267,7 +11267,7 @@ Copyright © 2018 Basecamp, LLC type: "GET", dataType: "script", cache: true, - async: false, + async: true, global: false, // Only evaluate the response if it is successful (gh-4126) diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 178f70438..5182cb991 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -90,7 +90,7 @@ function railsgettimes(proxy) { if (timestamp && checkSubmitFlg === false) { $.ajax({ - url: proxy, async: false, success: function (data) { + url: proxy, async: true, success: function (data) { if (data.status === 0) { timestamp = data.message; setpostcookie(); @@ -103,7 +103,7 @@ function railsgettimes(proxy) { }, 2000); } else if (checkSubmitFlg === false) { $.ajax({ - url: proxy, async: false, success: function (data) { + url: proxy, async: true, success: function (data) { if (data.status === 0) { timestamp = data.message; setpostcookie(); diff --git a/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js b/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js index 4d34f1ba2..c021c07e7 100644 --- a/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js +++ b/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js @@ -92,8 +92,22 @@ class CoursesHomeCard extends Component{ {item.school} -

+ +
+ {item.teacher_users.length===0?'': + 协作老师: + {item.teacher_users.map((iem,idx)=>{ + return( + {iem} + ) + }) + } + + } +
+ +
diff --git a/public/react/src/modules/user/usersInfo/InfosBanner.js b/public/react/src/modules/user/usersInfo/InfosBanner.js index 049974810..21a60e05d 100644 --- a/public/react/src/modules/user/usersInfo/InfosBanner.js +++ b/public/react/src/modules/user/usersInfo/InfosBanner.js @@ -81,7 +81,7 @@ class InfosBanner extends Component{ -

+

diff --git a/public/react/src/modules/user/usersInfo/InfosCourse.js b/public/react/src/modules/user/usersInfo/InfosCourse.js index c763bc88c..4913588b2 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} + ) + }) + } + + } +
+