From 77041c81c325c0bc88c94dc28d732f656cc4c885 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期二, 17 十月 2023 18:28:29 +0800
Subject: [PATCH] 修复BUG

---
 WanPai/Root/Search/VC/SearchStoreDetailFeedbackVC.swift |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/WanPai/Root/Search/VC/SearchStoreDetailFeedbackVC.swift b/WanPai/Root/Search/VC/SearchStoreDetailFeedbackVC.swift
index 2027d4c..826c685 100644
--- a/WanPai/Root/Search/VC/SearchStoreDetailFeedbackVC.swift
+++ b/WanPai/Root/Search/VC/SearchStoreDetailFeedbackVC.swift
@@ -97,6 +97,7 @@
     func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
          let item = items[indexPath.row]
        let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "_UploadImgCCell", for: indexPath) as! UploadImgCCell
+		cell.indexPath = indexPath
         if item is String{
             cell.btn_del.isHidden = true
             cell.img_cover.image = UIImage(named: "btn_evaluate_add")
@@ -104,6 +105,12 @@
             cell.btn_del.isHidden = false
             cell.img_cover.image = (item as? PHAsset)?.toImage()
         }
+
+		cell.clouse = { [weak self] index in
+			guard let weakSelf = self else { return }
+			weakSelf.items.removeObject(at: index.row)
+			collectionView.reloadData()
+		}
         return cell
     }
 
@@ -114,7 +121,7 @@
 
 extension SearchStoreDetailFeedbackVC:UICollectionViewDelegateFlowLayout{
     func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
-        return CGSize(width: 60, height: 60)
+        return CGSize(width: 70, height: 80)
     }
 
     func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {

--
Gitblit v1.7.1