flat: 地图修改
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user