This commit is contained in:
=
2025-12-18 17:20:25 +08:00
parent d67d45cef4
commit 295c2fefba
3 changed files with 27 additions and 2 deletions
@@ -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);
}
},
@@ -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() {
@@ -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);
}
},