Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
0cf94a37
Commit
0cf94a37
authored
Jan 18, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/4.1.64' into 4.1.64
parents
447eb8c7
a9196b7a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
VerificationCodePresenterImpl.kt
m-user/src/main/java/com/yidianling/user/ui/login/presenter/VerificationCodePresenterImpl.kt
+5
-1
user_activity_register_and_login_new.xml
m-user/src/main/res/layout/user_activity_register_and_login_new.xml
+2
-1
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/presenter/VerificationCodePresenterImpl.kt
View file @
0cf94a37
...
@@ -34,6 +34,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
...
@@ -34,6 +34,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
}
}
//发送登录验证码
//发送登录验证码
@SuppressLint
(
"CheckResult"
)
override
fun
sendLoginCode
(
phone
:
String
,
phoneCountryCode
:
String
)
{
override
fun
sendLoginCode
(
phone
:
String
,
phoneCountryCode
:
String
)
{
mModel
.
sendLoginMsgCode
(
phone
,
phoneCountryCode
)
mModel
.
sendLoginMsgCode
(
phone
,
phoneCountryCode
)
.
subscribeOn
(
Schedulers
.
io
())
.
subscribeOn
(
Schedulers
.
io
())
...
@@ -43,10 +44,10 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
...
@@ -43,10 +44,10 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
.
subscribe
({
.
subscribe
({
if
(
it
.
code
==
200
)
{
if
(
it
.
code
==
200
)
{
YDLCacheUtils
.
saveCodeTime
(
phone
,
System
.
currentTimeMillis
().
toString
())
YDLCacheUtils
.
saveCodeTime
(
phone
,
System
.
currentTimeMillis
().
toString
())
// ToastUtil.toastShort("验证码已发送")
mView
.
startCountdown
(
60
)
mView
.
startCountdown
(
60
)
}
else
{
}
else
{
mView
.
startAnim
()
mView
.
startAnim
()
ToastUtil
.
toastShort
(
it
.
msg
)
}
}
},
{
},
{
mView
.
startAnim
()
mView
.
startAnim
()
...
@@ -57,6 +58,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
...
@@ -57,6 +58,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
/**
/**
* 重置密码的验证码
* 重置密码的验证码
*/
*/
@SuppressLint
(
"CheckResult"
)
override
fun
sendResetCode
(
phone
:
String
,
countryCode
:
String
)
{
override
fun
sendResetCode
(
phone
:
String
,
countryCode
:
String
)
{
mModel
.
sendResetCode
(
phone
,
countryCode
)
mModel
.
sendResetCode
(
phone
,
countryCode
)
.
subscribeOn
(
Schedulers
.
io
())
.
subscribeOn
(
Schedulers
.
io
())
...
@@ -80,6 +82,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
...
@@ -80,6 +82,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
/**
/**
* 绑定手机号
* 绑定手机号
*/
*/
@SuppressLint
(
"CheckResult"
)
override
fun
bindPhone
(
param
:
BindPhoneJavaParam
)
{
override
fun
bindPhone
(
param
:
BindPhoneJavaParam
)
{
mModel
.
bindPhone
(
param
)
mModel
.
bindPhone
(
param
)
.
subscribeOn
(
Schedulers
.
io
())
.
subscribeOn
(
Schedulers
.
io
())
...
@@ -116,6 +119,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
...
@@ -116,6 +119,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
/**
/**
* 检查重置密码的验证码(重置密码就是忘记密码)
* 检查重置密码的验证码(重置密码就是忘记密码)
*/
*/
@SuppressLint
(
"CheckResult"
)
override
fun
checkResetCode
(
phone
:
String
,
countryCode
:
String
,
msgCode
:
String
)
{
override
fun
checkResetCode
(
phone
:
String
,
countryCode
:
String
,
msgCode
:
String
)
{
mModel
.
checkResetCode
(
phone
,
countryCode
,
msgCode
)
mModel
.
checkResetCode
(
phone
,
countryCode
,
msgCode
)
.
subscribeOn
(
Schedulers
.
io
())
.
subscribeOn
(
Schedulers
.
io
())
...
...
m-user/src/main/res/layout/user_activity_register_and_login_new.xml
View file @
0cf94a37
...
@@ -112,12 +112,13 @@
...
@@ -112,12 +112,13 @@
android:background=
"@null"
android:background=
"@null"
android:gravity=
"center_vertical|left"
android:gravity=
"center_vertical|left"
android:hint=
"输入手机号"
android:hint=
"输入手机号"
android:inputType=
"
phone
"
android:inputType=
"
number
"
android:lines=
"1"
android:lines=
"1"
android:maxLength=
"13"
android:maxLength=
"13"
android:textColor=
"@color/platform_color_242424"
android:textColor=
"@color/platform_color_242424"
android:textColorHint=
"@color/platform_color_EBEBEB"
android:textColorHint=
"@color/platform_color_EBEBEB"
android:textSize=
"20sp"
android:textSize=
"20sp"
android:textCursorDrawable=
"@null"
app:layout_constraintBottom_toBottomOf=
"@id/country_code"
app:layout_constraintBottom_toBottomOf=
"@id/country_code"
app:layout_constraintStart_toEndOf=
"@id/country_code"
app:layout_constraintStart_toEndOf=
"@id/country_code"
app:layout_constraintEnd_toStartOf=
"@id/iv_del"
app:layout_constraintEnd_toStartOf=
"@id/iv_del"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment