|
|
@@ -1,4 +1,4 @@
|
|
|
-package com.yingyang.personalcenter
|
|
|
+package com.yingyang.personalcenter.activity
|
|
|
|
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
|
import com.google.android.flexbox.FlexDirection
|
|
|
@@ -6,9 +6,9 @@ import com.google.android.flexbox.FlexboxLayoutManager
|
|
|
import com.yingyang.personalcenter.adapter.ComprehensiveEvaluationAdapter
|
|
|
import com.yingyang.personalcenter.adapter.DiagnosisAdapter
|
|
|
import com.yingyang.personalcenter.databinding.ActivityPersonalCenterBinding
|
|
|
-import com.yingyangfly.baselib.base.BaseActivity
|
|
|
import com.yingyangfly.baselib.ext.setOnSingleClickListener
|
|
|
import com.yingyangfly.baselib.ext.toast
|
|
|
+import com.yingyangfly.baselib.mvvm.BaseMVVMActivity
|
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
import com.yingyangfly.baselib.utils.JumpUtil
|
|
|
|
|
|
@@ -16,7 +16,8 @@ import com.yingyangfly.baselib.utils.JumpUtil
|
|
|
* 个人中心
|
|
|
*/
|
|
|
@Route(path = RouterUrlCommon.personalCenter)
|
|
|
-class PersonalCenterActivity : BaseActivity<ActivityPersonalCenterBinding>() {
|
|
|
+class PersonalCenterActivity :
|
|
|
+ BaseMVVMActivity<ActivityPersonalCenterBinding, PersonalCenterViewModel>() {
|
|
|
|
|
|
/**
|
|
|
* 综合测评
|
|
|
@@ -79,6 +80,10 @@ class PersonalCenterActivity : BaseActivity<ActivityPersonalCenterBinding>() {
|
|
|
}
|
|
|
|
|
|
override fun initData() {
|
|
|
+ viewModel.getUserInfo(fail = {
|
|
|
+ it.toast()
|
|
|
+ }, success = {
|
|
|
|
|
|
+ })
|
|
|
}
|
|
|
}
|