Commit 3f31812d by xiexiaoqin

fix

parent 91344048
<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}}">
......
......@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment