Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
schedule
Commits
3f31812d
Commit
3f31812d
authored
Apr 01, 2020
by
xiexiaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
91344048
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
fileList.axml
components/fileList/fileList.axml
+2
-2
fileList.js
components/fileList/fileList.js
+2
-9
No files found.
components/fileList/fileList.axml
View file @
3f31812d
<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}}">
...
...
components/fileList/fileList.js
View file @
3f31812d
...
...
@@ -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
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment