+ {AccountProfiletype===true?
this.hideAccountProfile()}
+ {...this.state}
+ {...this.props}
+ />:""}
+
+
{this.state.Modalstype===true? {
-
+ if(this.props.current_user&&this.props.current_user.profile_completed===false){
+ this.setState({
+ AccountProfiletype:true
+ })
+ return
+ }
+
+ debugger
let { ChallengesDataList } = this.state;
// let id = this.props.match.params.shixunId;
this.setState({
@@ -271,8 +280,15 @@ class Challenges extends Component {
startshixunCombattype:false
})
}
+
+ hideAccountProfile=()=>{
+ this.setState({
+ AccountProfiletype:false
+ })
+ }
+
render() {
- let { ChallengesDataList, startbtns, sumidtype ,startshixunCombattype,shixunsreplace,shixunsmessage,hidestartshixunsreplacevalue,operationstrue} = this.state;
+ let { ChallengesDataList, startbtns, sumidtype ,startshixunCombattype,shixunsreplace,shixunsmessage,hidestartshixunsreplacevalue,operationstrue,AccountProfiletype} = this.state;
let { loadingContent } = this.props;
if (ChallengesDataList != undefined) {
this.updatamakedown("ReactMarkdown")
@@ -281,6 +297,12 @@ class Challenges extends Component {
const antIcon = ;
return (
+ {AccountProfiletype===true?this.hideAccountProfile()}
+ {...this.state}
+ {...this.props}
+ />:""}
+
{loadingContent ?
{
+ if (response != undefined)
+ if (response && response.data.status === 402) {
+ this.setState({
+ AccountProfiletype: true
+ })
+
+ }
+ return response;
+ }, (error) => {
+
+ });
+
+ }
+
+ gotoback=()=>{
+ if(this.props.AccountProfiletype!=undefined){
+ this.setState({
+ AccountProfiletype:false
+ })
+ this.props.hideAccountProfile()
+ }else{
+ window.location.href="/";
+ this.setState({
+ AccountProfiletype:false
+ })
+ }
+ }
+
+
+
+render() {
+ return(
+
+
+
您需要去完善您的个人资料,才能使用此功能
+
+
+
+ )
+ }
+}
+
+export default AccountProfile;
\ No newline at end of file
From 65800e57df02150a8e578b3fd6d5650a1c8cd1ad Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 26 Jul 2019 15:35:03 +0800
Subject: [PATCH 4/8] cursor
---
public/react/src/modules/user/usersInfo/Infos.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/public/react/src/modules/user/usersInfo/Infos.js b/public/react/src/modules/user/usersInfo/Infos.js
index 42a713a88..3b58681da 100644
--- a/public/react/src/modules/user/usersInfo/Infos.js
+++ b/public/react/src/modules/user/usersInfo/Infos.js
@@ -239,14 +239,14 @@ class Infos extends Component{
@@ -255,14 +255,14 @@ class Infos extends Component{
From aa0c889f8f89d15ff78b39d6dccffc380de1b0df Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 26 Jul 2019 15:35:14 +0800
Subject: [PATCH 5/8] cur
---
public/react/src/modules/page/Header.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/react/src/modules/page/Header.js b/public/react/src/modules/page/Header.js
index 05cb62743..1c24b6a52 100644
--- a/public/react/src/modules/page/Header.js
+++ b/public/react/src/modules/page/Header.js
@@ -100,7 +100,8 @@ class Header extends Component {
{/**/}
- { grade === 0 ? grade : (grade || '')}
+ {/* href={`${user.user_url}/user_grade`} target="_blank" */}
+ { grade === 0 ? grade : (grade || '')}
}
From 72e53f97b48fd0fce072d6a1c8bee176d484fcc3 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 26 Jul 2019 15:38:05 +0800
Subject: [PATCH 6/8] selectedName
---
public/react/src/modules/user/account/AccountBasicEdit.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/user/account/AccountBasicEdit.js b/public/react/src/modules/user/account/AccountBasicEdit.js
index 3b12e0456..4a2fd97f1 100644
--- a/public/react/src/modules/user/account/AccountBasicEdit.js
+++ b/public/react/src/modules/user/account/AccountBasicEdit.js
@@ -107,7 +107,7 @@ class AccountBasic extends Component {
school_id,
school: selectedName
}, () => {
- this.filterList(name)
+ this.filterList(selectedName)
})
} else if(basicInfo && basicInfo.school_name){
this.setState({
From 7a7c2c85d8be2df97a51c4fd059b1e9b66194ff1 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 26 Jul 2019 15:48:23 +0800
Subject: [PATCH 7/8] cate
---
public/react/src/modules/user/usersInfo/InfosProject.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/user/usersInfo/InfosProject.js b/public/react/src/modules/user/usersInfo/InfosProject.js
index d308e0fd3..6c1f4a666 100644
--- a/public/react/src/modules/user/usersInfo/InfosProject.js
+++ b/public/react/src/modules/user/usersInfo/InfosProject.js
@@ -125,7 +125,7 @@ class InfosProject extends Component{
:""
}
{
- (!data || data.projects.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" || category) &&
+ (!data || data.projects.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" ) &&
}
{
data && data.projects && data.projects.map((item,key)=>{
From 2d2d92e022bdcbc7b9f6f6e750c1927ed5cc5778 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 26 Jul 2019 15:49:46 +0800
Subject: [PATCH 8/8] cate
---
public/react/src/modules/user/usersInfo/InfosCourse.js | 2 +-
public/react/src/modules/user/usersInfo/InfosPath.js | 2 +-
public/react/src/modules/user/usersInfo/InfosShixun.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/react/src/modules/user/usersInfo/InfosCourse.js b/public/react/src/modules/user/usersInfo/InfosCourse.js
index 1623e9097..ff5321a9f 100644
--- a/public/react/src/modules/user/usersInfo/InfosCourse.js
+++ b/public/react/src/modules/user/usersInfo/InfosCourse.js
@@ -130,7 +130,7 @@ class InfosCourse extends Component{
this.props.current_user && this.props.current_user.user_identity != "学生" ?
: ""
}
{
- (!data || data.courses.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" || category) &&
+ (!data || data.courses.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" ) &&
}
{
data && data.courses && data.courses.map((item,key)=>{
diff --git a/public/react/src/modules/user/usersInfo/InfosPath.js b/public/react/src/modules/user/usersInfo/InfosPath.js
index a7b0b95f6..759527a6e 100644
--- a/public/react/src/modules/user/usersInfo/InfosPath.js
+++ b/public/react/src/modules/user/usersInfo/InfosPath.js
@@ -152,7 +152,7 @@ class InfosPath extends Component{
this.props.current_user && this.props.current_user.user_identity != "学生" ?
:""
}
{
- (!data || data.subjects.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" || category) &&
+ (!data || data.subjects.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" ) &&
}
{
data && data.subjects && data.subjects.map((item,key)=>{
diff --git a/public/react/src/modules/user/usersInfo/InfosShixun.js b/public/react/src/modules/user/usersInfo/InfosShixun.js
index 7e911202e..bac60fe6f 100644
--- a/public/react/src/modules/user/usersInfo/InfosShixun.js
+++ b/public/react/src/modules/user/usersInfo/InfosShixun.js
@@ -161,7 +161,7 @@ class InfosShixun extends Component{
:""
}
{
- (!data || data.shixuns.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" || category) &&
+ (!data || data.shixuns.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" ) &&
}
{
data && data.shixuns && data.shixuns.map((item,key)=>{