fix: fix unable to login via wechat

This commit is contained in:
JustSong
2025-02-01 12:04:28 +08:00
parent c67b167f4f
commit 1521df6551
2 changed files with 39 additions and 1 deletions

View File

@@ -240,6 +240,44 @@ const LoginForm = () => {
)} )}
</Card.Content> </Card.Content>
</Card> </Card>
<Modal
onClose={() => setShowWeChatLoginModal(false)}
onOpen={() => setShowWeChatLoginModal(true)}
open={showWeChatLoginModal}
size={'mini'}
>
<Modal.Content>
<Modal.Description>
<Image src={status.wechat_qrcode} fluid />
<div style={{ textAlign: 'center' }}>
<p>
微信扫码关注公众号输入验证码获取验证码三分钟内有效
</p>
</div>
<Form size='large'>
<Form.Input
fluid
placeholder='验证码'
name='wechat_verification_code'
value={inputs.wechat_verification_code}
onChange={handleChange}
/>
<Button
fluid
size='large'
style={{
background: '#2F73FF', // 使用更现代的蓝色
color: 'white',
marginBottom: '1.5em',
}}
onClick={onSubmitWeChatVerificationCode}
>
登录
</Button>
</Form>
</Modal.Description>
</Modal.Content>
</Modal>
</Grid.Column> </Grid.Column>
</Grid> </Grid>
); );

View File

@@ -171,7 +171,7 @@ const RegisterForm = () => {
<Button <Button
onClick={sendVerificationCode} onClick={sendVerificationCode}
disabled={loading} disabled={loading}
style={{ backgroundColor: '#2185d0', color: 'white' }} // style={{ backgroundColor: '#2F73FF', color: 'white' }}
> >
获取验证码 获取验证码
</Button> </Button>