微信公开课
微信公开课小程序热门讨论关于「ios10以上死机」的小程序开发问题
补充:安卓所有均可用,ios10以能兼容,但会出现toolbar位置混乱没有更新微信开发工具之前,所有功能在ios上均可使用,更新后出现很多问题地图功能单独拿出来xzz1023varvillage_LBS=function(that){vartha
展开:安卓所有均可用,ios10以能兼容,但会出现toolbar位置混乱没有更新微信开发工具之前,所有功能在ios上均可使用,更新后出现很多问题地图功能单独拿出来xzz1023varvillage_LBS=function(that){varthat=this;腾讯LBS地图wxgetLocation({ type:gcj02,返回可以用于wxopenLocation的经纬度 success:function(res){ 调用接口,坐标转具体位置xxz0717 demoreverseGeocoder({ location:{ latitude:Number(reslatitude), longitude:Number(reslongitude) }, success:function(res){ consolelog(res); thatsetData({ start_address:resresultaddress,起点地址 city:resresultaddress_componentcity,起点城市 district:resresultaddress_componentdistrict区 }) } });}))Page({ onLoad:function(options){ varthat=this; village_LBS(that);} onReady:function(){ varthat=this; wxgetSetting({ success:(res)={ consolelog(res); consolelog(resauthSetting[scopeuserLocation]); if(resauthSetting[scopeuserLocation]!=undefined&&resauthSetting[scopeuserLocation]!=true){非初始化进入该页面,且未授权 wxshowModal({ title:是否授权当前位置, content:需要获取您的地理位置,请确认授权,否则地图功能将无法使用, success:function(res){ if(rescancel){ consoleinfo(1授权失败返回数据); }elseif(resconfirm){ village_LBS(that); wxopenSetting({ success:function(data){ consolelog(data); if(dataauthSetting[scopeuserLocation]==true){ wxshowToast({ title:授权成功, icon:success, duration:5000 }) 再次授权,调用getLocationt的API village_LBS(that); }else{ wxshowToast({ title:授权失败, icon:success, duration:5000 }) } } }) } } }) }elseif(resauthSetting[scopeuserLocation]==undefined){初始化进入 village_LBS(that); } } }) }})即速小程序:ios10以上都死机微信70上两周没问题,更新开发工具后出现很多问题,死机,地理授权打不开,代码15mb分享不了:提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https:developersweixinqqcomminiprogramdevdevtoolsminicodehtml)
更多有关「ios10以上死机」的讨论可以前往微信公开课小程序参与互动哦!了解更多