From 314b67e56f24f7bce040ae2b5d57c7eac7b197a9 Mon Sep 17 00:00:00 2001 From: lmw <125975490@qq.com> Date: 星期五, 25 十月 2024 10:51:48 +0800 Subject: [PATCH] 个人中心 --- app/src/main/java/com/sinata/xqmuse/ui/mine/MineFragment.kt | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/sinata/xqmuse/ui/mine/MineFragment.kt b/app/src/main/java/com/sinata/xqmuse/ui/mine/MineFragment.kt index c24b71d..dc4cc39 100644 --- a/app/src/main/java/com/sinata/xqmuse/ui/mine/MineFragment.kt +++ b/app/src/main/java/com/sinata/xqmuse/ui/mine/MineFragment.kt @@ -4,14 +4,16 @@ import android.content.Intent import cn.sinata.xldutils.fragment.BaseFragment import cn.sinata.xldutils.gone +import cn.sinata.xldutils.utils.SPUtils import cn.sinata.xldutils.utils.SpanBuilder import cn.sinata.xldutils.utils.hidePhone import cn.sinata.xldutils.visible +import com.sinata.xqmuse.MainActivity import com.sinata.xqmuse.R import com.sinata.xqmuse.network.HttpManager import com.sinata.xqmuse.network.entity.MineInfo import com.sinata.xqmuse.network.requestByF -import com.sinata.xqmuse.ui.discovery.MsgActivity +import com.sinata.xqmuse.ui.login.LoginActivity import com.sinata.xqmuse.utils.Const import com.sinata.xqmuse.utils.event.EmptyEvent import kotlinx.android.synthetic.main.fragment_mine.* @@ -53,10 +55,10 @@ startActivity<LevelActivity>() } iv_setting.setOnClickListener { - startActivity<SettingActivity>() + startActivity<SettingActivity>("data" to userInfo) } tv_setting.setOnClickListener { - startActivity<SettingActivity>() + iv_setting.callOnClick() } tv_share.setOnClickListener { startActivity<ShareActivity>() @@ -93,8 +95,9 @@ bg_vip.backgroundResource = R.mipmap.bg_vip "${vipExpireTime.substring(0,10)}到期" } + iv_vip.setImageURI(data.levelIcon) tv_day.text = cumulative - tv_continue.text = continuity + tv_continue.text = continuity?:"0" val format = "%d小时%d分".format(today / 60, today % 60) tv_today.text = SpanBuilder(format).size(format.indexOf("小"),format.indexOf("小")+2,11).size(format.length-1,format.length,11).build() } -- Gitblit v1.7.1