|
|
@@ -24,17 +24,18 @@ export async function mGetPosition() {
|
|
|
if (!client_hash && getRoute == 'pages/page/login/index') {
|
|
|
return null
|
|
|
}
|
|
|
- let getObj = await new Promise(resolve => {
|
|
|
- uni.getLocation({
|
|
|
- type: 'gcj02',
|
|
|
- success: res => resolve(res),
|
|
|
- fail: e => {
|
|
|
- console.log('获取位置失败!', e)
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
|
|
|
- mLocation = getObj
|
|
|
+ // let getObj = await new Promise(resolve => {
|
|
|
+ // uni.getLocation({
|
|
|
+ // type: 'gcj02',
|
|
|
+ // success: res => resolve(res),
|
|
|
+ // fail: e => {
|
|
|
+ // console.log('获取位置失败!', e)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+
|
|
|
+ // mLocation = getObj
|
|
|
mLocation.lat = getObj.latitude
|
|
|
mLocation.lng = getObj.longitude
|
|
|
|