update
This commit is contained in:
@@ -1,6 +1,33 @@
|
||||
var ret = []
|
||||
|
||||
function loadMyCollectCity(){
|
||||
plus.nativeUI.showWaiting();
|
||||
axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
|
||||
var curDatas = response.data.data
|
||||
if(curDatas && curDatas.length>0){
|
||||
if(positionCity){
|
||||
if(!IsInArray(curDatas, positionCity)){
|
||||
curDatas.splice(0,0, positionCity)
|
||||
}
|
||||
}
|
||||
cityDetaiVue.$data.citys = curDatas;
|
||||
}else{
|
||||
if(positionCity){
|
||||
cityDetaiVue.$data.citys.push(positionCity);
|
||||
}
|
||||
|
||||
$("#cityInfo").hide()
|
||||
}
|
||||
plus.nativeUI.closeWaiting();
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function loadCurCity(city){
|
||||
plus.nativeUI.showWaiting();
|
||||
|
||||
axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
|
||||
var curDatas = response.data.data
|
||||
if(curDatas && curDatas.length>0){
|
||||
@@ -10,7 +37,7 @@ function loadCurCity(city){
|
||||
cityInfoVue.$data.collecd = false;
|
||||
}
|
||||
}
|
||||
|
||||
plus.nativeUI.closeWaiting();
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
@@ -478,8 +505,9 @@ function docollectCity(city){
|
||||
|
||||
}
|
||||
|
||||
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
//loadMyCollectCity();
|
||||
$("a[href='#tabQuotation1']").click();
|
||||
//plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}else if(msg == "关注成功"){
|
||||
cityInfoVue.$data.collecd = true;
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
|
||||
Reference in New Issue
Block a user