From 98186270a6af4f21977b095b18c6adc5e0590f7e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Thu, 5 Mar 2020 22:23:41 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/tpm/NewHeader.js | 100 ++++++++++++----------
1 file changed, 54 insertions(+), 46 deletions(-)
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index 87ecb601c..5b6ac30f5 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -1087,43 +1087,42 @@ class NewHeader extends Component {
<%= link_to '注册', user_join_path, :className => "ml5" %>
*/}
- {
- user === undefined ?
-
- this.educoderlogin()} className="mr5 color-white">登录
-
- 注册
- : user.login === "" ?
- this.educoderlogin()} className="mr5 color-white">登录
-
- 注册
- :
-
-
-
-
-
-
- {/*{user.username}*/}
- - 我的个人主页
- {coursestypes === true ? "" : - {this.props.user && this.props.user.main_site === false ? "我的课堂" : "我的教学课堂"}
}
- {/* p 老师 l 学生 */}
- {shixuntype === true ? "" : - 我的实训项目
}
- {pathstype === true ? "" : - {this.props.user && this.props.user.main_site === false ? "我的课程" : "我的实践课程"}
}
- {this.props.user && this.props.user.main_site === true ? - 我的开发项目
: ""}
- {/*- 我的众包
*/}
- -
- 客户管理
-
- {
- this.props.Headertop && this.props.Headertop.college_identifier &&
- - 学院统计
- }
- {
- this.props.Headertop && this.props.Headertop.laboratory_user &&
- - 后台管理
- }
+ { user===undefined?
+
+ this.educoderlogin()} className="mr5 color-white">登录
+
+ 注册
+ :user.login===""?
+ this.educoderlogin()} className="mr5 color-white">登录
+
+ 注册
+ :
+
+
+
+
+
+
+ {/*{user.username}*/}
+ - 我的个人主页
+ {coursestypes===true?"":- {this.props.user&&this.props.user.main_site===false?"我的课堂":"我的教学课堂"}
}
+ {/* p 老师 l 学生 */}
+ {shixuntype===true?"":- 我的实训项目
}
+ {pathstype===true?"":- {this.props.user&&this.props.user.main_site===false?"我的课程":"我的实践课程"}
}
+ {this.props.user&&this.props.user.main_site===true?- 我的开发项目
:""}
+ {/*- 我的众包
*/}
+ -
+ 客户管理
+
+ {
+ this.props.Headertop && this.props.Headertop.college_identifier &&
+ - 学院统计
+ }
+ {
+ this.props.Headertop && this.props.Headertop.laboratory_user &&
+ - 后台管理
+ }
- 账号管理
{/*- this.educoderlogin()} >登入测试接口
*/}
@@ -1135,15 +1134,24 @@ class NewHeader extends Component {
{/*this.educoderlogin()} >登录*/}
this.educoderloginysl()}>退出
-
-
-
- }
- {/*href="https://www.educoder.net/login"*/}
-
+ }
+ {/*href="https://www.educoder.net/login"*/}
+
+