From e76a2e6b79d6bc0cee1859a75061a8bc6eabb0aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Sat, 20 Jul 2019 15:42:34 +0800
Subject: [PATCH 1/2] =?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 | 7 +++++++
public/react/src/search/SearchPage.js | 6 ++++--
public/react/src/search/searchc.css | 5 +++++
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index c404aa8d5..e251ecabe 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -562,7 +562,13 @@ submittojoinclass=(value)=>{
cancelModulationModels = () => {
this.setState({isRenders: false})
}
+ inputjoinclassvalue=(e)=>{
+ this.setState({
+ tojoinclasstitle:e.target.value
+ })
+
+ }
render() {
const isLogin = true; // 这里不会出现未登录的情况,服务端在服务端路由时发现如果是未登录,则跳转到登录页了。
const {match ,} = this.props;
@@ -609,6 +615,7 @@ submittojoinclass=(value)=>{
// rolearr:["",""],
// console.log("618");
// console.log(user_phone_binded);
+
return (
-
-
主讲:{item.author_name}{item.author_school_name} 任务:{item.challenges_count===undefined?0:item.challenges_count} 学习人数:{item.study_count===undefined?0:item.study_count}
+
+
主讲:{item.author_name}
+
{item.author_school_name}
任务:{item.challenges_count===undefined?0:item.challenges_count}
+
学习人数:{item.study_count===undefined?0:item.study_count}
diff --git a/public/react/src/search/searchc.css b/public/react/src/search/searchc.css
index c73680ecb..4b31e7c5d 100644
--- a/public/react/src/search/searchc.css
+++ b/public/react/src/search/searchc.css
@@ -126,4 +126,9 @@
.ziticor{
color: #777777;
font-size: 13px;
+}
+.foohter{
+ margin-top: 20px;
+ display: flex;
+ flex-direction:row;
}
\ No newline at end of file
From 2fe390a87542339ff132fcb8d23a16e515953454 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Sat, 20 Jul 2019 16:01:10 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../shixunHomework/Listofworksstudentone.js | 22 +++++++++++++++----
.../shixunHomework/ShixunHomeworkPage.js | 2 +-
.../src/modules/user/FindPasswordComponent.js | 2 +-
public/react/src/modules/user/common.css | 6 +++++
4 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
index a63db222c..bdd3a7de2 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
@@ -899,9 +899,23 @@ class Listofworksstudentone extends Component {
},
],
}
- //
+ console.log("902");
+ console.log("902");
+ console.log(this.props);
+
}
+ componentDidCatch(error, info){
+ console.log("-----------------------------905错误信息");
+ console.log(error);
+ console.log(info);
+ }
+ componentWillReceiveProps(nextProps) {
+ console.log("+++++++++913");
+ console.log("+++++++++915");
+ console.log("+++++++++916");
+ console.log(nextProps);
+ }
componentDidMount() {
console.log("componentDidMount");
if(this.props.isAdmin() === true){
@@ -2337,7 +2351,7 @@ class Listofworksstudentone extends Component {
(this.props.isNotMember()===false?
计算成绩
:""):
- teacherdata&&teacherdata.homework_status[0]!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
+ teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
(this.props.isNotMember()===false?
计算成绩
:"")
@@ -2628,7 +2642,7 @@ class Listofworksstudentone extends Component {
:"")
:
- (teacherdata&&teacherdata.homework_status[0]!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
+ (teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
this.props.isNotMember()===false?
计算成绩
@@ -2793,7 +2807,7 @@ class Listofworksstudentone extends Component {
(this.props.isNotMember()===false?
计算成绩
:""):
- teacherdata&&teacherdata.homework_status[0]!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
+ teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
(this.props.isNotMember()===false?
计算成绩
:"")
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js
index 03d69d61c..aa2e32c49 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js
@@ -24,7 +24,7 @@ class ShixunHomeworkPage extends Component {
super(props);
// this.answerMdRef = React.createRef();
this.state = {
- tab: ["0"],
+ tab: 0,
jobsettingsdata: undefined,
teacherdata: undefined,
code_review: false,
diff --git a/public/react/src/modules/user/FindPasswordComponent.js b/public/react/src/modules/user/FindPasswordComponent.js
index d87bb6a4a..f1e36bbbe 100644
--- a/public/react/src/modules/user/FindPasswordComponent.js
+++ b/public/react/src/modules/user/FindPasswordComponent.js
@@ -537,7 +537,7 @@ class LoginRegisterComponent extends Component {
`}
-
+
找回密码
diff --git a/public/react/src/modules/user/common.css b/public/react/src/modules/user/common.css
index 5453647aa..f88bde127 100644
--- a/public/react/src/modules/user/common.css
+++ b/public/react/src/modules/user/common.css
@@ -32,6 +32,12 @@
align-items: center;
flex-direction: column;
}
+.login_sectionysl{
+ width: 100%;
+ display:flex;
+ align-items: center;
+ flex-direction: column;
+}
.loginInput {
width: 100%;
margin-bottom: 16px;