package com.kuanzhai.user.ui.mine
|
|
import com.kuanzhai.user.R
|
import com.kuanzhai.user.network.entity.Staff
|
import com.kuanzhai.user.ui.TransparentStatusBarActivity
|
import kotlinx.android.synthetic.main.activity_staff_detail.*
|
|
class StaffDetailActivity:TransparentStatusBarActivity() {
|
override fun setContentView() = R.layout.activity_staff_detail
|
|
private val data by lazy { intent.getParcelableExtra<Staff>("data") }
|
|
override fun initClick() {
|
}
|
|
override fun initView() {
|
data?.apply {
|
tv_name.text = staffName
|
tv_no.text = staffNo
|
tv_phone.text = phone
|
tv_title.text = position
|
tv_sex.text = if (sex == "1") "男" else "女"
|
tv_department.text = deptName
|
tv_date.text = enjoyTime
|
tv_edu.text = education
|
}
|
}
|
|
}
|