diff --git a/pages/index/index.vue b/pages/index/index.vue index 109a7a1..235f91a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -100,7 +100,13 @@ if (navigator.geolocation) { navigator.geolocation.getCurrentPosition( (position) => { - console.log(111,position.coords) + console.log('纬度: ', coords.latitude); + console.log('经度: ', coords.longitude); + console.log('高度: ', coords.altitude); + console.log('坐标精度: ', coords.accuracy); + console.log('高度精度: ', coords.altitudeAccuracy); + console.log('移动方向: ', coords.heading); + console.log('移动速度: ', coords.speed); }, (error) => { let locationStatus = '' diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index db992fd..6741f92 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@