Browse Source

修复了mobile端“更多”不能正确显示卡片

napier 3 years ago
parent
commit
5d0c8b3cc2
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/components/map.vue
  2. 1 1
      src/components/mobileBar.vue

+ 2 - 2
src/components/map.vue

@@ -431,6 +431,7 @@ export default {
      * @param {String} type:所属类别, 文化类:'culture' / 消息类: 'notice'
      * @param {Boolean} isRefresh:是否刷新图层
      * @param {Boolean} isLoacate:是否缩放到要素
+     * @param {Boolean} isRelate:是否显示附属信息
      * @returns {void}
      */
     printFeature: function (title, msg, type, number = null, isRefresh = false, isLocate = false, isRelate = false) {
@@ -869,8 +870,6 @@ export default {
           that.popupData.info = response.data
           that.popupData.type = '活动通知'
           res = response.data
-
-          res = response.data
         })
 
       return res
@@ -1067,6 +1066,7 @@ export default {
               })
             break
         }
+        console.log(data)
         that.printFeature('markLayer', data, msg.type, number, true, true, true)
 
         //  显示popup

+ 1 - 1
src/components/mobileBar.vue

@@ -285,7 +285,7 @@ export default {
           that.listData.others = response.data
           // 浅拷贝到当前的通知列表数组
           that.listData.current = JSON.parse(JSON.stringify(that.listData.others))
-          that.currentMsgType = 'others'
+          that.currentMsgType = 'other'
         })
     },