查看历史照片大图
This commit is contained in:
@@ -135,6 +135,17 @@ extension AdditionalPhotoController : UICollectionViewDelegate, UICollectionView
|
||||
headerView?.titleLabel.text = String(indexPath.section + 1)+"、"+sectionModel.taskStatusString
|
||||
return headerView!
|
||||
}
|
||||
|
||||
public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
|
||||
let sectionModel = resultArr[indexPath.section]
|
||||
let itemModel = sectionModel.photoList[indexPath.item]
|
||||
let cell = self.collectionView(collectionView, cellForItemAt: indexPath) as? AdditionalPhotoCell
|
||||
if let image = cell?.uploadImageView.image {
|
||||
let vc = ZLImagePreviewController.init(datas: [image as Any],showSelectBtn: false,showBottomView: false)
|
||||
vc.modalPresentationStyle = .fullScreen
|
||||
navigationController?.present(vc, animated: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user