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