From 295c2fefbaa9fdbef2b8304c3d059c03781c06ba Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 18 Dec 2025 17:20:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=8F=E5=88=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/views/mobile/welfare/list/receive.html | 12 ++++++++++++ .../views/mobile/welfare/list/receive_success.html | 5 +++-- .../resources/views/platform/welfare/userChoose.html | 12 ++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/main/resources/views/mobile/welfare/list/receive.html b/src/main/resources/views/mobile/welfare/list/receive.html index e137838..d97853a 100644 --- a/src/main/resources/views/mobile/welfare/list/receive.html +++ b/src/main/resources/views/mobile/welfare/list/receive.html @@ -801,6 +801,18 @@ layout("/mobile/platform.html"){ resp.data.multiSelectNum = resp.data.multiSelectNum ? resp.data.multiSelectNum : 1 this.projectInfo = resp.data this.getUserSelection(this.projectId) + setTimeout(() => { + if (this.projectInfo.welfareProjectSubjects && + this.projectInfo.welfareProjectSubjects.length > 0) { + const options = this.projectInfo.welfareProjectSubjects[0].options; + if (options && options.length === 1) { + this.$set(options[0], 'selectNum', 1); + // if (options[0].specs && options[0].specs.length > 0) { + // this.$set(options[0], 'selectSpecs', options[0].specs[0].value); + // } + } + } + }, 100); } }, diff --git a/src/main/resources/views/mobile/welfare/list/receive_success.html b/src/main/resources/views/mobile/welfare/list/receive_success.html index 129b10c..8631fb3 100644 --- a/src/main/resources/views/mobile/welfare/list/receive_success.html +++ b/src/main/resources/views/mobile/welfare/list/receive_success.html @@ -54,8 +54,9 @@ layout("/mobile/platform.html"){ this.selectOptionNames = resp.data }, back() { - pjaxReplace('/mobile/welfare/list/receive?projectId=' + this.projectId) - localStorage.setItem("reload", '1') + // pjaxReplace('/mobile/welfare/list/receive?projectId=' + this.projectId) + // localStorage.setItem("reload", '1') + pjaxReplace('/mobile/index') } }, created() { diff --git a/src/main/resources/views/platform/welfare/userChoose.html b/src/main/resources/views/platform/welfare/userChoose.html index 8059757..722776d 100644 --- a/src/main/resources/views/platform/welfare/userChoose.html +++ b/src/main/resources/views/platform/welfare/userChoose.html @@ -630,6 +630,18 @@ layout("/layouts/platform.html"){ this.projectInfo = resp.data await this.getUserSelection(id) await this.getChoice() + setTimeout(() => { + if (this.projectInfo.welfareProjectSubjects && + this.projectInfo.welfareProjectSubjects.length > 0) { + const options = this.projectInfo.welfareProjectSubjects[0].options; + if (options && options.length === 1) { + this.$set(options[0], 'selectNum', 1); + // if (options[0].specs && options[0].specs.length > 0) { + // this.$set(options[0], 'selectSpecs', options[0].specs[0].value); + // } + } + } + }, 100); } },