From 578f2ab200a4cd135c85ffb17e073cb15b288eeb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Tue, 30 Jul 2019 15:28:18 +0800
Subject: [PATCH] b
---
.../PackageIndexNEIBannerConcent.js | 14 ++---
.../modules/user/usersInfo/InfosPackage.js | 58 +------------------
2 files changed, 8 insertions(+), 64 deletions(-)
diff --git a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js
index 04a8c9c4a..8db157a65 100644
--- a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js
+++ b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNEIBannerConcent.js
@@ -66,13 +66,13 @@ class PackageIndexNEIBannerConcent extends Component {
categories:[]
}
}
- componentDidUpdate = (prevProps) => {
- if(prevProps.current_user.username!=this.props.current_user&&this.props.current_user.username){
- this.setState({
- contact_name:this.props.current_user&&this.props.current_user.username
- })
- }
- }
+ // componentDidUpdate = (prevProps) => {
+ // if(this.props.current_user&&this.props.current_user.username!=prevProps.current_user&&prevProps.current_user.username){
+ // this.setState({
+ // contact_name:this.props.current_user&&this.props.current_user.username
+ // })
+ // }
+ // }
componentDidMount() {
window.document.title = '众包创新'
diff --git a/public/react/src/modules/user/usersInfo/InfosPackage.js b/public/react/src/modules/user/usersInfo/InfosPackage.js
index 135f9f52e..ad1a38964 100644
--- a/public/react/src/modules/user/usersInfo/InfosPackage.js
+++ b/public/react/src/modules/user/usersInfo/InfosPackage.js
@@ -125,63 +125,7 @@ class InfosCourse extends Component{
{
(!data || data.courses.length==0) && (!is_current || (this.props.current_user && this.props.current_user.user_identity === "学生" )) &&
非成员不能访问
-- {item.name} -
-{item.teacher && item.teacher.real_name}
-{item.teacher && item.teacher.school_name}
-