This commit is contained in:
2026-04-21 08:53:52 +08:00
parent af18f33493
commit 8df583f186
2 changed files with 12 additions and 4 deletions
@@ -288,7 +288,7 @@ layout("/layouts/platform_h5.html"){
</div>
</van-checkbox>
</van-cell-group>
<div style="display: flex; justify-content: space-between; column-gap: 10px; padding: 10px">
<div v-if="showActionButtons" style="display: flex; justify-content: space-between; column-gap: 10px; padding: 10px">
<van-button block type="primary" @click.submit="onSave">保存</van-button>
<van-button v-if="!taskId" block type="primary" @click.submit="onSubmit">提交</van-button>
<van-button v-else block type="primary" @click.submit="onFinishTask">提交</van-button>
@@ -304,6 +304,8 @@ layout("/layouts/platform_h5.html"){
return {
id: GetQueryString("bizId"),
taskId: GetQueryString("taskId"),
// 当前登录人已是会员时,不显示保存和提交按钮。
showActionButtons: true,
formData: {
families: []
},
@@ -446,6 +448,8 @@ layout("/layouts/platform_h5.html"){
} else {
user = this.$store.state.user
}
// 页面按钮是否展示,以当前登录人的会员状态为准。
this.showActionButtons = !(user && user.member)
if (this.id) {
const res = await this.$axios.post("/platform/member/apply/submit/findApplyById", { id: this.id })