查看历史照片大图

This commit is contained in:
DDIsFriend
2023-12-27 14:59:17 +08:00
parent 897502600c
commit b50ee56107
3 changed files with 43 additions and 0 deletions

View File

@@ -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)
}
}
}