diff --git a/pages/nongKe/supply_chain/maps.vue b/pages/nongKe/supply_chain/maps.vue index 1696597..f089327 100644 --- a/pages/nongKe/supply_chain/maps.vue +++ b/pages/nongKe/supply_chain/maps.vue @@ -20,20 +20,42 @@ id: 1, latitude: 28.908447, longitude: 105.439304, - title: "手动升级的话", + title: "测试商家名称", iconPath: "/static/images/GXSC/SJicon.png" - }] + }, { + id: 2, + latitude: 28.909447, + longitude: 105.439304, + title: "测试商家名称", + iconPath: "/static/images/GXSC/SJicon.png" + }, { + id: 3, + latitude: 28.908447, + longitude: 105.459304, + title: "测试商家名称", + iconPath: "/static/images/GXSC/SJicon.png" + }, ] } } , - onLoad() { + onLoad(options) { let that = this // supAgoodsApi() - vicinityStoreApi(510502106).then(res => { - console.log(res.data.list) + vicinityStoreApi(options.street_id).then(res => { + // console.log(res.data.list) res.data.list.forEach(item => { - that.markers.push({}) + if (!item.lat) return + this.markers = [] + // console.log(item) + that.markers.push({ + id: item.mer_id, + latitude: item.lat, + longitude: item.long, + title: item.mer_name, + iconPath: "/static/images/GXSC/SJicon.png" + + }) }) }) } diff --git a/pages/nongKe/supply_chain/supplier.vue b/pages/nongKe/supply_chain/supplier.vue index ac92e63..773621e 100644 --- a/pages/nongKe/supply_chain/supplier.vue +++ b/pages/nongKe/supply_chain/supplier.vue @@ -21,7 +21,8 @@ :showLoading="true" src="/static/images/GXSC/SS.png" width="115.65rpx" height="56.82rpx"> - +