|
|
|
|
@ -68,12 +68,14 @@ Page({
@@ -68,12 +68,14 @@ Page({
|
|
|
|
|
const fileList = (res.attachments || []).map((item: any) => { |
|
|
|
|
if (item.attachmentType == 2) { |
|
|
|
|
return { |
|
|
|
|
id: item.id, |
|
|
|
|
fileType: 'video', |
|
|
|
|
url: item.videoCoverUrl || '', |
|
|
|
|
videoUrl: item.attachmentUrl || '', |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return { |
|
|
|
|
id: item.id, |
|
|
|
|
fileType: 'image', |
|
|
|
|
url: item.attachmentUrl || '', |
|
|
|
|
} |
|
|
|
|
@ -155,6 +157,9 @@ Page({
@@ -155,6 +157,9 @@ Page({
|
|
|
|
|
if (isVideo) { |
|
|
|
|
attachment.videoCoverUrl = item.url |
|
|
|
|
} |
|
|
|
|
if (item.id) { |
|
|
|
|
attachment.id = item.id |
|
|
|
|
} |
|
|
|
|
return attachment |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|