Browse Source

修复某些漏洞

napier 2 years ago
parent
commit
e401f3a118
3 changed files with 9 additions and 15 deletions
  1. 2 3
      src/components/card.vue
  2. 7 6
      src/components/map.vue
  3. 0 6
      src/components/pcBar.vue

+ 2 - 3
src/components/card.vue

@@ -63,9 +63,8 @@ export default {
     return {
       button: '',
       flag: '',
-      // imgArr: ['https://i.loli.net/2021/09/26/SAI1gWCvB8DMsTi.png'],
-      image: 'https://gitee.com/clqn/picgo/raw/master/imgs/card-img.png',
-      imgArr: ['https://gitee.com/clqn/picgo/raw/master/imgs/card-img.png'],
+      image: 'http://clqn-1300030890.coscd.myqcloud.com/card-img.png',
+      imgArr: ['http://clqn-1300030890.coscd.myqcloud.com/card-img.png'],
       showMore: false,
       screenSize: window.screen.width
     }

+ 7 - 6
src/components/map.vue

@@ -467,6 +467,8 @@ export default {
           style = this.otherStyles
           break
       }
+      console.log(type)
+      console.log(type + ':' + style)
       var feature = this.GeoJSON_to_Feature(geometry, style)
 
       // 要素属性装载
@@ -511,7 +513,6 @@ export default {
         console.log('printFromGeoJSON 所输入的GeoJSON不符合规范')
         return
       }
-
       var feature = null
       // 按geometry.type类型创建要素并赋予样式
       switch (geometry.type) {
@@ -661,9 +662,9 @@ export default {
         .post('/others/all')
         .then(res => {
           res.data.forEach(e => {
-            that.printFeature('otherLayer', e, 'other')
+            that.printFeature('otherLayer', e, 'others')
           })
-          this.addCluster('otherLayer', this.otherStyles.Point)
+          that.addCluster('otherLayer', that.otherStyles.Point)
         })
     },
 
@@ -809,7 +810,7 @@ export default {
           id: id
         })
         .then(response => {
-          response.data.content = response.data.content.join('')
+          // response.data.content = response.data.content.join('')
           that.popupData.info = response.data
           that.popupData.type = '文化设施'
 
@@ -1048,8 +1049,8 @@ export default {
         map.removeLayer(that.getLayerByTitle('markLayer'))
         that.loadOthers()
         that.loadCulture()
-        that.loadRecentReports(7)
-        that.loadRecentNotices(7)
+        that.loadRecentReports(365)
+        that.loadRecentNotices(365)
         that.closePopup()
       })
 

+ 0 - 6
src/components/pcBar.vue

@@ -518,12 +518,6 @@ export default {
       .then((res) => {
         this.form =res.data
         this.form.type = that.getTypeName(type)
-        console.log(this.form)
-        // this.form={
-        //   res.data,
-        //   place:res.data.unit,
-        //   type:that.tabIndex=='0'?'通知':that.tabIndex=='1'?'报道':that.tabIndex=='2'?"文化":'更多'
-        // }
       })
     },