Commit 1670bc4e authored by Steven杜宇's avatar Steven杜宇

// 查看大图

parent 4281552c
......@@ -206,6 +206,9 @@ extension YHPrincipleUploadListVC {
let agree = YHPrincipleRequestModel()
agree.id = agreementModel.id
agree.check_status = agreementModel.check_status
if agree.check_status == YHPrincipleUploadStatus.rejected.rawValue { // 已驳回
agree.check_status = YHPrincipleUploadStatus.review.rawValue
}
agree.file_url = agreementModel.content_url
files.append(agree)
......@@ -214,6 +217,9 @@ extension YHPrincipleUploadListVC {
let opinion = YHPrincipleRequestModel()
opinion.id = opinionModel.id
opinion.check_status = opinionModel.check_status
if opinion.check_status == YHPrincipleUploadStatus.rejected.rawValue { // 已驳回
opinion.check_status = YHPrincipleUploadStatus.review.rawValue
}
opinion.file_url = opinionModel.content_url
files.append(opinion)
......@@ -223,6 +229,9 @@ extension YHPrincipleUploadListVC {
let other = YHPrincipleRequestModel()
other.id = otherModel.id
other.check_status = otherModel.check_status
if other.check_status == YHPrincipleUploadStatus.rejected.rawValue { // 已驳回
other.check_status = YHPrincipleUploadStatus.review.rawValue
}
other.file_url = otherModel.content_url
files.append(other)
......
......@@ -222,5 +222,15 @@ extension YHPrinciplePhotoListCell: UICollectionViewDelegateFlowLayout, UICollec
private func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
print("index is \(indexPath.row)")
if 0 <= indexPath.item, indexPath.item < items.count {
let model = items[indexPath.item]
var imgUrlArr:[String] = []
for item in items {
imgUrlArr.append(item.image)
}
YHPictureReviewManager.shared.showNetWorkPicturs(curIndex: indexPath.item, arrPicturs: imgUrlArr)
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment