|
|
@@ -61,7 +61,9 @@ class BindingEvaluationActivity :
|
|
|
v.startAnimation(getEndAnimation())
|
|
|
when (v.id) {
|
|
|
R.id.loginOutLayout -> {
|
|
|
- showTipsDialog()
|
|
|
+ if (TextUtils.isEmpty(User.getToken()).not()) {
|
|
|
+ showTipsDialog()
|
|
|
+ }
|
|
|
}
|
|
|
R.id.searchLayout -> {
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.evaluationHistory, mContext)
|
|
|
@@ -94,7 +96,8 @@ class BindingEvaluationActivity :
|
|
|
}, success = {
|
|
|
runOnUiThread {
|
|
|
binding.tvPhone.text = ""
|
|
|
- binding.loginOutLayout.show(false)
|
|
|
+ binding.imageLoginOut.show(false)
|
|
|
+ binding.tvLoginOut.show(false)
|
|
|
User.saveToken("")
|
|
|
User.savePhone("")
|
|
|
showBindingPhoneDialog()
|
|
|
@@ -151,10 +154,12 @@ class BindingEvaluationActivity :
|
|
|
override fun onResume() {
|
|
|
super.onResume()
|
|
|
if (TextUtils.isEmpty(User.getToken())) {
|
|
|
- binding.loginOutLayout.show(false)
|
|
|
+ binding.imageLoginOut.show(false)
|
|
|
+ binding.tvLoginOut.show(false)
|
|
|
showBindingPhoneDialog()
|
|
|
} else {
|
|
|
- binding.loginOutLayout.show(true)
|
|
|
+ binding.imageLoginOut.show(true)
|
|
|
+ binding.tvLoginOut.show(true)
|
|
|
binding.tvPhone.text = if (TextUtils.isEmpty(User.getPhone()).not()) {
|
|
|
"手机号:" + hideMiddleDigits(User.getPhone())
|
|
|
} else {
|
|
|
@@ -170,8 +175,8 @@ class BindingEvaluationActivity :
|
|
|
private fun showBindingPhoneDialog() {
|
|
|
val bindingPhoneDialog = BindingPhoneDialog()
|
|
|
bindingPhoneDialog.onDialogClickListener = {
|
|
|
- binding.loginOutLayout.show(true)
|
|
|
- binding.loginOutLayout.show(true)
|
|
|
+ binding.imageLoginOut.show(true)
|
|
|
+ binding.tvLoginOut.show(true)
|
|
|
binding.tvPhone.text = "手机号:" + hideMiddleDigits(it)
|
|
|
}
|
|
|
bindingPhoneDialog.show(supportFragmentManager, "bindingPhoneDialog")
|