From e2879a83376921c028d42ce9ab46fad80de629c7 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 24 Dec 2021 09:04:23 +0800 Subject: [PATCH] bug --- src/apps/AppResidentDocument/DetailCard.vue | 2 +- .../AppServicePublic/AppServicePublic.vue | 24 ++++++++++++++----- src/apps/AppServicePublic/Detail.vue | 8 ++++++- src/apps/AppUniMsg/Add.vue | 4 ++++ 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/src/apps/AppResidentDocument/DetailCard.vue b/src/apps/AppResidentDocument/DetailCard.vue index fc3bf43b..7a8afb9f 100644 --- a/src/apps/AppResidentDocument/DetailCard.vue +++ b/src/apps/AppResidentDocument/DetailCard.vue @@ -12,7 +12,7 @@
-
家庭成员{{ data.family.length }}
+
家庭成员 {{ data.family.length }}人
diff --git a/src/apps/AppServicePublic/AppServicePublic.vue b/src/apps/AppServicePublic/AppServicePublic.vue index 862f34ce..fc77c695 100644 --- a/src/apps/AppServicePublic/AppServicePublic.vue +++ b/src/apps/AppServicePublic/AppServicePublic.vue @@ -1,9 +1,9 @@ @@ -52,6 +52,12 @@ export default { }, mounted() {}, methods: { + previewImage(images, img) { + uni.previewImage({ + urls: images.map(v => v.url), + current: img + }) + }, getDetail() { this.$http.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then((res) => { if (res?.data) { diff --git a/src/apps/AppUniMsg/Add.vue b/src/apps/AppUniMsg/Add.vue index 4bc6f60e..597a4abf 100644 --- a/src/apps/AppUniMsg/Add.vue +++ b/src/apps/AppUniMsg/Add.vue @@ -82,6 +82,10 @@ export default { return this.$u.toast('请输入发布组织') } + if (!this.forms.content) { + return this.$u.toast('请输入正文') + } + const imgs = [] if (this.forms.images) { this.forms.images.map((e) => {