拓恒河湖长制全民护河平台WEB端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getUserLocation.js 328B

2 years ago
2 years ago
123456789101112131415
  1. export const getLocatonPermission = function (){
  2. return new Promise((resolve, reject)=> {
  3. wx.getLocation({
  4. type: 'gcj02 ',
  5. altitude: false,
  6. success(res){
  7. resolve(res)
  8. },
  9. fail(e){
  10. reject(e)
  11. }
  12. })
  13. })
  14. }