Merge branch 'master' of http://git.scdxtc.com/chen/flying-monkey
						commit
						0dacf8bddc
					
				|  | @ -83,7 +83,11 @@ | ||||||
|     }, |     }, | ||||||
|     "h5" : { |     "h5" : { | ||||||
|         "sdkConfigs" : { |         "sdkConfigs" : { | ||||||
|             "maps" : {} |             "maps" : { | ||||||
|  |                 "qqmap" : { | ||||||
|  |                     "key" : "TMWBZ-XA3CD-HA74Y-PNUS4-SAV6Q-X7FXH" | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|         }, |         }, | ||||||
|         "devServer" : { |         "devServer" : { | ||||||
|             "https" : false, |             "https" : false, | ||||||
|  |  | ||||||
|  | @ -342,6 +342,15 @@ | ||||||
|                     "enablePullDownRefresh": false |                     "enablePullDownRefresh": false | ||||||
|                 } |                 } | ||||||
|                  |                  | ||||||
|  |                 } | ||||||
|  |                 ,{ | ||||||
|  |                     "path" : "map/map", | ||||||
|  |                     "style" :                                                                                     | ||||||
|  |                 { | ||||||
|  |                     "navigationBarTitleText": "", | ||||||
|  |                     "enablePullDownRefresh": false | ||||||
|  |                 } | ||||||
|  |                  | ||||||
|                 } |                 } | ||||||
|             ] |             ] | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  | @ -0,0 +1,21 @@ | ||||||
|  | <template> | ||||||
|  | 	<view> | ||||||
|  | 		<map :latitude="30.656693" :longitude="104.136425"></map> | ||||||
|  | 	</view> | ||||||
|  | </template> | ||||||
|  | <script> | ||||||
|  | 	export default { | ||||||
|  | 		data() { | ||||||
|  | 			return { | ||||||
|  | 				 | ||||||
|  | 			} | ||||||
|  | 		}, | ||||||
|  | 		methods: { | ||||||
|  | 			 | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | </script> | ||||||
|  | 
 | ||||||
|  | <style> | ||||||
|  | 
 | ||||||
|  | </style> | ||||||
|  | @ -76,13 +76,22 @@ | ||||||
| 						const latitude = res.latitude; | 						const latitude = res.latitude; | ||||||
| 						const longitude = res.longitude; | 						const longitude = res.longitude; | ||||||
| 						console.log(latitude,longitude,78); | 						console.log(latitude,longitude,78); | ||||||
| 						uni.openLocation({ | 						uni.chooseLocation({ | ||||||
| 							latitude: latitude, | 							success: function (res) { | ||||||
| 							longitude: longitude, | 								console.log(res,81); | ||||||
| 							success: function () { | 								console.log('位置名称:' + res.name); | ||||||
| 								console.log('success'); | 								console.log('详细地址:' + res.address); | ||||||
|  | 								console.log('纬度:' + res.latitude); | ||||||
|  | 								console.log('经度:' + res.longitude); | ||||||
| 							} | 							} | ||||||
| 						}); | 						}); | ||||||
|  | 						// uni.openLocation({ | ||||||
|  | 						// 	latitude: latitude, | ||||||
|  | 						// 	longitude: longitude, | ||||||
|  | 						// 	success: function () { | ||||||
|  | 						// 		console.log('success'); | ||||||
|  | 						// 	} | ||||||
|  | 						// }); | ||||||
| 					} | 					} | ||||||
| 				}); | 				}); | ||||||
| 			}, | 			}, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue