From 4cb90430e7e5a2b26aeca288b539dd5f229c9ada Mon Sep 17 00:00:00 2001 From: dinglink <837816638@qq.com> Date: Fri, 20 Mar 2020 15:14:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=85=BC=E5=AE=B9edge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/public/js/applications.js | 2 +- public/react/src/AppConfig.js | 4 ++-- .../courses/coursesHome/CoursesHomeCard.js | 15 ++++++++++++++- .../src/modules/user/usersInfo/InfosBanner.js | 2 +- 4 files changed, 18 insertions(+), 5 deletions(-) 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 b8f41d349..7beca416a 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -89,7 +89,7 @@ setpostcookie(); clearAllCookie() if(timestamp&&checkSubmitFlg===false){ - $.ajax({url:proxy,async:false,success:function(data){ + $.ajax({url:proxy,async:true,success:function(data){ if(data.status===0){ timestamp=data.message; setpostcookie(); @@ -100,7 +100,7 @@ setpostcookie(); checkSubmitFlg=false; }, 2000); }else if(checkSubmitFlg===false){ - $.ajax({url:proxy,async:false,success:function(data){ + $.ajax({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..887b5dabd 100644 --- a/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js +++ b/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js @@ -92,8 +92,21 @@ class CoursesHomeCard extends Component{ {item.school} -

+ +
+ {item.teacher_users.length===0? + : + 协作老师: + {item.teacher_users&&item.teacher_users.map((iem,idx)=>{ +
{iem[0]}
+ }) + } +
+ } +
+ +
diff --git a/public/react/src/modules/user/usersInfo/InfosBanner.js b/public/react/src/modules/user/usersInfo/InfosBanner.js index e7d695d71..20393da3a 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{ -

+