|
|
@@ -18,7 +18,13 @@ Page({
|
|
|
truckLoadList: [],
|
|
|
shipDischargeTotal: 0,
|
|
|
truckLoadTotal: 0,
|
|
|
- polyline: {},
|
|
|
+ polyline: [{
|
|
|
+ points: [],
|
|
|
+ width: 2,
|
|
|
+ dottedLine: true,
|
|
|
+ color: "#eb2f06"
|
|
|
+ }],
|
|
|
+ markers: [],
|
|
|
pageSize: 20
|
|
|
},
|
|
|
changeTab(e) {
|
|
|
@@ -50,18 +56,29 @@ Page({
|
|
|
longitude: i.longitude
|
|
|
})
|
|
|
}
|
|
|
- let polyline = {
|
|
|
- points,
|
|
|
- color: "#ff454d",
|
|
|
- width: 50
|
|
|
- }
|
|
|
+ let {
|
|
|
+ latitude,
|
|
|
+ longitude
|
|
|
+ } = points[points.length - 1]
|
|
|
+ let markers = [{
|
|
|
+ id: 999,
|
|
|
+ latitude,
|
|
|
+ longitude,
|
|
|
+ iconPath: "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/web-static/ship-red-icon.png",
|
|
|
+ height: 20,
|
|
|
+ width: 20
|
|
|
+ }]
|
|
|
+ this.data.polyline[0].points = points
|
|
|
this.setData({
|
|
|
coordinates,
|
|
|
medias,
|
|
|
policys,
|
|
|
voyage,
|
|
|
waybills,
|
|
|
- polyline
|
|
|
+ polyline: this.data.polyline,
|
|
|
+ latitude,
|
|
|
+ longitude,
|
|
|
+ markers
|
|
|
})
|
|
|
},
|
|
|
|