nk-shop2.0/utils/uniMPfunction.js
2023-09-20 20:11:10 +08:00

20 lines
324 B
JavaScript

export const test = ()=>{
return '测试'
}
export const uniMPgetLocation = ()=>{
return new Promise((resolve, reject)=>{
uni.getLocation({
type: 'gcj02',
geocode: true,
isHighAccuracy: true,
success: (res)=> {
resolve(res)
},
fail(e) {
reject(e)
}
});
})
}