update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user