aa
This commit is contained in:
@@ -541,7 +541,7 @@ function loadToolList (){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var city_map = localStorage.getItem("init_city");
|
var city_map = localStorage.getItem("origial_city");
|
||||||
axios.get(BASE_PATH + "/rest/usertool/merchantToolList",{params:{city:city_map,position:0}}).then(function(response){
|
axios.get(BASE_PATH + "/rest/usertool/merchantToolList",{params:{city:city_map,position:0}}).then(function(response){
|
||||||
toolList.merchantTools = response.data.data.list;
|
toolList.merchantTools = response.data.data.list;
|
||||||
toolList.userId = response.data.data.uid;
|
toolList.userId = response.data.data.uid;
|
||||||
|
|||||||
@@ -1297,7 +1297,6 @@ function getPosition(){
|
|||||||
city = "上海";
|
city = "上海";
|
||||||
$("#input_city").text(city);
|
$("#input_city").text(city);
|
||||||
initRegionSelect(city);
|
initRegionSelect(city);
|
||||||
localStorage.setItem("init_city", city);
|
|
||||||
//initBaseInfo(city,"","",0,0);
|
//initBaseInfo(city,"","",0,0);
|
||||||
$("#ShangHaiDiv").show();
|
$("#ShangHaiDiv").show();
|
||||||
$("#otherCityDiv").hide();
|
$("#otherCityDiv").hide();
|
||||||
@@ -1318,6 +1317,8 @@ function getPosition(){
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
localStorage.setItem("init_city", city);
|
||||||
|
localStorage.setItem("origial_city", city);
|
||||||
/*}
|
/*}
|
||||||
city = "嘉兴";
|
city = "嘉兴";
|
||||||
province = "浙江";
|
province = "浙江";
|
||||||
@@ -2324,6 +2325,8 @@ $("body").delegate(".popup-about01 .cityGPS", "click", function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function changeCity(cityStr){
|
function changeCity(cityStr){
|
||||||
|
localStorage.removeItem("init_city");
|
||||||
|
localStorage.setItem("init_city", cityStr);
|
||||||
axios.get("/rest/index/isHaveNews", {
|
axios.get("/rest/index/isHaveNews", {
|
||||||
params: {
|
params: {
|
||||||
city: cityStr
|
city: cityStr
|
||||||
|
|||||||
Reference in New Issue
Block a user