From 360ce71f0b65df14660448f0dcc0c23f217cc7d0 Mon Sep 17 00:00:00 2001 From: zhangrui Date: Fri, 6 Nov 2026 11:08:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=93=81=E7=89=8C?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/plugins/sysUpload/index.vue | 13 ++++++++ .../platform/zhghh5/welfare/select/index.html | 30 +++++++++++++++++-- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/components/plugins/sysUpload/index.vue b/src/main/resources/static/components/plugins/sysUpload/index.vue index 370d6cf..38c3b70 100644 --- a/src/main/resources/static/components/plugins/sysUpload/index.vue +++ b/src/main/resources/static/components/plugins/sysUpload/index.vue @@ -347,6 +347,19 @@ module.exports = { // 预览图片 handlePreview(file) { + if (this.upload_mode === "image") { + // 回显记录的名称可能是无扩展名的下载地址;图片模式直接预览缩略图地址。 + const url = file.url || (this.upload_result_type === "url" && file.response?.data) + if (!url) { + this.$message.warning("暂无可预览的图片") + return + } + const image = new Image() + image.src = url + const viewer = new Viewer(image, {zIndex: 99999, title: false, hidden: () => viewer.destroy()}) + viewer.show() + return + } const suffix = file.name.substring(file.name.lastIndexOf(".") + 1).toLowerCase() const fileId = file.response.data.substring(file.response.data.lastIndexOf("=") + 1) const buildFile = { diff --git a/src/main/resources/views/platform/zhghh5/welfare/select/index.html b/src/main/resources/views/platform/zhghh5/welfare/select/index.html index f411cad..2ea4cb0 100644 --- a/src/main/resources/views/platform/zhghh5/welfare/select/index.html +++ b/src/main/resources/views/platform/zhghh5/welfare/select/index.html @@ -707,9 +707,8 @@ layout("/layouts/platform_h5.html"){ :key="option.id" class="welfare-option" :class="{ selected: projectInfo.isCheckBox === 'radio' ? selectedRadioId === option.id : option.selectNum > 0 }" - @click="projectInfo.isCheckBox === 'radio' && !isDeadlinePassed ? selectRadioOption(option.id) : null" > -
+
@@ -717,7 +716,8 @@ layout("/layouts/platform_h5.html"){
-
+
{{ option.optionName }}
@@ -846,6 +846,10 @@ layout("/layouts/platform_h5.html"){
+ +