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
68ba4d00
Commit
68ba4d00
authored
Jan 15, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:一键登录UI修改,本机号码校验登录成功,打开页面逻辑修改
parent
021e9ad8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
17 deletions
+25
-17
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+16
-16
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+9
-1
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
68ba4d00
...
...
@@ -185,7 +185,7 @@ object OneKeyLoginHelp {
RelativeLayout
.
LayoutParams
.
WRAP_CONTENT
)
tvAuthParams
.
addRule
(
RelativeLayout
.
CENTER_HORIZONTAL
,
RelativeLayout
.
TRUE
)
tvAuthParams
.
setMargins
(
0
,
RxImageTool
.
dp2px
(
2
3
5f
),
0
,
0
)
tvAuthParams
.
setMargins
(
0
,
RxImageTool
.
dp2px
(
2
5
5f
),
0
,
0
)
when
(
phoneNumberAuthHelper
.
currentCarrierName
)
{
"CUCC"
->
{
tvAuth
.
text
=
"中国联通提供认证服务"
...
...
@@ -223,7 +223,7 @@ object OneKeyLoginHelp {
RxImageTool
.
dp2px
(
68f
)
)
otherLogin
.
text
=
"其他方式登录"
otherLogin
.
setTextColor
(
Color
.
parseColor
(
"#
666666
"
))
otherLogin
.
setTextColor
(
Color
.
parseColor
(
"#
999999
"
))
otherLogin
.
setTextSize
(
TypedValue
.
COMPLEX_UNIT_SP
,
15f
)
otherLogin
.
gravity
=
Gravity
.
CENTER
otherLogin
.
layoutParams
=
layoutParams
...
...
@@ -266,18 +266,19 @@ object OneKeyLoginHelp {
.
setSloganHidden
(
true
)
// 设置slogan是否隐藏
.
setNumberColor
(
Color
.
parseColor
(
"#242424"
))
.
setNumberSize
(
24
)
.
setNumFieldOffsetY
(
2
0
0
)
.
setNumFieldOffsetY
(
2
2
0
)
.
setLogBtnBackgroundPath
(
"bg_one_click_login"
)
// 设置登录按钮背景图片
.
setLogBtnTextColor
(
Color
.
parseColor
(
"#ffffff"
))
// 设置登录按钮文字颜色
.
setLogBtnTextSize
(
17
)
.
setLogBtnMarginLeftAndRight
(
23
)
// 设置登录按钮距离左右距离
.
setLogBtnHeight
(
78
)
.
setSwitchAccText
(
" 切换号码 "
)
.
setLogBtnOffsetY
(
290
)
.
setSwitchAccText
(
"切换号码"
)
.
setSwitchAccTextSize
(
15
)
.
setSwitchAccTextColor
(
Color
.
parseColor
(
"#1DA1F2"
))
.
setSwitchAccTextColor
(
Color
.
parseColor
(
"#999999"
))
.
setSwitchOffsetY
(
370
)
.
setAppPrivacyOne
(
appPrivacyOneTip
,
appPrivacyOne
)
.
setAppPrivacyTwo
(
"隐私协议"
,
appPrivacyTwo
)
.
setAppPrivacyColor
(
Color
.
parseColor
(
"#
999999"
),
Color
.
parseColor
(
"#
1da1f2"
))
.
setAppPrivacyColor
(
Color
.
parseColor
(
"#
bfbfbf"
),
Color
.
parseColor
(
"#99
1da1f2"
))
.
setCheckboxHidden
(
checkBoxHidden
)
// 设置是否同意协议的checkbox隐藏
.
setPrivacyBefore
(
mPrivacyBeforeText
)
.
setPrivacyMargin
(
35
)
...
...
@@ -304,7 +305,7 @@ object OneKeyLoginHelp {
.
setWebViewStatusBarColor
(
Color
.
TRANSPARENT
)
.
setStatusBarUIFlag
(
View
.
SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
)
.
setNavText
(
"登录解锁更多功能"
)
.
setNavTextColor
(
Color
.
parseColor
(
"#
242424
"
))
.
setNavTextColor
(
Color
.
parseColor
(
"#
999999
"
))
.
setWebNavTextColor
(
Color
.
parseColor
(
"#242424"
))
// 设置协议页面标题字体颜色
.
setNavReturnImgPath
(
"one_key_login_dialog_close"
)
.
setWebNavColor
(
Color
.
WHITE
)
...
...
@@ -313,20 +314,19 @@ object OneKeyLoginHelp {
.
setSloganHidden
(
true
)
// 设置slogan是否隐藏
.
setNumberColor
(
Color
.
parseColor
(
"#242424"
))
.
setNumberSize
(
24
)
.
setNumFieldOffsetY
(
38
)
.
setNumFieldOffsetY
(
40
)
.
setLogBtnBackgroundPath
(
"bg_one_click_login"
)
// 设置登录按钮背景图片
.
setLogBtnTextColor
(
Color
.
parseColor
(
"#ffffff"
))
// 设置登录按钮颜色
.
setLogBtnTextSize
(
17
)
.
setLogBtnMarginLeftAndRight
(
23
)
// 设置登录按钮距离左右距离
.
setLogBtnHeight
(
78
)
//
.
setLogBtnOffsetY
(
90
)
.
setSwitchAccText
(
" 其它方式登录 "
)
.
setLogBtnHeight
(
78
)
.
setLogBtnOffsetY
(
80
)
.
setSwitchAccText
(
"其它方式登录"
)
.
setSwitchAccTextSize
(
15
)
.
setSwitchAccTextColor
(
Color
.
parseColor
(
"#
666666
"
))
.
setSwitchOffsetY
(
168
)
.
setSwitchAccTextColor
(
Color
.
parseColor
(
"#
999999
"
))
.
setSwitchOffsetY
_B
(
80
)
.
setAppPrivacyOne
(
"壹点灵用户使用协议"
,
"https://h5.ydl.com/SDUserProtol"
)
.
setAppPrivacyTwo
(
"隐私协议"
,
"https://m.ydl.com/Protol/yinsi"
)
.
setAppPrivacyColor
(
Color
.
parseColor
(
"#
999999"
),
Color
.
parseColor
(
"#
1da1f2"
))
.
setAppPrivacyColor
(
Color
.
parseColor
(
"#
bfbfbf"
),
Color
.
parseColor
(
"#99
1da1f2"
))
.
setCheckboxHidden
(
checkBoxHidden
)
// 设置是否同意协议的checkbox隐藏
.
setPrivacyBefore
(
mPrivacyBeforeText
)
.
setPrivacyMargin
(
35
)
...
...
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
68ba4d00
...
...
@@ -492,7 +492,11 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
tv_login_title
.
text
=
"绑定手机号"
tv_protocol
.
visibility
=
View
.
GONE
}
else
{
if
(
isFromGuide
)
{
LoginUtils
.
LoginSuccessOperate
(
this
)
}
else
{
finish
()
}
}
}
...
...
@@ -585,8 +589,12 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
ll_success
.
visibility
=
View
.
GONE
ToastUtil
.
toastShort
(
"登录成功"
)
handler
!!
.
postDelayed
({
if
(
isFromGuide
)
{
LoginUtils
.
LoginSuccessOperate
(
this
)
},
1500
)
}
else
{
finish
()
}
},
1000
)
}
private
fun
finishPrePage
()
{
...
...
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