File tree 3 files changed +12
-14
lines changed
3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ ApplicationWindow {
100
100
userProvince = profile .province ;
101
101
userBirthday = profile .birthday ;
102
102
console .log (" 用户信息获取成功" );
103
+ isLogin = true ;
103
104
API .getUserLikeSongIds (userID);
104
105
}
105
106
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ Item {
12
12
// 验证验证码
13
13
function onReply (reply ) {
14
14
API .onVerifyCaptchaCompleted .disconnect (onReply);
15
- if (reply .data === true )
15
+ if (reply .data === true ) {
16
16
login ();
17
- else {
17
+ } else {
18
18
code .text = " " ;
19
- code .showAlert = true
19
+ code .showAlert = true ;
20
20
}
21
21
}
22
22
@@ -110,6 +110,14 @@ Item {
110
110
RecommandButton {
111
111
id: captchaBtn
112
112
113
+ function onReply () {
114
+ API .onSendCaptchaCompleted .disconnect (onReply);
115
+ console .log (" 验证码发送成功" );
116
+ captchaBtn .enabled = false ;
117
+ captchaBtn .text = " 59s后重发" ;
118
+ sendCaptchaTimer .start ();
119
+ }
120
+
113
121
width: 100
114
122
text: " 获取验证码"
115
123
enabled: phone .text !== " " && phone .text .length === 11
@@ -119,15 +127,6 @@ Item {
119
127
API .onSendCaptchaCompleted .connect (onReply);
120
128
API .getCaptcha (phone .text );
121
129
}
122
-
123
- function onReply () {
124
- API .onSendCaptchaCompleted .disconnect (onReply);
125
- console .log (" 验证码发送成功" );
126
- captchaBtn .enabled = false ;
127
- captchaBtn .text = " 59s后重发" ;
128
- sendCaptchaTimer .start ();
129
- }
130
-
131
130
}
132
131
133
132
}
Original file line number Diff line number Diff line change 48
48
API .addCookie ();
49
49
API .getAccountInfo ();
50
50
Router .back ();
51
- isLogin = true ;
52
51
timer .stop ();
53
- root .close ();
54
52
}
55
53
56
54
// 处理二维码失效后的逻辑
You can’t perform that action at this time.
0 commit comments