Commit 13dbb650 authored by shiyl's avatar shiyl

登录页保留用户协议和隐私政策

parent 0b50a205
...@@ -40,7 +40,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>(), IGetLifeAc ...@@ -40,7 +40,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>(), IGetLifeAc
private lateinit var mCountDownTimerUtils: CountDownTimerUtils private lateinit var mCountDownTimerUtils: CountDownTimerUtils
private var mobileFinish = false private var mobileFinish = false
private var codeFinish = false private var codeFinish = false
// private var protocolAgree = false private var protocolAgree = false
override fun createViewBinding(): ActivityLoginBinding { override fun createViewBinding(): ActivityLoginBinding {
return ActivityLoginBinding.inflate(layoutInflater) return ActivityLoginBinding.inflate(layoutInflater)
...@@ -121,10 +121,10 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>(), IGetLifeAc ...@@ -121,10 +121,10 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>(), IGetLifeAc
ApiService.mobileLogin(this, paramsMap) ApiService.mobileLogin(this, paramsMap)
} }
// viewBind.cbProtocol.setOnCheckedChangeListener { buttonView, isChecked -> viewBind.cbProtocol.setOnCheckedChangeListener { buttonView, isChecked ->
// protocolAgree = isChecked protocolAgree = isChecked
// changeLoginButtonStatus() changeLoginButtonStatus()
// } }
viewBind.tvProtocol.setOnClickListener { viewBind.tvProtocol.setOnClickListener {
val urlMap = HashMap<String, String>() val urlMap = HashMap<String, String>()
...@@ -140,7 +140,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>(), IGetLifeAc ...@@ -140,7 +140,7 @@ class LoginLifeCircleActivity : BaseActivity<ActivityLoginBinding>(), IGetLifeAc
} }
private fun changeLoginButtonStatus() { private fun changeLoginButtonStatus() {
if (mobileFinish && codeFinish) { if (mobileFinish && codeFinish && protocolAgree) {
setLoginButtonStatus(true) setLoginButtonStatus(true)
} else { } else {
setLoginButtonStatus(false) setLoginButtonStatus(false)
......
...@@ -137,12 +137,10 @@ ...@@ -137,12 +137,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:gravity="center" android:gravity="center"
android:visibility="gone"
android:orientation="horizontal"> android:orientation="horizontal">
<CheckBox <CheckBox
android:id="@+id/cb_protocol" android:id="@+id/cb_protocol"
android:checked="true"
style="@style/protocol_checkboxBg" style="@style/protocol_checkboxBg"
android:layout_width="25dp" android:layout_width="25dp"
android:layout_height="23dp" /> android:layout_height="23dp" />
......
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