Commit fcba8ef6d6829abcf0f0dfaceebef844847ab125
1 parent
490ef8f1
预览简历-工作记录和获奖情况 排版问题 , 预览图片问题
Showing
3 changed files
with
37 additions
and
17 deletions
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/我的简历cell/CNLiveDigitalResumePreviewFourCell.swift
| ... | ... | @@ -40,10 +40,10 @@ class CNLiveDigitalResumePreviewFourCell: UITableViewCell,UITableViewDelegate,UI |
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - lazy var images: [HeroBrowserViewModuleBaseProtocol] = { | |
| 44 | - var list: [HeroBrowserViewModuleBaseProtocol] = [] | |
| 45 | - return list | |
| 46 | - }() | |
| 43 | +// lazy var images: [HeroBrowserViewModuleBaseProtocol] = { | |
| 44 | +// var list: [HeroBrowserViewModuleBaseProtocol] = [] | |
| 45 | +// return list | |
| 46 | +// }() | |
| 47 | 47 | |
| 48 | 48 | var vitaeWorkPreviewVideoPhotoBlock:VitaeWorkPreviewVideoPhotoBlock? |
| 49 | 49 | var vitaePreviewWorkCellChangedBlock:vitaePreviewWorkCellChangedBlockActionBlock? |
| ... | ... | @@ -203,7 +203,7 @@ class CNLiveDigitalResumePreviewFourCell: UITableViewCell,UITableViewDelegate,UI |
| 203 | 203 | cell.awardModel = awardMdl |
| 204 | 204 | } |
| 205 | 205 | cell.vitaeWorkPreviewVideoPhotoBlock = { images , index in |
| 206 | - self.vitaeWorkPreviewVideoPhotoBlock?(self.images, index) | |
| 206 | + self.vitaeWorkPreviewVideoPhotoBlock?(images, index) | |
| 207 | 207 | } |
| 208 | 208 | cell.vitaePreviewWorkCellChangedBlock = {index ,jianjieHeight,isExpand in |
| 209 | 209 | self.vitaePreviewWorkCellChangedBlock?(index ,jianjieHeight,isExpand) | ... | ... |
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/我的简历cell/CNLiveDigitalResumePreviewFourWorkAwardCell.swift
| ... | ... | @@ -209,13 +209,6 @@ class CNLiveDigitalResumePreviewFourWorkAwardCell:UITableViewCell{ |
| 209 | 209 | make.right.equalToSuperview().offset(-20) |
| 210 | 210 | make.height.equalTo(40) |
| 211 | 211 | } |
| 212 | - self.contentView.addSubview(self.expandBtn) | |
| 213 | - self.expandBtn.snp.makeConstraints { make in | |
| 214 | - make.top.equalTo(self.jianjieLabel.snp.bottom) | |
| 215 | - make.right.equalTo(self.jianjieLabel.snp.right) | |
| 216 | - make.width.equalTo(60) | |
| 217 | - make.height.equalTo(30) | |
| 218 | - } | |
| 219 | 212 | |
| 220 | 213 | let lines = jianjieLabel.getRealLabelTextLines() |
| 221 | 214 | if lines <= 2{ |
| ... | ... | @@ -231,6 +224,13 @@ class CNLiveDigitalResumePreviewFourWorkAwardCell:UITableViewCell{ |
| 231 | 224 | make.width.equalToSuperview() |
| 232 | 225 | make.top.equalTo(self.jianjieLabel.snp.bottom).offset(10) |
| 233 | 226 | } |
| 227 | + self.contentView.addSubview(self.expandBtn) | |
| 228 | + self.expandBtn.snp.makeConstraints { make in | |
| 229 | + make.top.equalTo(self.jianjieLabel.snp.bottom) | |
| 230 | + make.right.equalTo(self.jianjieLabel.snp.right) | |
| 231 | + make.width.equalTo(60) | |
| 232 | + make.height.equalTo(30) | |
| 233 | + } | |
| 234 | 234 | self.contentView.addSubview(self.dingweiImgView) |
| 235 | 235 | self.dingweiImgView.snp.makeConstraints { make in |
| 236 | 236 | make.left.equalTo(self.workNameTitleLabel.snp.left) |
| ... | ... | @@ -259,11 +259,21 @@ class CNLiveDigitalResumePreviewFourWorkAwardCell:UITableViewCell{ |
| 259 | 259 | if model.companyName.count > 0{ |
| 260 | 260 | self.workPositionTitleLabel.text = model.companyName |
| 261 | 261 | self.workPositionTitleLabel.isHidden = false |
| 262 | + self.workPositionTitleLabel.snp.remakeConstraints { make in | |
| 263 | + make.top.equalTo(self.workNameTitleLabel.snp.bottom).offset(5) | |
| 264 | + make.left.equalTo(self.workNameTitleLabel.snp.left) | |
| 265 | + make.right.equalToSuperview().offset(-15) | |
| 266 | + } | |
| 267 | + self.workTimeTitleLabel.snp.remakeConstraints { make in | |
| 268 | + make.top.equalTo(self.workPositionTitleLabel.snp.bottom).offset(5) | |
| 269 | + make.left.equalTo(self.workPositionTitleLabel.snp.left) | |
| 270 | + make.right.equalToSuperview().offset(-15) | |
| 271 | + } | |
| 262 | 272 | }else{ |
| 263 | 273 | self.workPositionTitleLabel.isHidden = true |
| 264 | 274 | self.workTimeTitleLabel.snp.remakeConstraints { make in |
| 265 | 275 | make.top.equalTo(self.workNameTitleLabel.snp.bottom).offset(5) |
| 266 | - make.left.equalTo(self.workPositionTitleLabel.snp.left) | |
| 276 | + make.left.equalTo(self.workNameTitleLabel.snp.left) | |
| 267 | 277 | make.right.equalToSuperview().offset(-15) |
| 268 | 278 | } |
| 269 | 279 | } |
| ... | ... | @@ -403,11 +413,21 @@ class CNLiveDigitalResumePreviewFourWorkAwardCell:UITableViewCell{ |
| 403 | 413 | if model.company.count > 0{ |
| 404 | 414 | self.workPositionTitleLabel.text = model.company |
| 405 | 415 | self.workPositionTitleLabel.isHidden = false |
| 416 | + self.workPositionTitleLabel.snp.remakeConstraints { make in | |
| 417 | + make.top.equalTo(self.workProfessionTitleLabel.snp.bottom).offset(5) | |
| 418 | + make.left.equalTo(self.workNameTitleLabel.snp.left) | |
| 419 | + make.right.equalToSuperview().offset(-15) | |
| 420 | + } | |
| 421 | + self.workTimeTitleLabel.snp.remakeConstraints { make in | |
| 422 | + make.top.equalTo(self.workPositionTitleLabel.snp.bottom).offset(5) | |
| 423 | + make.left.equalTo(self.workPositionTitleLabel.snp.left) | |
| 424 | + make.right.equalToSuperview().offset(-15) | |
| 425 | + } | |
| 406 | 426 | }else{ |
| 407 | 427 | self.workPositionTitleLabel.isHidden = true |
| 408 | 428 | self.workTimeTitleLabel.snp.remakeConstraints { make in |
| 409 | - make.top.equalTo(self.workNameTitleLabel.snp.bottom).offset(5) | |
| 410 | - make.left.equalTo(self.workPositionTitleLabel.snp.left) | |
| 429 | + make.top.equalTo(self.workProfessionTitleLabel.snp.bottom).offset(5) | |
| 430 | + make.left.equalTo(self.workProfessionTitleLabel.snp.left) | |
| 411 | 431 | make.right.equalToSuperview().offset(-15) |
| 412 | 432 | } |
| 413 | 433 | } |
| ... | ... | @@ -542,7 +562,7 @@ class CNLiveDigitalResumePreviewFourWorkAwardCell:UITableViewCell{ |
| 542 | 562 | jienjieH = CGFloat(lines)*height |
| 543 | 563 | }else{ |
| 544 | 564 | //文本展开状态,点击收起 |
| 545 | - jienjieH = 2*height | |
| 565 | + jienjieH = 2*height+2 | |
| 546 | 566 | } |
| 547 | 567 | self.jianjieLabel.snp.remakeConstraints { make in |
| 548 | 568 | make.top.equalTo(self.workTimeTitleLabel.snp.bottom).offset(10) | ... | ... |
metaCode/Classes/Main/Model/Vitae/CNLiveViateWorkModelLayout.swift
| ... | ... | @@ -121,7 +121,7 @@ class CNLiveViateAwardModelLayout:NSObject{ |
| 121 | 121 | _awardModel?.cellH = Float(123-25)+companyH+descH+Float(hang*imgWH)+55 |
| 122 | 122 | }else{//预览获奖 |
| 123 | 123 | imgWH = Float((Float(KSreenWidth)-30-40-50)/3.0+10) |
| 124 | - _awardModel?.cellH = Float(162-58-25)+companyH+descH+Float(hang*imgWH)//+55 | |
| 124 | + _awardModel?.cellH = Float(162-58-25-25)+companyH+descH+Float(hang*imgWH)//+55 | |
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | func getCellHModel()->CNLiveVitaeAwardsModel{ | ... | ... |