Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 2b070705
authored
2026-06-03 18:39:47 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
扫码拒绝登录后,增加刷新按钮
1 parent
2db5b4bc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletions
lib/bloc/login_qr_cubit.dart
lib/ui/pages/login_v3/login_qr_page_v3.dart
lib/bloc/login_qr_cubit.dart
View file @
2b07070
...
...
@@ -121,7 +121,7 @@ class LoginQrCubit extends Cubit<LoginQrState> {
int
?
errCode
=
response
.
errCode
;
if
(
errCode
!=
null
&&
errCode
==
0
)
{
_doLogin
(
response
.
authCode
!);
}
else
if
(
errCode
==
-
2
)
{
}
else
if
(
errCode
==
-
4
)
{
// 用户主动取消
emit
(
state
.
copyWith
(
status:
3
,
...
...
lib/ui/pages/login_v3/login_qr_page_v3.dart
View file @
2b07070
...
...
@@ -256,6 +256,31 @@ class LoginQrPageV3 extends StatelessWidget {
color:
Color
(
0xFF333333
),
),
),
SizedBox
(
height:
20
),
InkWell
(
onTap:
()
{
loginQrCubit
.
refresh
();
},
borderRadius:
BorderRadius
.
circular
(
25
),
child:
Container
(
width:
200
,
height:
50
,
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
color:
Color
(
0xFF7691FA
),
borderRadius:
BorderRadius
.
circular
(
25
),
),
child:
Text
(
'重新登录'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
fontSize:
18
,
height:
1.0
,
color:
Color
(
0xFFFFFFFF
),
),
),
),
),
],
);
}
else
if
(
state
.
status
==
4
)
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment