diff --git a/utils/uniMPevent.js b/utils/uniMPevent.js index f051aec..04a2b14 100644 --- a/utils/uniMPevent.js +++ b/utils/uniMPevent.js @@ -17,20 +17,6 @@ export const initEvent = () => { console.log('获取定位'); let res = await uniMPgetLocation(); console.log(res); - // plus.geolocation.getCurrentPosition(function(position) { - // console.log('经度:' + position.coords.longitude); - // console.log('纬度:' + position.coords.latitude); - // // that.markers[1].latitude = position.coords.longitude; - // // that.markers[1].longitude = position.coords.longitude; - // mp.sendUniMPEvent( - // ret.fromAppid, - // 'getLocation', {...position.coords}, - // (ret) => { - // console.log('Host sendEvent: ' + JSON.stringify(ret)); - // }); - // }, function(error) { - // console.error('获取位置失败:', error.message); - // }, {provider:'gps'}); mp.sendUniMPEvent( ret.fromAppid, 'getLocation', {...res}, @@ -51,8 +37,6 @@ export const initEvent = () => { }); } if (ret.event == 'log') { - // console.log('2222222') - console.log('收到小程序事件: ' + JSON.stringify(ret)); }