福利
This commit is contained in:
@@ -801,6 +801,18 @@ layout("/mobile/platform.html"){
|
|||||||
resp.data.multiSelectNum = resp.data.multiSelectNum ? resp.data.multiSelectNum : 1
|
resp.data.multiSelectNum = resp.data.multiSelectNum ? resp.data.multiSelectNum : 1
|
||||||
this.projectInfo = resp.data
|
this.projectInfo = resp.data
|
||||||
this.getUserSelection(this.projectId)
|
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
|
this.selectOptionNames = resp.data
|
||||||
},
|
},
|
||||||
back() {
|
back() {
|
||||||
pjaxReplace('/mobile/welfare/list/receive?projectId=' + this.projectId)
|
// pjaxReplace('/mobile/welfare/list/receive?projectId=' + this.projectId)
|
||||||
localStorage.setItem("reload", '1')
|
// localStorage.setItem("reload", '1')
|
||||||
|
pjaxReplace('/mobile/index')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
@@ -630,6 +630,18 @@ layout("/layouts/platform.html"){
|
|||||||
this.projectInfo = resp.data
|
this.projectInfo = resp.data
|
||||||
await this.getUserSelection(id)
|
await this.getUserSelection(id)
|
||||||
await this.getChoice()
|
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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user