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
49a21ba9
Commit
49a21ba9
authored
Oct 10, 2020
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
6bd984fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
6 deletions
+25
-6
fileList.axml
components/fileList/fileList.axml
+1
-1
fileList.js
components/fileList/fileList.js
+13
-4
files.acss
pages/files/files.acss
+9
-0
files.axml
pages/files/files.axml
+2
-1
No files found.
components/fileList/fileList.axml
View file @
49a21ba9
...
...
@@ -2,7 +2,7 @@
<view class="desc" a:if='{{fileView.remark}}'>
{{fileView.remark}}
</view>
<view class="file-list" a:for="{{fileInfos}}">
<view class="file-list
{{customClass}}
" a:for="{{fileInfos}}">
<view class="file-box {{isCanDelete ? 'file-box-close': ''}}" catchTap="preview" data-file="{{item}}">
<view class="file-icon {{item.mimeType}}"></view>
<view class="file-title">
...
...
components/fileList/fileList.js
View file @
49a21ba9
import
create
from
'dd-store'
;
import
pageStore
from
'../../pages/meetingDetail/store'
;
import
{
previewPermissions
,
previewOss
,
uploadPermissions
}
from
'../../api/request.js'
import
{
previewPermissions
,
previewOss
,
uploadPermissions
,
getThirdUserPlatForm
}
from
'../../api/request.js'
import
openLink
from
"dingtalk-jsapi/api/biz/util/openLink"
;
create
.
Component
({
store
:
pageStore
,
mixins
:
[],
data
:
{
logId
:
''
//store
logId
:
''
,
//store
customClass
:
''
},
props
:
{
isCanEdit
:
true
,
isCanDelete
:
false
,
isPreview
:
true
// 是否点击预览
isPreview
:
true
,
// 是否点击预览,
},
didMount
()
{
debugger
console
.
log
(
this
.
props
)
},
didUpdate
()
{
},
didUnmount
()
{
this
.
setData
({
customClass
:
this
.
props
.
customClass
})
},
didUnmount
()
{
},
methods
:
{
//移除文件
removeFile
(
e
)
{
...
...
pages/files/files.acss
View file @
49a21ba9
...
...
@@ -4,4 +4,12 @@ page {
.file-container {
padding: 0 32rpx;
}
.list-item {
color: red
}
.noBorder {
color: red
}
\ No newline at end of file
pages/files/files.axml
View file @
49a21ba9
<view class="file-container" a:for="{{[files]}}" customClass="
1
">
<view class="file-container" a:for="{{[files]}}" customClass="
noBorder
">
<file-list fileInfos="{{item}}"/>
</view>
\ No newline at end of file
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