This commit is contained in:
花有清香月有阴
2022-01-17 10:42:59 +08:00
parent a805056e9a
commit 70bcace7b4
2 changed files with 14 additions and 3 deletions

View File

@@ -32,7 +32,7 @@
<div class="line"></div>
<u-form-item label="活动详情" prop="content" :border-bottom="false" label-position="top" class="contents">
<u-form-item label="活动详情" prop="content" required :border-bottom="false" label-position="top" class="contents">
<u-input v-model="forms.content" placeholder="请输入详细描述信息" type="textarea" auto-height height="100" maxlength="500" />
</u-form-item>
@@ -102,6 +102,9 @@ export default {
if (!this.forms.phone) {
return this.$u.toast('请输入联系电话')
}
if (!this.forms.content) {
return this.$u.toast('请输入活动详情')
}
const imgs = []
if (this.forms.files) {
@@ -135,8 +138,12 @@ export default {
}, 600)
}
})
} else {
this.$u.toast('失败')
.catch(() => {
this.$u.toast('发布失败')
})
.finally(() => {
this.flag = false
})
}
})
},

View File

@@ -181,8 +181,12 @@ export default {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
this.$forceUpdate()
}
})
.finally(() => {
this.$forceUpdate()
})
},
getEchart() {