File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
web/default/src/components Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,44 @@ const LoginForm = () => {
240240 ) }
241241 </ Card . Content >
242242 </ Card >
243+ < Modal
244+ onClose = { ( ) => setShowWeChatLoginModal ( false ) }
245+ onOpen = { ( ) => setShowWeChatLoginModal ( true ) }
246+ open = { showWeChatLoginModal }
247+ size = { 'mini' }
248+ >
249+ < Modal . Content >
250+ < Modal . Description >
251+ < Image src = { status . wechat_qrcode } fluid />
252+ < div style = { { textAlign : 'center' } } >
253+ < p >
254+ 微信扫码关注公众号,输入「验证码」获取验证码(三分钟内有效)
255+ </ p >
256+ </ div >
257+ < Form size = 'large' >
258+ < Form . Input
259+ fluid
260+ placeholder = '验证码'
261+ name = 'wechat_verification_code'
262+ value = { inputs . wechat_verification_code }
263+ onChange = { handleChange }
264+ />
265+ < Button
266+ fluid
267+ size = 'large'
268+ style = { {
269+ background : '#2F73FF' , // 使用更现代的蓝色
270+ color : 'white' ,
271+ marginBottom : '1.5em' ,
272+ } }
273+ onClick = { onSubmitWeChatVerificationCode }
274+ >
275+ 登录
276+ </ Button >
277+ </ Form >
278+ </ Modal . Description >
279+ </ Modal . Content >
280+ </ Modal >
243281 </ Grid . Column >
244282 </ Grid >
245283 ) ;
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ const RegisterForm = () => {
171171 < Button
172172 onClick = { sendVerificationCode }
173173 disabled = { loading }
174- style = { { backgroundColor : '#2185d0 ' , color : 'white' } }
174+ // style={{ backgroundColor: '#2F73FF ', color: 'white' }}
175175 >
176176 获取验证码
177177 </ Button >
You can’t perform that action at this time.
0 commit comments