This commit is contained in:
2018-04-16 19:28:19 +08:00
parent 369b83fd69
commit f5f4ec0487
11 changed files with 53 additions and 68 deletions
+9 -4
View File
@@ -475,22 +475,23 @@ function addDownChart(dataDown){
}
function collectCity(city){
function collectCity(city, type){
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
clicked('../user/codeSms.html',true,false,{},{},function(){
collectCity(city)
})
return;
} else {
docollectCity(city)
docollectCity(city, type)
}
}
function docollectCity(city){
function docollectCity(city, type){
axios.get("/rest/quotations/collectCity",{
params:{
city : city
city : city,
type:type
}
}).then(function (response) {
var msg = response.data.message;
@@ -518,10 +519,14 @@ function docollectCity(city){
$("a[href='#tabQuotation1']").click();
//plus.webview.getWebviewById('views/house/houseDetail.html').reload();
reloadMyFocus();
reloadCityPotentialRanking()
reloadCityIncreaseRanking()
}else if(msg == "关注成功"){
cityInfoVue.$data.collecd = true;
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
reloadMyFocus();
reloadCityPotentialRanking()
reloadCityIncreaseRanking()
}else{
$.toast(msg);
}