修复启动闪退问题
This commit is contained in:
+5
-23
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user