diff --git a/src/apps/AppMarryAndDie/Add.vue b/src/apps/AppMarryAndDie/Add.vue index eef95d38..96aff163 100644 --- a/src/apps/AppMarryAndDie/Add.vue +++ b/src/apps/AppMarryAndDie/Add.vue @@ -32,7 +32,7 @@
- + @@ -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 + }) } }) }, diff --git a/src/apps/AppMarryAndDie/AppMarryAndDie.vue b/src/apps/AppMarryAndDie/AppMarryAndDie.vue index 1b5363f2..79ee43e3 100644 --- a/src/apps/AppMarryAndDie/AppMarryAndDie.vue +++ b/src/apps/AppMarryAndDie/AppMarryAndDie.vue @@ -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() {