Commit f023f366 by 肖康

注册登录调整

parent 83d8ff81
Showing with 6 additions and 5 deletions
...@@ -196,7 +196,7 @@ const Page = () => { ...@@ -196,7 +196,7 @@ const Page = () => {
<span <span
className={`${style.typeButton} ${style.cursorPointer} ${(loginType === '2') && style.typeButtonChoosen}`} className={`${style.typeButton} ${style.cursorPointer} ${(loginType === '2') && style.typeButtonChoosen}`}
onClick={() => handleTypeChange('2')}> onClick={() => handleTypeChange('2')}>
免密登录/注册 免密登录
</span> </span>
</div> </div>
<form onSubmit={handleSubmit}> <form onSubmit={handleSubmit}>
...@@ -219,9 +219,7 @@ const Page = () => { ...@@ -219,9 +219,7 @@ const Page = () => {
</Link> </Link>
</div> </div>
<button type="submit" className={style.loginButton} >登录</button> <button type="submit" className={style.loginButton} >登录</button>
<div className={style.registerButton}>
<Link href="/reg" className={style.cursorPointer} >立即注册</Link>
</div>
</> </>
) : ( ) : (
<> <>
...@@ -238,7 +236,7 @@ const Page = () => { ...@@ -238,7 +236,7 @@ const Page = () => {
<input type="text" value={code} className={style.registerInput} placeholder='请输入短信验证码' onChange={handleCodeChange} required /> <input type="text" value={code} className={style.registerInput} placeholder='请输入短信验证码' onChange={handleCodeChange} required />
<button className={codeText=='发送验证码'?`${style.codeButton }`:`${style.codeButton } ${style.dis}`} onClick={handleCodeSend}>{codeText}</button> <button className={codeText=='发送验证码'?`${style.codeButton }`:`${style.codeButton } ${style.dis}`} onClick={handleCodeSend}>{codeText}</button>
</div> </div>
<div className={style.registerTips}>未注册的手机号将自动完成注册</div> {/* <div className={style.registerTips}>未注册的手机号将自动完成注册</div> */}
{ showMsg && ( { showMsg && (
<> <>
<p className={style.showMsg}>{msg}</p> <p className={style.showMsg}>{msg}</p>
...@@ -253,6 +251,9 @@ const Page = () => { ...@@ -253,6 +251,9 @@ const Page = () => {
<button type="submit" className={style.registerLoginButton}>登录</button> <button type="submit" className={style.registerLoginButton}>登录</button>
</> </>
)} )}
<div className={style.registerButton}>
<Link href="/reg" className={style.cursorPointer} >去注册</Link>
</div>
</form> </form>
</div> </div>
{showRule && ( {showRule && (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment