This commit is contained in:
xianfuxing 2018-09-04 19:58:24 +08:00
parent 434d9bd012
commit 636e0877b7
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@ export default {
map: null,
flag: false,
mapClick: false,
geo: [],
defaultPositions: [
{
title: '海洋公园',
@ -164,6 +165,8 @@ export default {
var str = ['定位成功']
str.push('经度:' + data.position.getLng())
str.push('纬度:' + data.position.getLat())
this.geo = [data.position.getLng(), data.position.getLat()]
console.log(this.geo)
if (data.accuracy) {
str.push('精度:' + data.accuracy + ' 米')
}