|
|
@@ -9,6 +9,7 @@ import com.yingyang.home.R
|
|
|
import com.yingyang.home.databinding.ActivityBindingEvaluationBinding
|
|
|
import com.yingyangfly.baselib.db.QuestionsBean
|
|
|
import com.yingyangfly.baselib.dialog.BindingPhoneDialog
|
|
|
+import com.yingyangfly.baselib.dialog.TipsDialog
|
|
|
import com.yingyangfly.baselib.ext.getEndAnimation
|
|
|
import com.yingyangfly.baselib.ext.getScaleAnimation
|
|
|
import com.yingyangfly.baselib.ext.toast
|
|
|
@@ -59,7 +60,7 @@ class BindingEvaluationActivity :
|
|
|
v.startAnimation(getEndAnimation())
|
|
|
when (v.id) {
|
|
|
R.id.loginOutLayout -> {
|
|
|
- loginOut()
|
|
|
+ showTipsDialog()
|
|
|
}
|
|
|
R.id.searchLayout -> {
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.evaluationHistory, mContext)
|
|
|
@@ -168,4 +169,21 @@ class BindingEvaluationActivity :
|
|
|
}
|
|
|
bindingPhoneDialog.show(supportFragmentManager, "bindingPhoneDialog")
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 退出确认弹窗
|
|
|
+ */
|
|
|
+ private fun showTipsDialog() {
|
|
|
+ TipsDialog.TipDialogBuilder()
|
|
|
+ .title("提示")
|
|
|
+ .content("您确定退出绑定?")
|
|
|
+ .leftBtnText("取消")
|
|
|
+ .rightBtnText("确定")
|
|
|
+ .leftClick({
|
|
|
+ }, true)
|
|
|
+ .rightClick({
|
|
|
+ loginOut()
|
|
|
+ }, true)
|
|
|
+ .show(supportFragmentManager)
|
|
|
+ }
|
|
|
}
|