Kaynağa Gözat

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

zhongbaojian 4 yıl önce
ebeveyn
işleme
be16b40f70

+ 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: "好的") {