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"){
+ +