| | |
| | | import com.dollearn.student.ui.welfare.* |
| | | import com.dollearn.student.utils.Const |
| | | import com.dollearn.student.utils.event.EmptyEvent |
| | | import com.dollearn.student.utils.extention.clickDelay |
| | | import com.dollearn.student.utils.extention.formatToChinese |
| | | import com.dollearn.student.utils.interfaces.StringCallback |
| | | import com.share.utils.ShareUtils |
| | | import com.umeng.socialize.UMShareListener |
| | |
| | | |
| | | override fun onFirstVisibleToUser() { |
| | | EventBus.getDefault().register(this) |
| | | iv_avatar.clickDelay { startActivity<UserInfoActivity>() } |
| | | tv_name.clickDelay { startActivity<UserInfoActivity>() } |
| | | // tv_coin.clickDelay { startActivityForResult<RechargeRecordActivity>(1) } |
| | | tv_record.clickDelay { startActivity<CoinRecordActivity>() } |
| | | showInfo() |
| | | tv_logout.setOnClickListener { |
| | | val tipDialog = TipDialog() |
| | |
| | | homeData?.apply { |
| | | iv_avatar.setImageURI(user.headImg) |
| | | tv_name.text = user.name |
| | | tv_record.text = "剩余积分:%d|学习进度:周目%d|学习总时长:%d小时".format(user.integral,userStudy.week,userStudy.totalStudy) |
| | | tv_record.text = "剩余积分:%d|学习进度:周目%s|学习总时长:%d小时".format(user.integral,userStudy.week.formatToChinese(),userStudy.totalStudy) |
| | | } |
| | | } |
| | | |