shop-applet/utils/uniMPfunction.js

25 lines
394 B
JavaScript
Raw Normal View History

2023-09-26 20:41:49 +08:00
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)
}
});
})
2023-10-09 11:55:47 +08:00
}