From 797ad790d441d818990116a3fe416543617c26f4 Mon Sep 17 00:00:00 2001 From: wpf <2187978347@qq.com> Date: Fri, 15 Mar 2024 14:46:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/uniMPevent.js | 16 ---------------- 1 file changed, 16 deletions(-) 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)); }