diff --git a/fuintAdmin/src/components/map/mapComponent.vue b/fuintAdmin/src/components/map/mapComponent.vue index 9ed58d061..364f1ae8c 100644 --- a/fuintAdmin/src/components/map/mapComponent.vue +++ b/fuintAdmin/src/components/map/mapComponent.vue @@ -90,6 +90,7 @@ export default { version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15 plugins: ["AMap.Geocoder", "AMap.AutoComplete","AMap.DistrictSearch","AMap.PlaceSearch","AMap.Autocomplete"], // 需要使用的的插件列表,如比例尺'AMap.Scale'等 }).then((AMap) => { + console.log("93") this.map = new AMap.Map("container", { viewMode: "2D", //是否为3D地图模式 zoom: 17, //初始化地图级别 @@ -120,15 +121,17 @@ export default { }, // 标记点 setMapMarker() { + console.log("18") // 自动适应显示想显示的范围区域 this.map.setFitView(); this.marker = new AMap.Marker({ - map: this.map, + + position: [this.form.lng, this.form.lat], }); // 逆解析地址 - this.toGeoCoder(); - this.map.setFitView(); + // this.toGeoCoder(); + // this.map.setFitView(); this.map.add(this.marker); }, // 清除点 diff --git a/gasStation-uni/pagesHome/cardDetails/detailed.vue b/gasStation-uni/pagesHome/cardDetails/detailed.vue new file mode 100644 index 000000000..867b7a6f0 --- /dev/null +++ b/gasStation-uni/pagesHome/cardDetails/detailed.vue @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/gasStation-uni/pagesHome/cardDetails/index.vue b/gasStation-uni/pagesHome/cardDetails/index.vue new file mode 100644 index 000000000..77c3787ad --- /dev/null +++ b/gasStation-uni/pagesHome/cardDetails/index.vue @@ -0,0 +1,286 @@ + + + + + \ No newline at end of file