修复启动闪退问题
This commit is contained in:
+3
-21
@@ -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 = "上海";
|
||||
var city = localStorage.getItem("init_city");
|
||||
if (city == null || city == "") {
|
||||
city = "全国";
|
||||
}
|
||||
loadStartPage(city);
|
||||
}, function(e){
|
||||
city = "上海";
|
||||
loadStartPage(city);
|
||||
},
|
||||
{
|
||||
provider:'baidu',
|
||||
enableHighAccuracy:true,
|
||||
coordsType:'bd09ll'
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
//显示启动导航
|
||||
mui.openWindow({
|
||||
id: 'guide',
|
||||
|
||||
Reference in New Issue
Block a user