From 3f31812d31a5384481f2039eb02fa3fd9a06b116 Mon Sep 17 00:00:00 2001
From: xiexiaoqin <xie.xiaoqin@mingwork.com>
Date: Wed, 1 Apr 2020 16:01:45 +0800
Subject: [PATCH] fix

---
 components/fileList/fileList.axml |  4 ++--
 components/fileList/fileList.js   | 11 ++---------
 2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/components/fileList/fileList.axml b/components/fileList/fileList.axml
index ca57c43..efdcbda 100644
--- a/components/fileList/fileList.axml
+++ b/components/fileList/fileList.axml
@@ -1,5 +1,5 @@
-<view class="{{fileView.id == logId ? 'file-box-mask' : ''}}" data-logId="{{fileView.id}}" catchLongTap="showOperate" catchTouchStart="touchStart" catchTouchEnd="touchEnd">
-  <view class="desc" meeta:if='{{fileView.description}}'
+<view class="{{fileView.id == logId ? 'file-box-mask' : ''}}" data-logId="{{fileView.id}}" catchLongTap="showOperate">
+  <view class="desc" a:if='{{fileView.description}}'>
       {{fileView.description}}
   </view>
   <view class="task-list" a:if="{{fileView.fileInfos && fileView.fileInfos.length > 0}}">
diff --git a/components/fileList/fileList.js b/components/fileList/fileList.js
index 61cc48a..680a0f1 100644
--- a/components/fileList/fileList.js
+++ b/components/fileList/fileList.js
@@ -19,17 +19,16 @@ create.Component({
   },
   didUnmount() { },
   methods: {
-    test(e) {
-      console.log(e)
-    },
     //移除文件
     removeFile(e) {
+      this.store.data.logId = '';
       const fileInfos = this.store.data.fileInfos.filter(it => it.fileId !== e.target.dataset.id);
       this.store.data.fileInfos = fileInfos;
       this.update();
     },
     //预览文件
     preview(e) {
+      //如果出现编辑蒙层时阻止预览的点击事件
       if (this.store.data.logId) {
         return;
       }
@@ -58,12 +57,6 @@ create.Component({
         this.update();
       }
     },
-    touchStart(e) {
-      console.log(e)
-    },
-    touchEnd(e) {
-      console.log(e)
-    },
     //删除动态下的文件和描述
     deleteFile(e) {
       dd.confirm({
--
libgit2 0.26.0