diff --git a/src/App.css b/src/App.css
index 2abbaf5e1..9b0b3741f 100644
--- a/src/App.css
+++ b/src/App.css
@@ -1,3 +1,4 @@
+@import url(./font/font.css);
.App {
text-align: center;
}
diff --git a/src/font/font.css b/src/font/font.css
new file mode 100644
index 000000000..c9a06976c
--- /dev/null
+++ b/src/font/font.css
@@ -0,0 +1,5 @@
+/* 导航栏 */
+@font-face {
+ font-family: "YouSheBiaoTiHei";
+ src: url('./youshebiaotihei-2-webfont.woff2');
+}
\ No newline at end of file
diff --git a/src/font/youshebiaotihei-2-webfont.woff2 b/src/font/youshebiaotihei-2-webfont.woff2
new file mode 100644
index 000000000..b9d9abd7a
Binary files /dev/null and b/src/font/youshebiaotihei-2-webfont.woff2 differ
diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js
index 70a9d681d..8a578834e 100644
--- a/src/forge/Head/Header.js
+++ b/src/forge/Head/Header.js
@@ -12,6 +12,7 @@ import { getOrzCompanyList } from '../../forge/Information/api';
import AddProjectModal from './AddProjectModal';
import '../../modules/tpm/TPMIndex.css';
import CheckProfile from '../Component/ProfileModal/Profile';
+import logo from './img/logo.png'
import './header.scss';
const { SubMenu } = Menu
@@ -334,6 +335,11 @@ class NewHeader extends Component {
return (
} />,
+ )}
+
+
+
+
+ {getFieldDecorator('remember', {
+ valuePropName: 'checked',
+ initialValue: cookie.load('autologin'),
+ })(下次自动登录)}
+
+ {/* 忘记密码? */}
+
+
+
+ 没有账号?去注册
+
+ {
+ // setting && setting.third_party_new && setting.third_party_new.length > 0 ?
+ //
+ //
+ // 快速登录
+ // {setting.third_party_new.map((item,key)=>{
+ // return(
+ //
+ //
+ //
+ //
+ //
+ // )
+ // })
+ // }
+ //
+ //
+ }
)
diff --git a/src/modules/loginRegister/LoginRegisterPageNew.scss b/src/modules/loginRegister/LoginRegisterPageNew.scss
index ceb4b1aab..b81a2fc98 100644
--- a/src/modules/loginRegister/LoginRegisterPageNew.scss
+++ b/src/modules/loginRegister/LoginRegisterPageNew.scss
@@ -49,10 +49,12 @@
}
}
.right_cont {
+ height: 100%;
width: 50%;
margin-left: auto;
display: flex;
flex-direction: column;
+ justify-content: space-between;
.login_register_head {
font-family: alibaba-medium;
color: #283444;
diff --git a/src/modules/loginRegister/RegisterNew.jsx b/src/modules/loginRegister/RegisterNew.jsx
index 56c939b49..c7967c8e0 100644
--- a/src/modules/loginRegister/RegisterNew.jsx
+++ b/src/modules/loginRegister/RegisterNew.jsx
@@ -225,127 +225,125 @@ function Register(props){
}
return(
-
-
-
-
-
{mess}
-
- {getFieldDecorator('register_username',{
- rules:[
- {
- transform: (value)=>{return value.trim()}
- },
- {
- required:true,
- message:"请输入用户名"
- },
- {
- pattern: /^[a-zA-Z]/,
- message: "用户名必须以字母开头"
- },
- {
- pattern: /[a-zA-Z0-9]$/,
- message: "用户名只能使用英文字母和数字"
- },
- {
- pattern: /^[^\s]*$/,
- message: "用户名不能包含空格"
- },
- {
- min: 4,
- max: 15,
- message: "用户名长度为4到15个字符"
- },
- {
- validator: (rule, value, callback) => { usernameConfirm(rule, value, callback) }
- }
- ],
- validateTrigger:"onBlur",
- validateFirst: true,
- })(} />)}
-
-
- {getFieldDecorator('email',{
- rules:[
- {
- validator: (rule, value, callback) => { emailConfirm(rule, value, callback) }
- }
- ],
- validateTrigger:"onBlur",
- validateFirst: true,
- })( } />)}
-
-
- {/*
-
- {getFieldDecorator('captcha', {
- rules: [{
- required: true,
- message: "请输入验证码"
- }],
- validateTrigger: "onBlur",
- })(
-
- )}
-
-
- */}
-
-
- {getFieldDecorator('register_psd',{
- rules:[
- {
- validator: (rule, value, callback) => { comfirmPassWord(rule, value, callback, 1) }
- },
- {
- validator: (rule, value, callback) => { checkPassWord(rule, value, callback) }
- }
- ],
- validateTrigger:"onBlur",
- validateFirst: true,
- })(} />)}
-
- {/* 请输入8-16位密码,区分大小写、不能使用空格 */}
-
-
- {getFieldDecorator('psdComfirm', {
- rules: [
- {
- required: true,
- message: "请确认登录密码"
- },
- {
- validator: (rule, value, callback) => { comfirmPassWord(rule, value, callback, 2) }
- }
- ],
- validateTrigger: "onBlur",
- validateFirst: true,
- })(} />)}
-
-
- {/*
- {getFieldDecorator('agreement', {
- valuePropName: 'checked',
- initialValue: false,
- rules: [
- {
- validator: (rule, value, callback) => { comfirmRead(rule, value, callback) }
- }
- ],
- })(我已阅读并接受《软件发展新技术服务协议条款》)}
- */}
-
-
- 已有账号,立即登录
- {/* */}
+
+
+
+
{mess}
+
+ {getFieldDecorator('register_username',{
+ rules:[
+ {
+ transform: (value)=>{return value.trim()}
+ },
+ {
+ required:true,
+ message:"请输入用户名"
+ },
+ {
+ pattern: /^[a-zA-Z]/,
+ message: "用户名必须以字母开头"
+ },
+ {
+ pattern: /[a-zA-Z0-9]$/,
+ message: "用户名只能使用英文字母和数字"
+ },
+ {
+ pattern: /^[^\s]*$/,
+ message: "用户名不能包含空格"
+ },
+ {
+ min: 4,
+ max: 15,
+ message: "用户名长度为4到15个字符"
+ },
+ {
+ validator: (rule, value, callback) => { usernameConfirm(rule, value, callback) }
+ }
+ ],
+ validateTrigger:"onBlur",
+ validateFirst: true,
+ })( } />)}
+
+
+ {getFieldDecorator('email',{
+ rules:[
+ {
+ validator: (rule, value, callback) => { emailConfirm(rule, value, callback) }
+ }
+ ],
+ validateTrigger:"onBlur",
+ validateFirst: true,
+ })(} />)}
+
+
+ {/*
+
+ {getFieldDecorator('captcha', {
+ rules: [{
+ required: true,
+ message: "请输入验证码"
+ }],
+ validateTrigger: "onBlur",
+ })(
+
+ )}
+
+
+ */}
+
+
+ {getFieldDecorator('register_psd',{
+ rules:[
+ {
+ validator: (rule, value, callback) => { comfirmPassWord(rule, value, callback, 1) }
+ },
+ {
+ validator: (rule, value, callback) => { checkPassWord(rule, value, callback) }
+ }
+ ],
+ validateTrigger:"onBlur",
+ validateFirst: true,
+ })(} />)}
+
+ {/* 请输入8-16位密码,区分大小写、不能使用空格 */}
+
+
+ {getFieldDecorator('psdComfirm', {
+ rules: [
+ {
+ required: true,
+ message: "请确认登录密码"
+ },
+ {
+ validator: (rule, value, callback) => { comfirmPassWord(rule, value, callback, 2) }
+ }
+ ],
+ validateTrigger: "onBlur",
+ validateFirst: true,
+ })(} />)}
+
+
+ {/*
+ {getFieldDecorator('agreement', {
+ valuePropName: 'checked',
+ initialValue: false,
+ rules: [
+ {
+ validator: (rule, value, callback) => { comfirmRead(rule, value, callback) }
+ }
+ ],
+ })(我已阅读并接受《软件发展新技术服务协议条款》)}
+ */}
+
+
+ 已有账号,立即登录
+ {/* */}
)
}
diff --git a/src/modules/tpm/TPMIndex.css b/src/modules/tpm/TPMIndex.css
index cad76a457..0c1f51d0c 100644
--- a/src/modules/tpm/TPMIndex.css
+++ b/src/modules/tpm/TPMIndex.css
@@ -36,11 +36,21 @@ body>.-task-title {
}
.headerContent{
margin:0px auto;
- padding:0px 30px;
display: flex;
align-items: center;
height: 100%;
- justify-content: flex-end;
+ justify-content: space-between;
+ .title {
+ display: flex;
+ align-items: center;
+ font-family: YouSheBiaoTiHei;
+ }
+ .font32 {
+ font-size: 32px;
+ }
+ .font24 {
+ font-size: 24px;
+ }
}
.globalSpin {
max-height: 700px !important;
diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js
index 4010dd96d..d3209bcdc 100644
--- a/src/modules/tpm/TPMIndexHOC.js
+++ b/src/modules/tpm/TPMIndexHOC.js
@@ -398,7 +398,7 @@ export function TPMIndexHOC(WrappedComponent) {
/> : ""}
{npsModalVisible && {this.closeNpsModal()}} npsActionType={npsActionType} npsActionId={npsActionId}/>}
{ !pathCheck && }
- {!publicNav && }
+ {/* {!publicNav && } */}
{/* { !(this.hideNavPath(path)) &&