| | |
| | | } else if (way === 'weixin') { |
| | | signWays.push({ |
| | | type: 'weixin', |
| | | label: '微信登录', |
| | | label: '手机号快捷登录', |
| | | icon: <WechatOutlined />, |
| | | sort: 3 |
| | | }) |
| | |
| | | } else if (way === 'weixin') { |
| | | signWays.push({ |
| | | type: 'weixin', |
| | | label: '微信登录', |
| | | label: '手机号快捷登录', |
| | | sort: 3 |
| | | }) |
| | | } |
| | |
| | | const { wrap } = this.props |
| | | const { activeWay, signWays, appType } = this.state |
| | | |
| | | let style = {} |
| | | if (wrap.borderRadius) { |
| | | style.borderRadius = wrap.borderRadius |
| | | } |
| | | |
| | | return ( |
| | | <Form className="login-edit-form"> |
| | | {appType === 'pc' ? <div className="login-way-title">{activeWay.label}</div> : null} |
| | | {appType === 'pc' && wrap.topTip !== 'hidden' ? <div className="login-way-title">{activeWay.label}</div> : null} |
| | | {activeWay.type === 'uname_pwd' ? <div className="form-item-wrap"> |
| | | <Form.Item> |
| | | <Input |
| | |
| | | <Checkbox>{wrap.tip}</Checkbox>{wrap.groups.map((item, i) => (<span><span className="protocol" key={i}>《{item.label}》</span>{wrap.groups.length > i + 1 ? (wrap.groups.length > i + 2 ? '、' : '和') : null}</span>))} |
| | | </div> : null} |
| | | <Form.Item className="btn-login"> |
| | | <Button type="primary" onDoubleClick={() => this.changeMenu()} className="sign-form-button"> |
| | | <Button type="primary" style={style} onDoubleClick={() => this.changeMenu()} className="sign-form-button"> |
| | | 注册 |
| | | </Button> |
| | | </Form.Item> |
| | |
| | | <Checkbox>{wrap.tip}</Checkbox>{wrap.groups.map((item, i) => (<span><span className="protocol" key={i}>《{item.label}》</span>{wrap.groups.length > i + 1 ? (wrap.groups.length > i + 2 ? '、' : '和') : null}</span>))} |
| | | </div> : null} |
| | | <Form.Item className="btn-login"> |
| | | <Button type="primary" onDoubleClick={() => this.changeMenu()} className="sign-form-button"> |
| | | <Button type="primary" style={style} onDoubleClick={() => this.changeMenu()} className="sign-form-button"> |
| | | 注册 |
| | | </Button> |
| | | </Form.Item> |
| | |
| | | </div> : null} |
| | | {wrap.classify !== 'signin' ? <span className="mk-jump-way" onClick={() => this.props.changeway()}>已有账号,去登陆?</span> : null} |
| | | {appType === 'mob' && signWays.length > 1 ? <div className="sign-ways"> |
| | | <div className="title">其他登录方式</div> |
| | | <div className="title">其他注册方式</div> |
| | | <div className="content"> |
| | | {signWays.map((item, i) => { |
| | | if (activeWay.type === item.type) return null |