flat: 地图修改

This commit is contained in:
Apcallover
2024-06-11 10:10:29 +08:00
parent 4dce135e0d
commit d19b4d502b
15 changed files with 1564 additions and 42 deletions

View File

@@ -102,7 +102,7 @@
</view>
<view class="map">
<super-map ref="uMap" style="width: 100%;height: 100%;" :latitude="latitude" :longitude="longitude"
:open="true" :zoom="14" :min-zoom="10" :max-zoom="20" :MapUrl="$config.supperMap"
:open="true" :zoom="14" :min-zoom="10" :max-zoom="20" :MapUrl="$config.supperMap" :init="false"
:flag-tip="false"></super-map>
</view>
<!-- <map class="map" :latitude="latitude" :longitude="longitude" :markers="covers"></map> -->
@@ -324,19 +324,23 @@
detail(self.missionNo).then(res => {
self.info = res.data.data;
self.status = res.data.data.detailStatus;
AddressToLocation({
smart_address: res.data.data.address
}).then((result) => {
console.log('result', result)
self.latitude = result.location.lat;
self.longitude = result.location.lon;
self.covers[0].latitude = result.location.lat;
self.covers[0].longitude = result.location.lon;
})
// AddressToLocation({
// smart_address: res.data.data.address
// }).then((result) => {
// console.log('result', result)
// self.latitude = result.location.lat;
// self.longitude = result.location.lon;
// self.covers[0].latitude = result.location.lat;
// self.covers[0].longitude = result.location.lon;
// })
// self.latitude = self.info.lat;
// self.longitude = self.info.lon;
// self.covers[0].latitude = self.info.lat;
// self.covers[0].longitude = self.info.lon;
self.$refs.uMap.initMap({
lat: self.info.lat,
lon: self.info.lon,
})
self.showDetail = true;
self.getCollectStatus();
if (self.type === 1) {