-
+
{{ item.categoryName }}
+ @click="tabClick(index, item)">{{ item.categoryName }}
@@ -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) => {