diff --git a/pages/shopmap/index.vue b/pages/shopmap/index.vue index 686a043..d778c6f 100644 --- a/pages/shopmap/index.vue +++ b/pages/shopmap/index.vue @@ -51,24 +51,29 @@ - {{item.title}} - - - + {{item.title}} + + + + + + + + {{ item.address }} + | + + {{item.distance_m | kmUnit}} + - - - {{ item.address }} - | - - {{item.distance_m | kmUnit}} + + + + + ¥{{ item.price }} - - - @@ -252,6 +257,7 @@ tab_item.loadingClass = true; tab_item.loadingText = '正在加载中'; tab_item.list = []; + this.markers_list = []; }, getCategory(options = {}) { this.$http(this.API.API_CATEGORYLIST).then(res => { @@ -353,8 +359,8 @@ tab_item.list.push(...res.data.data); } console.log("res", res); - let res_list = res.data.data || []; - this.createMarkers(res_list); + // let res_list = res.data.data || []; + this.createMarkers(tab_item.list); }).catch(err => { }) @@ -415,7 +421,7 @@ width: 100%; height: 100%; box-sizing: border-box; - padding: 0rpx 28rpx; + // padding: 0rpx 28rpx; } .lf-map-height { width: 100%;