new_shop_app/utils/uniMPfunction.js

21 lines
390 B
JavaScript
Raw Permalink Normal View History

2024-02-26 13:35:08 +08:00
export const test = () => {
return '测试'
}
export const uniMPgetLocation = () => {
return new Promise((resolve, reject) => {
uni.getLocation({
2024-03-29 15:17:12 +08:00
type: 'gcj02',
2024-02-26 13:35:08 +08:00
geocode: true,
isHighAccuracy: true,
// altitude: true,
// accuracy: 'best',
success: (res) => {
resolve(res)
},
fail(e) {
resolve(e)
}
});
})
}