|
@@ -65,7 +65,13 @@
|
|
|
'content-type': 'application/json' //'application/x-www-form-urlencoded; charset=UTF-8',
|
|
|
},
|
|
|
success: (res) => {
|
|
|
- console.log(res);
|
|
|
+ console.log(res.data.data,11111111)
|
|
|
+ if(res.data.code==200){
|
|
|
+ if(res.data.data.longitudeLatitude){
|
|
|
+ console.log(JSON.parse(res.data.data.longitudeLatitude));
|
|
|
+ this.polyline[0].points =JSON.parse(res.data.data.longitudeLatitude)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
// this.$request.baseRequest('post', '/hyOrderTravelPath/getInfo', {
|
|
@@ -95,8 +101,8 @@
|
|
|
// // var longitude = this.polyline[0].points[this.polyline[0].points.length -1].longitude + 0.0001
|
|
|
// // this.polyline[0].points.push({latitude,longitude})
|
|
|
// // }
|
|
|
- // // this.durationTime = Math.ceil(30000 / this.polyline[0].points.length) //默认播放全程使用30秒,计算相连两点动画时长
|
|
|
- // // this.initMapData()
|
|
|
+ this.durationTime = Math.ceil(30000 / this.polyline[0].points.length) //默认播放全程使用30秒,计算相连两点动画时长
|
|
|
+ this.initMapData()
|
|
|
// })
|
|
|
// .catch(res => {
|
|
|
// uni.hideLoading()
|