Преглед на файлове

fix: 下载模板页编辑状态进入详情页问题

zhongbaojian преди 5 години
родител
ревизия
be16b40f70
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      SuperShow/UI/Profile/Collection/WSSProfileMyTemplateViewController.swift

+ 6 - 0
SuperShow/UI/Profile/Collection/WSSProfileMyTemplateViewController.swift

@@ -316,6 +316,12 @@ extension WSSProfileMyTemplateViewController: UICollectionViewDelegate {
     func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
     func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
         guard let model = dataArray.safeObject(atIndex: indexPath.item) else { return }
         guard let model = dataArray.safeObject(atIndex: indexPath.item) else { return }
         if model.isPublish {
         if model.isPublish {
+            
+            if self.mode == true && self.isEditingMode == true {
+                // 如果当前是下载模板列表页,并且处于编辑状态,则不进入详情页
+                return;
+            }
+            
             OJAJumpManager.jumpToTemplateDetail(withTemplateID: model.templateId)
             OJAJumpManager.jumpToTemplateDetail(withTemplateID: model.templateId)
         } else {
         } else {
             let alert = WSSNormalAlert(msg: "该模板正在回炉改造,敬请期待", buttonTitle: "好的") {
             let alert = WSSNormalAlert(msg: "该模板正在回炉改造,敬请期待", buttonTitle: "好的") {