tida
Version:
tida
2 lines (1 loc) • 629 B
JavaScript
module.exports=webpackJsonp([15],{2:function(e,t){e.exports=require("@weex-module/windvane")},24:function(e,t,n){"use strict";var o=(n(1),n(0)),a=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports={getCurrentPosition:function(e,t,n){n.address||(n.address=1),a.default.call("WVLocation","getLocation",n,function(t){t=JSON.parse(t);var n=t.coords;n&&(n.longitude=parseFloat(n.longitude),n.latitude=parseFloat(n.latitude),n.accuracy=parseFloat(n.accuracy)),t.errorCode=0,e&&e(t)},function(o){if("HY_NOT_SUPPORT_DEVICE"===o.ret[0])try{window.navigator.geolocation.getCurrentPosition(e,t,n)}catch(e){t&&t(e)}})}}}},[24]);