From 1e281a9670b7a2b8d4a9fbdb0ff91f443d765fe1 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Thu, 5 Jul 2018 14:56:57 +0800 Subject: [PATCH] aa --- fangija-zsyf/views/user/userInfo.html | 2 +- fangija-zsyf/yfindex.html | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index dde1f22..dab3721 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -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){ toolList.merchantTools = response.data.data.list; toolList.userId = response.data.data.uid; diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index 5dc2a5b..90353b9 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -1297,7 +1297,6 @@ function getPosition(){ city = "上海"; $("#input_city").text(city); initRegionSelect(city); - localStorage.setItem("init_city", city); //initBaseInfo(city,"","",0,0); $("#ShangHaiDiv").show(); $("#otherCityDiv").hide(); @@ -1318,6 +1317,8 @@ function getPosition(){ console.log(error); }); } + localStorage.setItem("init_city", city); + localStorage.setItem("origial_city", city); /*} city = "嘉兴"; province = "浙江"; @@ -2324,6 +2325,8 @@ $("body").delegate(".popup-about01 .cityGPS", "click", function () { }); function changeCity(cityStr){ + localStorage.removeItem("init_city"); + localStorage.setItem("init_city", cityStr); axios.get("/rest/index/isHaveNews", { params: { city: cityStr