Commit c96a13f6ba6fd80bbde5e2d5ad389c0cea025fa1

Authored by “张旭”
1 parent 8a0e8529

简历 预览 的工作记录,获奖 图片填充模式scaleAspectFit

metaCode/Classes/Main/HomePage/View/DigitalAuthViews/Vitae/Work/CNLiveVitaeWorkCell.swift
@@ -321,7 +321,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ @@ -321,7 +321,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{
321 imgView.isUserInteractionEnabled = true 321 imgView.isUserInteractionEnabled = true
322 imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton))) 322 imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton)))
323 imgView.tag = 1000+i 323 imgView.tag = 1000+i
324 - imgView.contentMode = .center 324 + imgView.contentMode = .scaleAspectFit
325 let imgUrl = imgArr[i] 325 let imgUrl = imgArr[i]
326 imgView.clipsToBounds = true 326 imgView.clipsToBounds = true
327 imgView.layer.cornerRadius = 5 327 imgView.layer.cornerRadius = 5
@@ -409,7 +409,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{ @@ -409,7 +409,7 @@ class CNLiveVitaeWorkCell: UITableViewCell{
409 imgView.isUserInteractionEnabled = true 409 imgView.isUserInteractionEnabled = true
410 imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton))) 410 imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton)))
411 imgView.tag = 1000+i 411 imgView.tag = 1000+i
412 - imgView.contentMode = .center 412 + imgView.contentMode = .scaleAspectFit
413 let imgUrl = imgArr[i] 413 let imgUrl = imgArr[i]
414 imgView.clipsToBounds = true 414 imgView.clipsToBounds = true
415 imgView.layer.cornerRadius = 5 415 imgView.layer.cornerRadius = 5
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/我的简历cell/CNLiveDigitalResumePreviewFourCell.swift
@@ -383,7 +383,7 @@ class CNLiveDigitalResumePreviewFourCell: UITableViewCell { @@ -383,7 +383,7 @@ class CNLiveDigitalResumePreviewFourCell: UITableViewCell {
383 imgView.isUserInteractionEnabled = true 383 imgView.isUserInteractionEnabled = true
384 imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton))) 384 imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton)))
385 imgView.tag = 1000+i 385 imgView.tag = 1000+i
386 - imgView.contentMode = .center 386 + imgView.contentMode = .scaleAspectFit
387 let imgUrl = imgArr[i] 387 let imgUrl = imgArr[i]
388 imgView.clipsToBounds = true 388 imgView.clipsToBounds = true
389 imgView.layer.cornerRadius = 5 389 imgView.layer.cornerRadius = 5
@@ -499,7 +499,7 @@ class CNLiveDigitalResumePreviewFourCell: UITableViewCell { @@ -499,7 +499,7 @@ class CNLiveDigitalResumePreviewFourCell: UITableViewCell {
499 imgView.isUserInteractionEnabled = true 499 imgView.isUserInteractionEnabled = true
500 imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton))) 500 imgView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(imgViewTapAciton)))
501 imgView.tag = 1000+i 501 imgView.tag = 1000+i
502 - imgView.contentMode = .center 502 + imgView.contentMode = .scaleAspectFit
503 let imgUrl = imgArr[i] 503 let imgUrl = imgArr[i]
504 imgView.clipsToBounds = true 504 imgView.clipsToBounds = true
505 imgView.layer.cornerRadius = 5 505 imgView.layer.cornerRadius = 5
metaCode/Classes/Main/HomePage/View/DigitalAuthViews/我的简历cell/CNLiveDigitalResumePreviewThreeCell.swift
@@ -140,7 +140,7 @@ class CNLiveDigitalResumePreviewThreeCell: UITableViewCell { @@ -140,7 +140,7 @@ class CNLiveDigitalResumePreviewThreeCell: UITableViewCell {
140 let lie = i%3 140 let lie = i%3
141 let hang = i/3 141 let hang = i/3
142 let imgView = UIImageView(frame: CGRect(x: CGFloat(imgLeftGap+(imgGap+imgW)*Float(lie)), y: CGFloat((imgH+10)*Float(hang))+46, width: CGFloat(imgW), height: CGFloat(imgH))) 142 let imgView = UIImageView(frame: CGRect(x: CGFloat(imgLeftGap+(imgGap+imgW)*Float(lie)), y: CGFloat((imgH+10)*Float(hang))+46, width: CGFloat(imgW), height: CGFloat(imgH)))
143 - imgView.contentMode = .center 143 + imgView.contentMode = .scaleAspectFit
144 imgView.tag = 1000+i 144 imgView.tag = 1000+i
145 let cerModel = modelsArr[i]//CNLiveVitaeCertificateModel 145 let cerModel = modelsArr[i]//CNLiveVitaeCertificateModel
146 let imgUrl = cerModel.img 146 let imgUrl = cerModel.img