|
|
|
@ -385,7 +385,7 @@ Page({
@@ -385,7 +385,7 @@ Page({
|
|
|
|
|
handleBack() { |
|
|
|
|
const { images, description, audios, files, deptId, labelIds } = this.data; |
|
|
|
|
if (!images.length && !description && !audios.length && !files.length && !deptId && !labelIds.length) { |
|
|
|
|
wx.navigateBack() |
|
|
|
|
wx.navigateBack(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
wx.showModal({ |
|
|
|
@ -403,6 +403,14 @@ Page({
@@ -403,6 +403,14 @@ Page({
|
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handlePreviewImage(e) { |
|
|
|
|
const { url } = e.currentTarget.dataset; |
|
|
|
|
const { images } = this.data; |
|
|
|
|
wx.previewImage({ |
|
|
|
|
urls: images.map((item) => item.url), |
|
|
|
|
current: url, |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
export {}; |
|
|
|
|