From 4bc79b5153ef2669648a762628a319a857c600df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Mon, 8 Nov 2021 15:43:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Head/Header.js | 2 -- src/modules/login/LoginDialog.js | 3 --- src/modules/loginRegister/Login.jsx | 14 +++----------- src/modules/loginRegister/LoginRegisterPage.jsx | 2 -- src/modules/loginRegister/LoginRegisterPage.scss | 6 +++--- 5 files changed, 6 insertions(+), 21 deletions(-) diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js index 60a2d3bb..0239d58d 100644 --- a/src/forge/Head/Header.js +++ b/src/forge/Head/Header.js @@ -98,7 +98,6 @@ class NewHeader extends Component { } educoderlogin = () => { - console.log('111',window.location.pathname); //登录账号 if(window.location.pathname === "/"){ window.location.href="/login"; @@ -375,7 +374,6 @@ class NewHeader extends Component { } let search_url = settings && settings.common && settings.common.search; - console.log('Header.js',this.props) return (
diff --git a/src/modules/login/LoginDialog.js b/src/modules/login/LoginDialog.js index b15e86e8..fd8c4673 100644 --- a/src/modules/login/LoginDialog.js +++ b/src/modules/login/LoginDialog.js @@ -414,7 +414,6 @@ class LoginDialog extends Component { let { disabled } = this.state; if (disabled === false && e.keyCode === 13) { this.loginEDU() - console.log(1) } }; getloginurl = (url) => { @@ -457,8 +456,6 @@ class LoginDialog extends Component { render() { let { login, isGoing, isGoingValue, disabled , Phonenumberisnotco , dialogBox, isRender, weixinlogin } = this.state; let { settings } = this.props; - console.log('LofinDialog.js_props',this.props); - console.log('LofinDialog.js_third_party_lenght',settings && settings.third_party && settings.third_party.length); if (isRender === undefined) { isRender = false diff --git a/src/modules/loginRegister/Login.jsx b/src/modules/loginRegister/Login.jsx index c6208d2e..2262b76c 100644 --- a/src/modules/loginRegister/Login.jsx +++ b/src/modules/loginRegister/Login.jsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef, useState } from "react"; +import React, { useEffect, useState } from "react"; import { Form, Input, Button, Checkbox } from "antd"; import { Link } from "react-router-dom"; import axios from 'axios'; @@ -7,16 +7,10 @@ import cookie from 'react-cookies'; import './LoginRegisterPage.scss'; function Login(props){ - console.log('Login.js',props); const [message,setMessage] = useState(); - const [setting, setSetting] = useState({ - third_party: [{ - name: "educoder", - url: "https://data.educoder.net/oauth2?call_url=/oauth/authorize?client_id=d060ea87615f6f731880857bccc73f2620b0421b6780532cdf0df33583dbab4d&redirect_uri=https%3A%2F%2Fforgeplus.trustie.net%2Fapi%2Fauth%2Feducoder%2Fcallback&response_type=code" - }] - }); + const [setting, setSetting] = useState(undefined); const {form} = props; - const { getFieldDecorator } = form; + const {getFieldDecorator } = form; useEffect(()=>{ //控制密码输入框在DOM不可见value @@ -24,7 +18,6 @@ function Login(props){ //请求settings.json接口获取第三方登录平台信息 axios.get(`/setting.json`).then((response) => { if (response && response.data) { - console.log('response.data',response.data); setSetting(response.data.setting); } }) @@ -69,7 +62,6 @@ function Login(props){ } } - console.log('setting',setting); return(
diff --git a/src/modules/loginRegister/LoginRegisterPage.jsx b/src/modules/loginRegister/LoginRegisterPage.jsx index 94678f49..b606e057 100644 --- a/src/modules/loginRegister/LoginRegisterPage.jsx +++ b/src/modules/loginRegister/LoginRegisterPage.jsx @@ -10,8 +10,6 @@ import img2 from './img/img2.png'; import '../loginRegister/LoginRegisterPage.scss'; function LoginRegisterPage(props){ - console.log('LoginRegisterPage.js',props); - return(
diff --git a/src/modules/loginRegister/LoginRegisterPage.scss b/src/modules/loginRegister/LoginRegisterPage.scss index 71d74864..7113b49f 100644 --- a/src/modules/loginRegister/LoginRegisterPage.scss +++ b/src/modules/loginRegister/LoginRegisterPage.scss @@ -15,13 +15,13 @@ background-image: url(./img/bg.png); .logo{ height: 65px; - margin-top: 200px; + margin-top: 160px; } .ball{ height: 220px; z-index: 3; position: absolute; - bottom: 300px; + bottom: 270px; animation: moving2 10s linear infinite; } @keyframes moving2 { @@ -38,7 +38,7 @@ .banner{ height: 486px; position: absolute; - bottom: -50px; + bottom: -90px; left: 10px; } }