查看历史照片大图

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

@@ -5516,5 +5516,37 @@
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "112E2664-7371-47E6-8E90-D644924DFCCD"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Rescue/ViewController/RescuePhotoController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "69"
endingLineNumber = "69"
landmarkName = "collectionView(_:didSelectItemAt:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "661BBED2-DA05-43F8-A1F3-B05EBA245CF2"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Rescue/ViewController/RescuePhotoController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "70"
endingLineNumber = "70"
landmarkName = "collectionView(_:didSelectItemAt:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>

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