zaijin 4 jaren geleden
bovenliggende
commit
cc9c9aac1e
1 gewijzigde bestanden met toevoegingen van 14 en 15 verwijderingen
  1. 14 15
      pages/parkingLists/parkingLists.vue

+ 14 - 15
pages/parkingLists/parkingLists.vue

@@ -120,18 +120,18 @@
 					longitude: 106.636453,
 				},
 				covers: [
-					{
-						latitude: 26.597864,
-						longitude: 106.72947,
-						id: '0',
-						iconPath: require('./../../static/img/parking-icon.png')
-					},
-					{
-						latitude: 26.497864,
-						longitude: 106.72947,
-						id: '1',
-						iconPath: require('./../../static/img/parking-icon.png')
-					}
+					// {
+					// 	latitude: 26.597864,
+					// 	longitude: 106.72947,
+					// 	id: '0',
+					// 	iconPath: require('./../../static/img/parking-icon.png')
+					// },
+					// {
+					// 	latitude: 26.497864,
+					// 	longitude: 106.72947,
+					// 	id: '1',
+					// 	iconPath: require('./../../static/img/parking-icon.png')
+					// }
 				],
 				// 轮播选中
 				swiperCurrent: 0,
@@ -180,7 +180,7 @@
 						that.currentPosition.latitude = res.latitude
 						that.currentPosition.longitude = res.longitude
 						console.log(that.currentPosition)
-						// that.getNearRoadsl()
+						that.getNearRoadsl()
 					},
 					fail: function(res){
 						console.log("请求错误:", res)
@@ -210,7 +210,7 @@
 							let marker = {
 								latitude: item.latitude,
 								longitude:item.longitude,
-								id: '1',
+								// id: '1',
 								iconPath: require('./../../static/img/parking-icon.png')
 							}
 							this.covers.push(marker);
@@ -229,7 +229,6 @@
 						title: err.msg,
 						type: 'error',
 					});
-					console.log('getNearRoadsl ',err)
 				});
 			},
 			/**