Commit 14f28c152b63761cc243556ac8fd4298a37c1af8
1 parent
6ca5759d
工作记录列表页-如果已验证,显示 已验证icon
Showing
1 changed file
with
12 additions
and
2 deletions
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/Vitae/Work/CNLiveVitaeWorkCell.swift
| @@ -74,6 +74,11 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | @@ -74,6 +74,11 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | ||
| 74 | whiteBgView.backgroundColor = HexColor("#EBEBEB") | 74 | whiteBgView.backgroundColor = HexColor("#EBEBEB") |
| 75 | return whiteBgView | 75 | return whiteBgView |
| 76 | }() | 76 | }() |
| 77 | + lazy var authIconImgView :UIImageView = { | ||
| 78 | + let iconImgView = UIImageView() | ||
| 79 | + iconImgView.image = UIImage(named: "mine_jianli_yiyanzheng") | ||
| 80 | + return iconImgView | ||
| 81 | + }() | ||
| 77 | lazy var workNameTitleLabel: UILabel = { | 82 | lazy var workNameTitleLabel: UILabel = { |
| 78 | let titleLabel = UILabel() | 83 | let titleLabel = UILabel() |
| 79 | titleLabel.textColor = HexColor("#333333") | 84 | titleLabel.textColor = HexColor("#333333") |
| @@ -206,6 +211,11 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | @@ -206,6 +211,11 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | ||
| 206 | make.right.equalToSuperview().offset(-15) | 211 | make.right.equalToSuperview().offset(-15) |
| 207 | make.top.equalTo(self.workTitleLabel.snp.bottom).offset(15) | 212 | make.top.equalTo(self.workTitleLabel.snp.bottom).offset(15) |
| 208 | } | 213 | } |
| 214 | + self.whiteBgView.addSubview(self.authIconImgView) | ||
| 215 | + self.authIconImgView.snp.makeConstraints { make in | ||
| 216 | + make.top.equalTo(self.line1View.snp.bottom) | ||
| 217 | + make.right.equalToSuperview().offset(-60) | ||
| 218 | + } | ||
| 209 | self.whiteBgView.addSubview(self.workNameTitleLabel) | 219 | self.whiteBgView.addSubview(self.workNameTitleLabel) |
| 210 | self.workNameTitleLabel.snp.makeConstraints { make in | 220 | self.workNameTitleLabel.snp.makeConstraints { make in |
| 211 | make.top.equalTo(self.line1View.snp.bottom).offset(15) | 221 | make.top.equalTo(self.line1View.snp.bottom).offset(15) |
| @@ -305,7 +315,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | @@ -305,7 +315,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | ||
| 305 | } | 315 | } |
| 306 | } | 316 | } |
| 307 | self.workTitleLabel.text = model.title | 317 | self.workTitleLabel.text = model.title |
| 308 | - | 318 | + |
| 309 | let startDateString = convertTimestampStringToDateString(timestampString: model.time) | 319 | let startDateString = convertTimestampStringToDateString(timestampString: model.time) |
| 310 | self.workNameTitleLabel.text = startDateString ?? "" | 320 | self.workNameTitleLabel.text = startDateString ?? "" |
| 311 | 321 | ||
| @@ -429,7 +439,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | @@ -429,7 +439,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ | ||
| 429 | } | 439 | } |
| 430 | } | 440 | } |
| 431 | self.workTitleLabel.text = model.profession | 441 | self.workTitleLabel.text = model.profession |
| 432 | - | 442 | + |
| 433 | let startDateString = convertTimestampStringToDateString(timestampString: model.startWorkingDate) | 443 | let startDateString = convertTimestampStringToDateString(timestampString: model.startWorkingDate) |
| 434 | let endDateString = convertTimestampStringToDateString(timestampString: model.endWorkingDate) | 444 | let endDateString = convertTimestampStringToDateString(timestampString: model.endWorkingDate) |
| 435 | if endDateString == nil || endDateString?.count == 0{ | 445 | if endDateString == nil || endDateString?.count == 0{ |