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); } },