diff --git a/src/modules/login/LoginDialog.js b/src/modules/login/LoginDialog.js index aebfba8c..43bd9f09 100644 --- a/src/modules/login/LoginDialog.js +++ b/src/modules/login/LoginDialog.js @@ -4,6 +4,7 @@ import Dialog from 'material-ui/Dialog'; import { notification } from 'antd'; import axios from 'axios'; +import educoderLogo from './educoder.png'; import './LoginDialog.css'; import { broadcastChannelPostMessage } from 'educoder' @@ -430,11 +431,6 @@ class LoginDialog extends Component { getloginurl = (url) => { window.location.href = url; }; - openweixinlogin = () => { - this.setState({ - weixinlogin: true - }) - } openNotifications = (btn) => { // type 1 成功提示绿色 2提醒颜色黄色 3错误提示红色 notification.open({ @@ -470,18 +466,17 @@ class LoginDialog extends Component { } render() { - let { qqlogin, login, isGoing, isGoingValue, disabled, bottonclass, Phonenumberisnotco, + let { login, isGoing, isGoingValue, disabled, Phonenumberisnotco, dialogBox, isRender, weixinlogin } = this.state; let { settings } = this.props; if (isRender === undefined) { isRender = false } - return ( this.handleDialogClose()} @@ -512,7 +507,7 @@ class LoginDialog extends Component {
  • { this.enter(0) }}>登录
  • }
    - {weixinlogin === true ? "" :
    +
    @@ -581,28 +576,25 @@ class LoginDialog extends Component { this.getloginurl(`${settings && settings.common && settings.common.register}`)} className="color-grey-9">注册

    - - {this.props.user && this.props.user.main_site === true ? this.state.isphone === true ?

    - ———————— 快速登录 ———————— -

    - this.openweixinlogin()}> - 微信登录 - - this.openqqlogin()} className={"ml10"}> - qq登录 - -
    -

    :

    - + { + settings && settings.third_party && settings.third_party.length > 0 ? +

    ———————— 快速登录 ————————

    - this.openphoneqqlogin()} className={"ml10"}> - qq登录 - + {settings.third_party.map((item,key)=>{ + return( + + {`${item.name}登录`} + + ) + }) + }
    -

    : ""} - } - {weixinlogin === true ? : ""} {weixinlogin === true ?

    this.hideweixinlogin()}>返回账号登录 -

    : ""} +

    : ""} */}
    {/*快捷登录*/}
    diff --git a/src/modules/login/educoder.png b/src/modules/login/educoder.png new file mode 100644 index 00000000..dbe8fb56 Binary files /dev/null and b/src/modules/login/educoder.png differ