修复启动闪退问题

This commit is contained in:
尹吉欢
2018-07-05 14:58:06 +08:00
parent 753557cc23
commit d931c74b71
+5 -23
View File
@@ -100,29 +100,11 @@
plus.navigator.setFullscreen(false); plus.navigator.setFullscreen(false);
} else { } else {
plus.geolocation.getCurrentPosition( var city = localStorage.getItem("init_city");
function(p){ if (city == null || city == "") {
try { city = "全国";
city = p.address.city; }
if(city){ loadStartPage(city);
city = formatBaiduCity(city);
}
} catch(e){
city = "上海";
}
loadStartPage(city);
}, function(e){
city = "上海";
loadStartPage(city);
},
{
provider:'baidu',
enableHighAccuracy:true,
coordsType:'bd09ll'
}
);
//显示启动导航 //显示启动导航
mui.openWindow({ mui.openWindow({
id: 'guide', id: 'guide',