-    
-
-    
+    
 
     
 
+    
+
     
       
     
@@ -72,7 +72,7 @@ export default {
         },
       ],
       currentTabs: 0,
-      areaId: ''
+      areaId: '',
     }
   },
   computed: {
@@ -92,6 +92,7 @@ export default {
             size: this.size,
             current: this.current,
             con: this.keyword,
+            areaId: this.areaId,
             residentType: this.currentTabs == 0 ? '0' : '1',
           },
         })
@@ -112,6 +113,12 @@ export default {
     toDetailCard(item) {
       uni.navigateTo({ url: `./DetailCard?id=${item.id}` })
     },
+
+    seachObj(e) {
+      this.areaId = e.id
+      this.current = 1
+      this.getList()
+    },
   },
   onReachBottom() {
     this.current = this.current + 1
From bab9b0e3cf303feff538f80e6d3808f8e8b3d139 Mon Sep 17 00:00:00 2001
From: liuye 
Date: Thu, 23 Dec 2021 17:30:17 +0800
Subject: [PATCH 3/7] bug
---
 src/apps/AppBuilding/components/searchMap.vue |  2 +-
 src/apps/AppServicePublic/Add.vue             | 45 ++++++++++---------
 .../AppServicePublic/AppServicePublic.vue     |  2 +-
 src/apps/AppSpecialPeople/add.vue             |  5 +--
 src/apps/AppSpecialPeople/detail.vue          |  5 +++
 src/apps/AppUniMsg/Add.vue                    |  4 +-
 6 files changed, 35 insertions(+), 28 deletions(-)
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 @@
       
      
 
-