From 9e2fbd39af5c5939724585bd9a3360eb2c4acd73 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Fri, 12 Jul 2019 15:33:17 +0800
Subject: [PATCH 06/18] =?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/courses/poll/pollStyle.css | 1 +
.../src/modules/courses/shixunHomework/CommitSummary.js | 2 +-
.../modules/courses/shixunHomework/Trainingjobsetting.js | 7 ++++---
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/public/react/src/modules/courses/poll/pollStyle.css b/public/react/src/modules/courses/poll/pollStyle.css
index 624ea6532..1b60b2c7c 100644
--- a/public/react/src/modules/courses/poll/pollStyle.css
+++ b/public/react/src/modules/courses/poll/pollStyle.css
@@ -38,6 +38,7 @@
.problemShow:last-child{
border-bottom: none;
}
+.invite-tipysls{position: absolute;top: -8px;right: 140px;color: #fff; box-sizing: border-box;width: 170px;text-align: center;border-radius: 2px;background-color: rgba(5,16,26,0.6)}
.yslinvitetip{display: block;border-width: 8px;position: absolute;top: 10px;right: -16px;border-style: dashed solid dashed dashed;border-color: transparent transparent transparent rgba(5,16,26,0.6);font-size: 0;line-height: 0;}
.right-black-trangle{border-width: 8px;position: absolute;top: 10px;left: -16px;border-style: dashed solid dashed dashed;border-color: transparent transparent transparent rgba(5,16,26,0.6);font-size: 0;line-height: 0;}
.right-black-trangles{border-width: 8px;position: absolute;top: 10px;left: -16px;border-style: dashed solid dashed dashed;border-color: transparent rgba(5,16,26,0.6) transparent transparent;font-size: 0;line-height: 0;}
diff --git a/public/react/src/modules/courses/shixunHomework/CommitSummary.js b/public/react/src/modules/courses/shixunHomework/CommitSummary.js
index 8e3097497..702546191 100644
--- a/public/react/src/modules/courses/shixunHomework/CommitSummary.js
+++ b/public/react/src/modules/courses/shixunHomework/CommitSummary.js
@@ -155,7 +155,7 @@ class CommitSummary extends Component{
className="mdInForm">
{getFieldDecorator('description', {
rules: [{
- required: true, message: '请输入帖子内容',
+ required: true, message: '请在此输入总结内容,最多5000个字符',
}, {
max: 5000, message: '最大限制为5000个字符',
}],
diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
index 07135d76b..3341889d8 100644
--- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
+++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
@@ -2064,9 +2064,8 @@ class Trainingjobsetting extends Component {
color:"#666666",
}} disabled={!flagPageEdit} className="c_grey mt20 ml30"
value={"自定义分值"} style={{"color":"#666666"}}>自定义分值
-
this.testscripttip(0)}>
{testscripttiptype===true?
-
+
关卡名称(需要学生完成的任务请选中)
From 1ea06b32406b2bca5358069cc45d838e7b4d1905 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Fri, 12 Jul 2019 15:37:42 +0800
Subject: [PATCH 07/18] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/graduation/tasks/GraduationTaskssettinglist.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
index 9a574b655..bde46ff4b 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
@@ -41,7 +41,7 @@ class GraduationTaskssettinglist extends Component{
cross_comment:null,
search:null,
order:"updated_at",
- b_order:"asc",
+ b_order:"desc",
course_group:undefined,
loadingstate:true,
operationId:null,
From 0354f3eee2b0ee1eb3e9e34fce7f9054ee4de72d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Fri, 12 Jul 2019 15:57:56 +0800
Subject: [PATCH 08/18] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/courses/shixunHomework/Trainingjobsetting.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
index 3341889d8..2bfe2091e 100644
--- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
+++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
@@ -2087,7 +2087,7 @@ class Trainingjobsetting extends Component {
:""}
-
this.testscripttip(0)}>
+
this.testscripttip(0)}>
关卡名称
Date: Fri, 12 Jul 2019 16:05:28 +0800
Subject: [PATCH 09/18] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/courses/shixunHomework/Homeworddescription.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Homeworddescription.js b/public/react/src/modules/courses/shixunHomework/Homeworddescription.js
index 472d76d2c..df1f33ba8 100644
--- a/public/react/src/modules/courses/shixunHomework/Homeworddescription.js
+++ b/public/react/src/modules/courses/shixunHomework/Homeworddescription.js
@@ -89,7 +89,7 @@ class Homeworddescription extends Component {
{/**/}
{/**/}
-
From b0e3bf1702bebe076dc5ccd9520f7bc250980aff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Fri, 12 Jul 2019 17:07:06 +0800
Subject: [PATCH 10/18] =?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/courses/poll/pollStyle.css | 1 +
public/react/src/modules/courses/shixunHomework/Listofworks.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/poll/pollStyle.css b/public/react/src/modules/courses/poll/pollStyle.css
index 1b60b2c7c..360315e03 100644
--- a/public/react/src/modules/courses/poll/pollStyle.css
+++ b/public/react/src/modules/courses/poll/pollStyle.css
@@ -44,6 +44,7 @@
.right-black-trangles{border-width: 8px;position: absolute;top: 10px;left: -16px;border-style: dashed solid dashed dashed;border-color: transparent rgba(5,16,26,0.6) transparent transparent;font-size: 0;line-height: 0;}
.top-black-trangle{border-width: 8px;position: absolute;top: -16px;right: 4px;border-style: dashed solid dashed dashed;border-color: transparent transparent rgba(5,16,26,0.6) transparent;font-size: 0;line-height: 0;}
.invite-tipysl{color: #999999; box-sizing: border-box;text-align: center;border-radius: 2px;font-size: 14px}
+.edu-position-hideysl li a:hover{ background:#F1F1F1; color:#05101A;}
.to-back-left {
width: 0;
height: 0;
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js
index 92cfa4d8b..0892db098 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworks.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js
@@ -1601,7 +1601,7 @@ class Listofworks extends Component {
{order === "update_time" ? "时间" : order === "work_score" ? "成绩" : order === "student_id" ? "学号" : ""}排序
-
+
this.funorder("update_time")} data-remote="true" className=" font-12" style={{"text-align": "center "}}>更新时间
this.funorder("work_score")} data-remote="true" className=" font-12" style={{"text-align": "center "}}>最终成绩
this.funorder("student_id")} data-remote="true" className=" font-12" style={{"text-align": "center "}}>学生学号
From 9d86b2a2eb74a8882805278c99c2d7bf73cf32dd 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, 13 Jul 2019 10:32:04 +0800
Subject: [PATCH 11/18] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/courses/shixunHomework/Listofworks.js | 12 +++++++++++-
.../courses/shixunHomework/ShixunHomeworkPage.js | 10 +++++-----
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js
index 0892db098..d92848219 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworks.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js
@@ -29,6 +29,7 @@ import Associationmodel from '../coursesPublic/Associationmodel';
import '../css/members.css'
import '../css/busyWork.css'
import '../poll/pollStyle.css'
+import './style.css';
import moment from 'moment';
import 'moment/locale/zh-cn';
import {getImageUrl, toPath} from 'educoder';
@@ -1595,13 +1596,22 @@ class Listofworks extends Component {
{teacherdata === undefined ? "" : teacherdata.student_works.length} 个检索结果({teacherdata === undefined ? "" : teacherdata.all_member_count}学生)
+
From 265d2a2004b75915d36cad8646b63e7ad98acd1e 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, 13 Jul 2019 10:40:30 +0800
Subject: [PATCH 12/18] b
---
.../src/modules/courses/shixunHomework/Workquestionandanswer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
index 9602ad78c..a63c25da5 100644
--- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
+++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
@@ -409,7 +409,7 @@ class Workquestionandanswer extends Component {
- {jobsettingsdata === undefined || jobsettingsdata.data.description === null ? "无" :
+ {jobsettingsdata === undefined || jobsettingsdata.data.description === null ?
"无"
:
-
+
From 75bb78294a5e76b2521ede973e2b6b67c824cd6a 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, 13 Jul 2019 15:07:25 +0800
Subject: [PATCH 16/18] =?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/AppConfig.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js
index 335ab80fa..76497748c 100644
--- a/public/react/src/AppConfig.js
+++ b/public/react/src/AppConfig.js
@@ -145,7 +145,7 @@ export function initAxiosInterceptors(props) {
}
if (response.data.status === 402) {
- locationurl(response.data.url);
+ locationurl('/account/basic');
}
From ea6cfcc03cc2581f3a0d8b51446fc8e3b8a9d09d 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, 13 Jul 2019 15:10:17 +0800
Subject: [PATCH 17/18] =?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/AppConfig.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js
index 76497748c..335ab80fa 100644
--- a/public/react/src/AppConfig.js
+++ b/public/react/src/AppConfig.js
@@ -145,7 +145,7 @@ export function initAxiosInterceptors(props) {
}
if (response.data.status === 402) {
- locationurl('/account/basic');
+ locationurl(response.data.url);
}
From 23dd85b8f6a6d52ae90381cc51f5641725a07a79 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, 13 Jul 2019 15:31:39 +0800
Subject: [PATCH 18/18] =?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/App.js | 2 +-
public/react/src/modules/tpm/NewHeader.js | 2 +-
public/react/src/modules/user/AccountPage.js | 236 ++++++++---------
.../src/modules/user/account/AccountBasic.js | 238 +++++++++---------
.../src/modules/user/account/AccountNav.js | 136 +++++-----
5 files changed, 307 insertions(+), 307 deletions(-)
diff --git a/public/react/src/App.js b/public/react/src/App.js
index dfb8c89d0..dbd8e2c4c 100644
--- a/public/react/src/App.js
+++ b/public/react/src/App.js
@@ -274,7 +274,7 @@ class App extends Component {
{/**/}
{/*认证*/}
-
+
{/*403*/}
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index e31603f3c..6890eeb74 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -754,7 +754,7 @@ submittojoinclass=(value)=>{
我的实训
我的实践课程
我的项目
- 账号管理
+ 账号管理
{/*this.educoderlogin()} >登入测试接口 */}
{/*this.trialapplications()} >试用申请 */}
{/* 兴趣页 */}
diff --git a/public/react/src/modules/user/AccountPage.js b/public/react/src/modules/user/AccountPage.js
index c61eed4c4..87a5b3a9e 100644
--- a/public/react/src/modules/user/AccountPage.js
+++ b/public/react/src/modules/user/AccountPage.js
@@ -1,118 +1,118 @@
-import React, { Component } from 'react';
-
-import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
-import {CNotificationHOC} from '../courses/common/CNotificationHOC'
-import Loading from '../../Loading';
-
-import Loadable from 'react-loadable';
-
-import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
-
-import { SnackbarHOC, getImageUrl } from 'educoder';
-import AccountNav from './account/AccountNav'
-import axios from 'axios'
-
-const AccountBasic= Loadable({
- loader: () => import('./account/AccountBasic'),
- loading: Loading,
-})
-const AccountBasicEdit= Loadable({
- loader: () => import('./account/AccountBasicEdit'),
- loading: Loading,
-})
-
-const AccountCertification= Loadable({
- loader: () => import('./account/AccountCertification'),
- loading: Loading,
-})
-const AccountSecure= Loadable({
- loader: () => import('./account/AccountSecure'),
- loading: Loading,
-})
-
-class AccountPage extends Component {
- constructor (props) {
- super(props)
- this.state = {
- basicInfo:undefined
- }
- }
-
- componentDidUpdate =(prevState)=>{
- if(this.props.current_user && this.props.current_user != prevState.current_user){
- this.getBasicInfo(this.props.current_user.login);
- }
- }
-
- componentDidMount = () =>{
- if(this.props.current_user){
- this.getBasicInfo(this.props.current_user.login);
- }
- }
-
- getBasicInfo=(login)=>{
- let url=`/users/accounts/${login || this.props.current_user.login}.json`;
- axios.get(url).then((result)=>{
- if(result.data){
- if(result.data && result.data.base_info_completed == false){
- this.props.history.push(`/account/basic/edit`);
- }
- this.setState({
- basicInfo: Object.assign({}, {...result.data}, { avatar_url: `${result.data.avatar_url}?t=${new Date().getTime()}`})
- })
- }
- }).catch((error)=>{
- console.log(error);
- })
- }
- render() {
- let { basicInfo }=this.state;
- const common = { basicInfo, getBasicInfo : this.getBasicInfo }
- return (
-
-
-
-
-
-
- ( )
- }
- >
- ( )
- }
- >
-
- ( )
- }
- >
-
- ( )
- }
- >
-
- ( )
- }
- >
-
-
-
-
- );
- }
-}
-
-export default CNotificationHOC()(SnackbarHOC() ( TPMIndexHOC ( AccountPage )));
+import React, { Component } from 'react';
+
+import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
+import {CNotificationHOC} from '../courses/common/CNotificationHOC'
+import Loading from '../../Loading';
+
+import Loadable from 'react-loadable';
+
+import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
+
+import { SnackbarHOC, getImageUrl } from 'educoder';
+import AccountNav from './account/AccountNav'
+import axios from 'axios'
+
+const AccountBasic= Loadable({
+ loader: () => import('./account/AccountBasic'),
+ loading: Loading,
+})
+const AccountBasicEdit= Loadable({
+ loader: () => import('./account/AccountBasicEdit'),
+ loading: Loading,
+})
+
+const AccountCertification= Loadable({
+ loader: () => import('./account/AccountCertification'),
+ loading: Loading,
+})
+const AccountSecure= Loadable({
+ loader: () => import('./account/AccountSecure'),
+ loading: Loading,
+})
+
+class AccountPage extends Component {
+ constructor (props) {
+ super(props)
+ this.state = {
+ basicInfo:undefined
+ }
+ }
+
+ componentDidUpdate =(prevState)=>{
+ if(this.props.current_user && this.props.current_user != prevState.current_user){
+ this.getBasicInfo(this.props.current_user.login);
+ }
+ }
+
+ componentDidMount = () =>{
+ if(this.props.current_user){
+ this.getBasicInfo(this.props.current_user.login);
+ }
+ }
+
+ getBasicInfo=(login)=>{
+ let url=`/users/accounts/${login || this.props.current_user.login}.json`;
+ axios.get(url).then((result)=>{
+ if(result.data){
+ if(result.data && result.data.base_info_completed == false){
+ this.props.history.push(`/profile/basic/edit`);
+ }
+ this.setState({
+ basicInfo: Object.assign({}, {...result.data}, { avatar_url: `${result.data.avatar_url}?t=${new Date().getTime()}`})
+ })
+ }
+ }).catch((error)=>{
+ console.log(error);
+ })
+ }
+ render() {
+ let { basicInfo }=this.state;
+ const common = { basicInfo, getBasicInfo : this.getBasicInfo }
+ return (
+
+
+
+
+
+
+ ( )
+ }
+ >
+ ( )
+ }
+ >
+
+ ( )
+ }
+ >
+
+ ( )
+ }
+ >
+
+ ( )
+ }
+ >
+
+
+
+
+ );
+ }
+}
+
+export default CNotificationHOC()(SnackbarHOC() ( TPMIndexHOC ( AccountPage )));
diff --git a/public/react/src/modules/user/account/AccountBasic.js b/public/react/src/modules/user/account/AccountBasic.js
index 831fd39ca..7eaecc625 100644
--- a/public/react/src/modules/user/account/AccountBasic.js
+++ b/public/react/src/modules/user/account/AccountBasic.js
@@ -1,119 +1,119 @@
-import React, { Component } from 'react';
-
-import { SnackbarHOC, getImageUrl, City } from 'educoder';
-import { Form, Button, Input, Radio, Select, Tooltip, Icon } from 'antd'
-import './common.css'
-
-
-const RadioGroup = Radio.Group;
-const Option = Select.Option
-const radioOptions = [
- { label: '男', value: 'boy' },
- { label: '女', value: 'girl' },
-];
-class AccountBasicEdit extends Component {
- constructor(props){
- super(props);
-
- }
-
- render() {
- const { getFieldDecorator } = this.props.form;
- const {basicInfo} =this.props
- const showRealName = false;
- return (
-
-
-
-
-
基本信息
-
this.props.history.push('/account/basic/edit')}>修改
-
-
-
- {basicInfo && basicInfo.nickname}
-
-
-
- {basicInfo && basicInfo.name}
-
-
-
- {basicInfo && basicInfo.gender == 0?"男":"女"}
-
-
-
-
- {basicInfo && basicInfo.location} {basicInfo && basicInfo.location_city}
-
-
-
- {basicInfo && basicInfo.technical_title}
-
-
-
- {basicInfo && basicInfo.school_name}
-
-
-
- {basicInfo && basicInfo.department_name}
-
-
-
-
* 我们确保你所提供的信息均处于严格保密状态,不会泄露
-
- );
- }
-}
-const WrappedAccountBasicEdit = Form.create({ name: 'AccountBasicEdit' })(AccountBasicEdit);
-
-export default WrappedAccountBasicEdit;
+import React, { Component } from 'react';
+
+import { SnackbarHOC, getImageUrl, City } from 'educoder';
+import { Form, Button, Input, Radio, Select, Tooltip, Icon } from 'antd'
+import './common.css'
+
+
+const RadioGroup = Radio.Group;
+const Option = Select.Option
+const radioOptions = [
+ { label: '男', value: 'boy' },
+ { label: '女', value: 'girl' },
+];
+class AccountBasicEdit extends Component {
+ constructor(props){
+ super(props);
+
+ }
+
+ render() {
+ const { getFieldDecorator } = this.props.form;
+ const {basicInfo} =this.props
+ const showRealName = false;
+ return (
+
+
+
+
+
基本信息
+
this.props.history.push('/profile/basic/edit')}>修改
+
+
+
+ {basicInfo && basicInfo.nickname}
+
+
+
+ {basicInfo && basicInfo.name}
+
+
+
+ {basicInfo && basicInfo.gender == 0?"男":"女"}
+
+
+
+
+ {basicInfo && basicInfo.location} {basicInfo && basicInfo.location_city}
+
+
+
+ {basicInfo && basicInfo.technical_title}
+
+
+
+ {basicInfo && basicInfo.school_name}
+
+
+
+ {basicInfo && basicInfo.department_name}
+
+
+
+
* 我们确保你所提供的信息均处于严格保密状态,不会泄露
+
+ );
+ }
+}
+const WrappedAccountBasicEdit = Form.create({ name: 'AccountBasicEdit' })(AccountBasicEdit);
+
+export default WrappedAccountBasicEdit;
diff --git a/public/react/src/modules/user/account/AccountNav.js b/public/react/src/modules/user/account/AccountNav.js
index 82aefa5d6..9aa29b699 100644
--- a/public/react/src/modules/user/account/AccountNav.js
+++ b/public/react/src/modules/user/account/AccountNav.js
@@ -1,68 +1,68 @@
-import React, { Component } from 'react';
-
-import { SnackbarHOC, getImageUrl } from 'educoder';
-import AccountImg from './AccountImg'
-class AccountNav extends Component {
- toBasic = () => {
- this.props.history.push(`/account/basic`)
- }
- toCertification = () => {
- this.props.history.push(`/account/certification`)
- }
- toSecure = () => {
- this.props.history.push(`/account/secure`)
- }
- render() {
- let { basicInfo } = this.props
- console.log(this.props);
- const path = window.location.pathname
- const isBasic = path.indexOf('basic') != -1 || path == "/account"
- const isCertification = path.indexOf('certification') != -1
- const isSecure = path.indexOf('secure') != -1
- return (
-
- {
- basicInfo &&
-
-
-
-
{basicInfo.name}
-
{basicInfo.technical_title}
-
-
-
-
账号管理
-
-
-
- 基本信息
- {
- (basicInfo.authentication == 'uncertified' || basicInfo.authentication == 'applying') &&
-
- }
- {
- basicInfo.authentication == 'certified' &&
-
- }
-
-
- 认证信息
- {
- basicInfo.professional_certification == 'certified' && basicInfo.authentication == 'certified' ?
- :
-
- }
-
-
- 安全设置
-
-
-
-
- }
-
- );
- }
-}
-
-export default AccountNav ;
+import React, { Component } from 'react';
+
+import { SnackbarHOC, getImageUrl } from 'educoder';
+import AccountImg from './AccountImg'
+class AccountNav extends Component {
+ toBasic = () => {
+ this.props.history.push(`/profile/basic`)
+ }
+ toCertification = () => {
+ this.props.history.push(`/profile/certification`)
+ }
+ toSecure = () => {
+ this.props.history.push(`/profile/secure`)
+ }
+ render() {
+ let { basicInfo } = this.props
+ console.log(this.props);
+ const path = window.location.pathname
+ const isBasic = path.indexOf('basic') != -1 || path == "/profile"
+ const isCertification = path.indexOf('certification') != -1
+ const isSecure = path.indexOf('secure') != -1
+ return (
+
+ {
+ basicInfo &&
+
+
+
+
{basicInfo.name}
+
{basicInfo.technical_title}
+
+
+
+
账号管理
+
+
+
+ 基本信息
+ {
+ (basicInfo.authentication == 'uncertified' || basicInfo.authentication == 'applying') &&
+
+ }
+ {
+ basicInfo.authentication == 'certified' &&
+
+ }
+
+
+ 认证信息
+ {
+ basicInfo.professional_certification == 'certified' && basicInfo.authentication == 'certified' ?
+ :
+
+ }
+
+
+ 安全设置
+
+
+
+
+ }
+
+ );
+ }
+}
+
+export default AccountNav ;