|
@@ -15,7 +15,6 @@ import androidx.activity.addCallback
|
15
|
15
|
import androidx.lifecycle.lifecycleScope
|
16
|
16
|
import androidx.work.PeriodicWorkRequest
|
17
|
17
|
import androidx.work.WorkManager
|
18
|
|
-import com.kongzue.dialogx.DialogX
|
19
|
18
|
import com.kongzue.dialogx.dialogs.CustomDialog
|
20
|
19
|
import com.kongzue.dialogx.dialogs.WaitDialog
|
21
|
20
|
import com.kongzue.dialogx.interfaces.OnBindView
|
|
@@ -53,6 +52,8 @@ class LoginActivity : BaseActivity<LoginViewModel, ActivityLoginBinding>() {
|
53
|
52
|
private var regioncode = ""
|
54
|
53
|
//如果次数大于10则可以打开设置页面
|
55
|
54
|
private var showSettingNum=0
|
|
55
|
+ //如果次数大于10则可以打开区域码设置页面
|
|
56
|
+ private var showCodeNum=0
|
56
|
57
|
private var waitDialog:WaitDialog?=null
|
57
|
58
|
private var tipsDialog:CustomDialog?=null
|
58
|
59
|
private var syncTimeClickFlag=false
|
|
@@ -148,6 +149,13 @@ class LoginActivity : BaseActivity<LoginViewModel, ActivityLoginBinding>() {
|
148
|
149
|
viewModel.postPwdDetail(code,it)
|
149
|
150
|
}
|
150
|
151
|
}
|
|
152
|
+ mBinding.ivShowcode.setOnClickListener {
|
|
153
|
+ showCodeNum++
|
|
154
|
+ if (showCodeNum>10){
|
|
155
|
+ showCodeNum=0
|
|
156
|
+ mBinding.codeLoginIv.visibility=View.VISIBLE
|
|
157
|
+ }
|
|
158
|
+ }
|
151
|
159
|
|
152
|
160
|
mBinding.loginClayout.setOnClickListener {
|
153
|
161
|
hiddenSoft(mBinding.accountEt)
|