25 lines
394 B
JavaScript
25 lines
394 B
JavaScript
|
export const test = () => {
|
||
|
return '测试'
|
||
|
}
|
||
|
|
||
|
export const uniMPgetLocation = () => {
|
||
|
return new Promise((resolve, reject) => {
|
||
|
uni.getLocation({
|
||
|
type: 'gcj02',
|
||
|
geocode: true,
|
||
|
isHighAccuracy: true,
|
||
|
// altitude: true,
|
||
|
// accuracy: 'best',
|
||
|
success: (res) => {
|
||
|
resolve(res)
|
||
|
},
|
||
|
fail(e) {
|
||
|
resolve(e)
|
||
|
}
|
||
|
});
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
|