update bug
This commit is contained in:
@@ -1271,17 +1271,20 @@ $.config = {router: false}
|
|||||||
var city = "";
|
var city = "";
|
||||||
plus.geolocation.getCurrentPosition(function(p){
|
plus.geolocation.getCurrentPosition(function(p){
|
||||||
city = p.address.city;
|
city = p.address.city;
|
||||||
|
|
||||||
if(city && city.endsWith("市")){
|
if(city && city.endsWith("市")){
|
||||||
|
|
||||||
var formatCity = formatBaiduCity(city);
|
var formatCity = formatBaiduCity(city);
|
||||||
positionCity = formatCity
|
positionCity = formatCity
|
||||||
city = formatCity;
|
city = formatCity;
|
||||||
$(".nowCity").html(city);
|
$(".nowCity").html(city);
|
||||||
|
|
||||||
loadAllCityData();
|
loadAllCityData();
|
||||||
}
|
}
|
||||||
|
loadMyCollectCity();
|
||||||
|
|
||||||
}, function(e){
|
}, function(e){
|
||||||
|
loadAllCityData();
|
||||||
|
loadMyCollectCity();
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
provider:'baidu',
|
provider:'baidu',
|
||||||
@@ -1352,7 +1355,7 @@ $.config = {router: false}
|
|||||||
window.location.href = "01_index04_districtDetail.html";
|
window.location.href = "01_index04_districtDetail.html";
|
||||||
});
|
});
|
||||||
|
|
||||||
loadMyCollectCity();
|
|
||||||
|
|
||||||
//城市选择
|
//城市选择
|
||||||
//$("#cityCopy").html($('.tabs').html())
|
//$("#cityCopy").html($('.tabs').html())
|
||||||
@@ -1389,7 +1392,7 @@ $.config = {router: false}
|
|||||||
search();
|
search();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//加载首页全国数据
|
//加载首页全国数据
|
||||||
|
|||||||
Reference in New Issue
Block a user