修复启动闪退问题

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);
} else {
plus.geolocation.getCurrentPosition(
function(p){
try {
city = p.address.city;
if(city){
city = formatBaiduCity(city);
}
} catch(e){
city = "上海";
}
loadStartPage(city);
}, function(e){
city = "上海";
loadStartPage(city);
},
{
provider:'baidu',
enableHighAccuracy:true,
coordsType:'bd09ll'
}
);
var city = localStorage.getItem("init_city");
if (city == null || city == "") {
city = "全国";
}
loadStartPage(city);
//显示启动导航
mui.openWindow({
id: 'guide',