瀏覽代碼

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

zhongbaojian 4 年之前
父節點
當前提交
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) {
         guard let model = dataArray.safeObject(atIndex: indexPath.item) else { return }
         if model.isPublish {
+            
+            if self.mode == true && self.isEditingMode == true {
+                // 如果当前是下载模板列表页,并且处于编辑状态,则不进入详情页
+                return;
+            }
+            
             OJAJumpManager.jumpToTemplateDetail(withTemplateID: model.templateId)
         } else {
             let alert = WSSNormalAlert(msg: "该模板正在回炉改造,敬请期待", buttonTitle: "好的") {