|
@@ -10,13 +10,11 @@
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
|
|
|
<!-- #ifdef APP -->
|
|
<!-- #ifdef APP -->
|
|
- <googleMap keyId="1" width="100%" height='calc(50vh - 0rpx)' v-if="myLocation.latitude" :mapData='{
|
|
|
|
|
|
+ <googleMap keyId="1" width="100%" height='calc(50vh - 0rpx)' v-if="myLocation.latitude && mapShow" :mapData='{
|
|
markers,
|
|
markers,
|
|
type:3,
|
|
type:3,
|
|
polylines
|
|
polylines
|
|
- }' :myLocation='myLocation'></googleMap>
|
|
|
|
-
|
|
|
|
- <!-- <googleMaps width="100%" height='calc(50vh - 0rpx)' :myLocations='myLocation'></googleMaps> -->
|
|
|
|
|
|
+ }' :myLocations='myLocation'></googleMap>
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
|
|
|
<view class="car-info">
|
|
<view class="car-info">
|
|
@@ -67,7 +65,7 @@
|
|
<script module="tools" lang="wxs" src="@/pages/common/wxs/tools.wxs"></script>
|
|
<script module="tools" lang="wxs" src="@/pages/common/wxs/tools.wxs"></script>
|
|
<script module="tools" lang="sjs" src="@/pages/common/wxs/tools.sjs"></script>
|
|
<script module="tools" lang="sjs" src="@/pages/common/wxs/tools.sjs"></script>
|
|
<script>
|
|
<script>
|
|
- import googleMaps from "@/component/googleMap/googleMaps";
|
|
|
|
|
|
+ import googleMap from "@/component/googleMap/googleMap";
|
|
var common = require('../../common/common.js');
|
|
var common = require('../../common/common.js');
|
|
var amap = require('../../common/amap-wx.js');
|
|
var amap = require('../../common/amap-wx.js');
|
|
var config = require('../../common/config.js');
|
|
var config = require('../../common/config.js');
|
|
@@ -77,10 +75,11 @@
|
|
var storage = require('../../common/storage.js');
|
|
var storage = require('../../common/storage.js');
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- googleMaps,
|
|
|
|
|
|
+ googleMap,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ mapShow:false,
|
|
time:'未知',
|
|
time:'未知',
|
|
carInfo: {},
|
|
carInfo: {},
|
|
id: 0, // 使用 marker点击事件 需要填写id
|
|
id: 0, // 使用 marker点击事件 需要填写id
|
|
@@ -92,10 +91,6 @@
|
|
enableTraffic: false // 是否开启实时路况
|
|
enableTraffic: false // 是否开启实时路况
|
|
},
|
|
},
|
|
myInfo: {},
|
|
myInfo: {},
|
|
- myLocation: {
|
|
|
|
- latitude: 39.910925,
|
|
|
|
- longitude: 116.413384,
|
|
|
|
- },
|
|
|
|
star_address: '',
|
|
star_address: '',
|
|
end_address: '',
|
|
end_address: '',
|
|
address: {},
|
|
address: {},
|
|
@@ -116,6 +111,7 @@
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
|
+
|
|
this.carInfo = uni.getStorageSync('car_info')
|
|
this.carInfo = uni.getStorageSync('car_info')
|
|
this.plate_number = options.plate_number
|
|
this.plate_number = options.plate_number
|
|
const me = this
|
|
const me = this
|
|
@@ -217,6 +213,7 @@
|
|
this.getAddressName(this.markers[0].latitude, this.markers[0].longitude, 1)
|
|
this.getAddressName(this.markers[0].latitude, this.markers[0].longitude, 1)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ this.mapShow = true
|
|
}
|
|
}
|
|
console.log(data)
|
|
console.log(data)
|
|
},
|
|
},
|