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
7956fef5
Commit
7956fef5
authored
Jan 15, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI修改
parent
f72b22a6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
11 deletions
+23
-11
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+2
-2
VerificationCodePresenterImpl.kt
m-user/src/main/java/com/yidianling/user/ui/login/presenter/VerificationCodePresenterImpl.kt
+17
-7
user_activity_register_and_login_bottom.xml
m-user/src/main/res/layout/user_activity_register_and_login_bottom.xml
+3
-2
colors.xml
m-user/src/main/res/values/colors.xml
+1
-0
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
7956fef5
...
...
@@ -214,7 +214,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
spannableString
.
setSpan
(
object
:
ClickableSpan
()
{
override
fun
updateDrawState
(
ds
:
TextPaint
)
{
super
.
updateDrawState
(
ds
)
ds
.
color
=
ContextCompat
.
getColor
(
this
@RegisterAndLoginActivity
,
R
.
color
.
platform_color_1DA1F2
)
ds
.
color
=
ContextCompat
.
getColor
(
this
@RegisterAndLoginActivity
,
R
.
color
.
user_1da1f2trans
)
ds
.
isUnderlineText
=
true
//设置下划线
}
...
...
@@ -231,7 +231,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
spannableString
.
setSpan
(
object
:
ClickableSpan
()
{
override
fun
updateDrawState
(
ds
:
TextPaint
)
{
super
.
updateDrawState
(
ds
)
ds
.
color
=
ContextCompat
.
getColor
(
this
@RegisterAndLoginActivity
,
R
.
color
.
platform_color_1DA1F2
)
ds
.
color
=
ContextCompat
.
getColor
(
this
@RegisterAndLoginActivity
,
R
.
color
.
user_1da1f2trans
)
ds
.
isUnderlineText
=
true
//设置下划线
}
...
...
m-user/src/main/java/com/yidianling/user/ui/login/presenter/VerificationCodePresenterImpl.kt
View file @
7956fef5
...
...
@@ -87,17 +87,27 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
.
doOnSubscribe
{
mView
.
showLoading
(
true
)
}
.
doAfterTerminate
{
mView
.
showLoading
(
false
)
}
.
subscribe
({
if
(
it
.
code
==
200
)
{
//绑定手机号成功后清空本地保存时间
YDLCacheUtils
.
saveCodeTime
(
param
.
phoneNumber
,
""
)
ToastUtil
.
toastShort
(
"手机号绑定成功"
)
mView
.
bindSuccess
()
if
(
it
.
data
!=
null
)
{
if
(
it
.
code
==
200
)
{
//绑定手机号成功后清空本地保存时间
YDLCacheUtils
.
saveCodeTime
(
param
.
phoneNumber
,
""
)
ToastUtil
.
toastShort
(
"手机号绑定成功"
)
mView
.
bindSuccess
()
}
else
{
// mView.startAnim()
ToastUtil
.
toastShort
(
it
.
msg
)
mView
.
verificationErrorCode
()
}
}
else
{
mView
.
startAnim
()
ToastUtil
.
toastShort
(
it
.
msg
)
//服务端返回{验证码错误&异常}信息
// mView.startAnim()
mView
.
verificationErrorCode
()
}
},
{
mView
.
startAnim
()
// mView.startAnim()
mView
.
verificationErrorCode
()
ToastUtil
.
toastShort
(
it
.
message
)
})
...
...
m-user/src/main/res/layout/user_activity_register_and_login_bottom.xml
View file @
7956fef5
...
...
@@ -8,7 +8,7 @@
android:id=
"@+id/other_login_style"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"1
87
dp"
android:layout_marginBottom=
"1
51
dp"
android:gravity=
"center"
android:orientation=
"horizontal"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
@@ -85,7 +85,7 @@
android:textSize=
"12sp"
android:includeFontPadding=
"false"
android:id=
"@+id/tv_protocol"
android:textColor=
"@color/platform_color_
999999
"
android:textColor=
"@color/platform_color_
BFBFBF
"
android:text=
"同意壹点灵用户注册协议"
/>
</LinearLayout>
</merge>
\ No newline at end of file
m-user/src/main/res/values/colors.xml
View file @
7956fef5
...
...
@@ -26,4 +26,5 @@
<color
name=
"user_inactivePinFieldColor"
>
#ebebeb
</color>
<color
name=
"user_pinFieldLibraryTransparent"
>
#00000000
</color>
<color
name=
"user_bgcolorred"
>
#ff5040
</color>
<color
name=
"user_1da1f2trans"
>
#601da1f2
</color>
</resources>
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