update bug

This commit is contained in:
2018-04-18 18:04:40 +08:00
parent a7368c7cbc
commit a70aa4e4a8
+6 -3
View File
@@ -1271,17 +1271,20 @@ $.config = {router: false}
var city = "";
plus.geolocation.getCurrentPosition(function(p){
city = p.address.city;
if(city && city.endsWith("市")){
var formatCity = formatBaiduCity(city);
positionCity = formatCity
city = formatCity;
$(".nowCity").html(city);
loadAllCityData();
}
loadMyCollectCity();
}, function(e){
loadAllCityData();
loadMyCollectCity();
},
{
provider:'baidu',
@@ -1352,7 +1355,7 @@ $.config = {router: false}
window.location.href = "01_index04_districtDetail.html";
});
loadMyCollectCity();
//城市选择
//$("#cityCopy").html($('.tabs').html())
@@ -1389,7 +1392,7 @@ $.config = {router: false}
search();
});
}
//加载首页全国数据