|
|
@@ -92,6 +92,9 @@ class PersonalCenterActivity :
|
|
|
if (TextUtils.isEmpty(it.id).not()) {
|
|
|
User.saveUserId(it.id)
|
|
|
}
|
|
|
+ if (TextUtils.isEmpty(it.padNo).not()) {
|
|
|
+ User.savePadNo(it.padNo)
|
|
|
+ }
|
|
|
if (it.diagnoseResult.isNullOrEmpty().not()) {
|
|
|
diagnosisList.addAll(it.diagnoseResult)
|
|
|
}
|
|
|
@@ -110,6 +113,7 @@ class PersonalCenterActivity :
|
|
|
v.startAnimation(getScaleAnimation())
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
MotionEvent.ACTION_UP -> {
|
|
|
v.startAnimation(getEndAnimation())
|
|
|
when (v.id) {
|
|
|
@@ -118,27 +122,33 @@ class PersonalCenterActivity :
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.home, mContext)
|
|
|
finish()
|
|
|
}
|
|
|
+
|
|
|
R.id.tvServiceAgreement -> {
|
|
|
//用户服务协议
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.userAgreement)
|
|
|
}
|
|
|
+
|
|
|
R.id.tvPrivacyPolicy -> {
|
|
|
//隐私保护政策
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.privacyAgreement)
|
|
|
}
|
|
|
+
|
|
|
R.id.tvEquipmentServices -> {
|
|
|
//设备租赁及服务
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.leaseAgreement, mContext)
|
|
|
}
|
|
|
+
|
|
|
R.id.settingLayout -> {
|
|
|
//设置
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.setting, mContext)
|
|
|
}
|
|
|
+
|
|
|
R.id.btnLoginOut -> {
|
|
|
loginOut()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
MotionEvent.ACTION_CANCEL -> {
|
|
|
if (v.id == R.id.layoutHome || v.id == R.id.tvServiceAgreement || v.id == R.id.tvPrivacyPolicy ||
|
|
|
v.id == R.id.tvEquipmentServices || v.id == R.id.settingLayout || v.id == R.id.btnLoginOut
|
|
|
@@ -166,6 +176,7 @@ class PersonalCenterActivity :
|
|
|
User.saveMobile("")
|
|
|
User.saveIdCard("")
|
|
|
User.saveOrgCode("")
|
|
|
+ User.savePadNo("")
|
|
|
V2TIMManager.getInstance().logout(object : V2TIMCallback {
|
|
|
override fun onSuccess() {
|
|
|
}
|