lmw
2023-06-13 adf8013576cbdd12e5ebea8ff7e32baf5d558b27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
        }
    }
 
}