Commit f8ee5b58f68cb3871e6ecceb01b3fae9eaa038f1
1 parent
bc3cd4b7
数字简历页面-年龄性别等信息位置点击区域跳转
Showing
1 changed file
with
17 additions
and
3 deletions
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/DigitalResume/CNLiveDigitalResumeCell.swift
| @@ -123,10 +123,16 @@ class CNLiveDigitalResumeCell: UITableViewCell { | @@ -123,10 +123,16 @@ class CNLiveDigitalResumeCell: UITableViewCell { | ||
| 123 | titleLabel.textAlignment = .left | 123 | titleLabel.textAlignment = .left |
| 124 | titleLabel.text = "参加工作时间未设置 >" | 124 | titleLabel.text = "参加工作时间未设置 >" |
| 125 | titleLabel.font = Font_14 | 125 | titleLabel.font = Font_14 |
| 126 | - titleLabel.isUserInteractionEnabled = true | ||
| 127 | - titleLabel.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(workTitleLabelAciton))) | ||
| 128 | return titleLabel | 126 | return titleLabel |
| 129 | }() | 127 | }() |
| 128 | + //性别 年龄 手机号 位置 工作年限整体的点击tap | ||
| 129 | + lazy var phoneWorkTapView :UIView = { | ||
| 130 | + let bottomNavView = UIView() | ||
| 131 | + bottomNavView.backgroundColor = .clear | ||
| 132 | + bottomNavView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(workTitleLabelAciton))) | ||
| 133 | + return bottomNavView | ||
| 134 | + }() | ||
| 135 | + | ||
| 130 | lazy var lineView :UIView = { | 136 | lazy var lineView :UIView = { |
| 131 | let bottomNavView = UIView() | 137 | let bottomNavView = UIView() |
| 132 | bottomNavView.backgroundColor = HexColor("#EBEBEB") | 138 | bottomNavView.backgroundColor = HexColor("#EBEBEB") |
| @@ -447,6 +453,15 @@ class CNLiveDigitalResumeCell: UITableViewCell { | @@ -447,6 +453,15 @@ class CNLiveDigitalResumeCell: UITableViewCell { | ||
| 447 | make.left.equalTo(adapt_length(length: 15)) | 453 | make.left.equalTo(adapt_length(length: 15)) |
| 448 | make.top.equalTo(self.phoneTitleLabel.snp.bottom).offset(adapt_length(length: 4)) | 454 | make.top.equalTo(self.phoneTitleLabel.snp.bottom).offset(adapt_length(length: 4)) |
| 449 | } | 455 | } |
| 456 | + self.whiteBgView.addSubview(self.phoneWorkTapView) | ||
| 457 | + self.phoneWorkTapView.snp.makeConstraints { make in | ||
| 458 | + make.left.equalTo(self.phoneTitleLabel.snp.left) | ||
| 459 | + make.top.equalTo(self.phoneTitleLabel.snp.top) | ||
| 460 | + make.bottom.equalTo(self.workTitleLabel.snp.bottom) | ||
| 461 | + make.right.equalTo(self.weizhiTitleLabel.snp.right) | ||
| 462 | + | ||
| 463 | + } | ||
| 464 | + | ||
| 450 | 465 | ||
| 451 | self.whiteBgView.addSubview(self.lineView) | 466 | self.whiteBgView.addSubview(self.lineView) |
| 452 | self.lineView.snp.makeConstraints { make in | 467 | self.lineView.snp.makeConstraints { make in |
| @@ -752,7 +767,6 @@ class CNLiveDigitalResumeCell: UITableViewCell { | @@ -752,7 +767,6 @@ class CNLiveDigitalResumeCell: UITableViewCell { | ||
| 752 | let tempArray = StandSortManager.sortMyListData(auths: CNLiveSaveAuthDB.shared.searchAllObject() as NSArray) as! [MineAuthListModel] | 767 | let tempArray = StandSortManager.sortMyListData(auths: CNLiveSaveAuthDB.shared.searchAllObject() as NSArray) as! [MineAuthListModel] |
| 753 | if tempArray.count > 0{ | 768 | if tempArray.count > 0{ |
| 754 | self.renzhengDetailNumberTitleLabel.text = String(format: "%d", tempArray.count) | 769 | self.renzhengDetailNumberTitleLabel.text = String(format: "%d", tempArray.count) |
| 755 | - | ||
| 756 | }else{ | 770 | }else{ |
| 757 | self.renzhengDetailNumberTitleLabel.text = "0" | 771 | self.renzhengDetailNumberTitleLabel.text = "0" |
| 758 | } | 772 | } |