diff --git a/src/apps/AppResidentActivitie/Add.vue b/src/apps/AppResidentActivitie/Add.vue index 418996ff..4c541111 100644 --- a/src/apps/AppResidentActivitie/Add.vue +++ b/src/apps/AppResidentActivitie/Add.vue @@ -184,7 +184,6 @@ export default { endTime: this.forms.endTime, address: this.forms.address, contactPerson: this.forms.contactPerson, - contactPhone: this.forms.contactPhone, createUserName: this.user.name, createUserId: this.user.id, @@ -193,7 +192,6 @@ export default { }) .then((res) => { if (res.code == 0) { - this.flag = false this.$u.toast('发布成功') if (!this.indexDetail) { uni.$emit('updateList') @@ -206,6 +204,7 @@ export default { } }) .catch(() => { + this.flag = false this.$u.toast('新增失败') }) } else { diff --git a/src/apps/AppResidentActivitie/AddPosts.vue b/src/apps/AppResidentActivitie/AddPosts.vue index 3f670671..60d0bcd7 100644 --- a/src/apps/AppResidentActivitie/AddPosts.vue +++ b/src/apps/AppResidentActivitie/AddPosts.vue @@ -6,9 +6,9 @@ -
+
图片(最多9张)
-
+
@@ -73,13 +73,16 @@ export default { .then((res) => { if (res.code == 0) { this.$u.toast('发布成功') - this.flag = false uni.$emit('refresh') setTimeout(() => { uni.navigateBack() }, 600) } }) + .catch(() => { + this.flag = false + this.$u.toast('发布失败') + }) }, }, } @@ -114,12 +117,13 @@ export default { .mar-b16 { margin-bottom: 16px; } -.pad-b208 { - padding-bottom: 208px; + +.pad-b176 { + padding-bottom: 176px; } .footer-btn { width: 100%; - padding: 116px 32px 32px; + padding: 0 32px 32px 32px; box-sizing: border-box; position: fixed; bottom: 0;