diff --git a/src/apps/AppBuilding/components/searchMap.vue b/src/apps/AppBuilding/components/searchMap.vue
index fb5376cb..8af08281 100644
--- a/src/apps/AppBuilding/components/searchMap.vue
+++ b/src/apps/AppBuilding/components/searchMap.vue
@@ -53,7 +53,7 @@
楼栋长
diff --git a/src/apps/AppServicePublic/Add.vue b/src/apps/AppServicePublic/Add.vue
index b3a0802c..aae0ca15 100644
--- a/src/apps/AppServicePublic/Add.vue
+++ b/src/apps/AppServicePublic/Add.vue
@@ -125,34 +125,37 @@ export default {
return this.$u.toast('请选择类别')
}
- const imgs = []
+ var imgs = []
if (this.forms.fileIds) {
this.forms.fileIds.map((e) => {
imgs.push({ url: e.url, id: e.id })
})
}
- this.flag = true
+ console.log(222)
this.$http.post(`/app/appcontentinfo/addOrUpdate`, {
- title: this.forms.title,
- areaId: this.forms.areaId,
- content: this.forms.content,
- files: imgs || [],
- id: this.id,
- moduleId: this.moduleId,
- categoryId: this.selectList[this.forms.selectIndex].id,
- categoryName: this.selectList[this.forms.selectIndex].categoryName,
- })
- .then((res) => {
- if (res.code == 0) {
- uni.$emit('update')
- this.$u.toast('发布成功')
- this.flag = false
- setTimeout(() => {
- uni.navigateBack()
- }, 600)
- }
- })
+ title: this.forms.title,
+ areaId: this.forms.areaId,
+ content: this.forms.content,
+ files: imgs || [],
+ id: this.id,
+ moduleId: this.moduleId,
+ categoryId: this.selectList[this.forms.selectIndex].id,
+ categoryName: this.selectList[this.forms.selectIndex].categoryName,
+ })
+ .then((res) => {
+ console.log(333)
+ if (res.code == 0) {
+ uni.$emit('update')
+ this.$u.toast('发布成功')
+ this.flag = true
+ setTimeout(() => {
+ uni.navigateBack()
+ }, 600)
+ }
+ }).catch((err) => {
+ console.log(err)
+ })
} else {
this.$u.toast('失败')
}
diff --git a/src/apps/AppServicePublic/AppServicePublic.vue b/src/apps/AppServicePublic/AppServicePublic.vue
index 4441d84e..7bfdf1a0 100644
--- a/src/apps/AppServicePublic/AppServicePublic.vue
+++ b/src/apps/AppServicePublic/AppServicePublic.vue
@@ -10,7 +10,7 @@
-