Commit 68ba4d00 by YKai

fix:一键登录UI修改,本机号码校验登录成功,打开页面逻辑修改

parent 021e9ad8
......@@ -185,7 +185,7 @@ object OneKeyLoginHelp {
RelativeLayout.LayoutParams.WRAP_CONTENT
)
tvAuthParams.addRule(RelativeLayout.CENTER_HORIZONTAL, RelativeLayout.TRUE)
tvAuthParams.setMargins(0, RxImageTool.dp2px(235f), 0, 0)
tvAuthParams.setMargins(0, RxImageTool.dp2px(255f), 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(200)
.setNumFieldOffsetY(220)
.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("#991da1f2"))
.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("#991da1f2"))
.setCheckboxHidden(checkBoxHidden) // 设置是否同意协议的checkbox隐藏
.setPrivacyBefore(mPrivacyBeforeText)
.setPrivacyMargin(35)
......
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment