Merge branch 'YOUFANGAPP1.1' of http://192.168.0.27/dev0/youfang-app into YOUFANGAPP1.1

This commit is contained in:
raoyanhui
2018-04-13 13:10:22 +08:00
6 changed files with 110 additions and 35 deletions
+6 -1
View File
@@ -383,7 +383,12 @@ function init(){
baseInfo.area= houseInfo.area;
baseInfo.floor= houseInfo.floor;
baseInfo.height= houseInfo.height;
baseInfo.liveStatus=houseInfo.liveStatus;
if(houseInfo.liveStatus){
baseInfo.liveStatus=houseInfo.liveStatus;
}else{
baseInfo.liveStatus='其它';
}
baseInfo.estatetype=houseInfo.estatetype;
baseInfo.totalPrice=houseInfo.totalPrice;
baseInfo.price=houseInfo.price;
+18 -7
View File
@@ -1467,13 +1467,24 @@ function markFocus(){
}
function addFocus(city){
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
createData(city, myDatasVue.$data.cityDatas.length);
}).catch(function(error){
console.log(error)
})
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
alert("请先登录")
clicked('/views/user/passLogin.html',true,false,{},{},function(){
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
}else{
}
})
}else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
reloadMyFocus()
createData(city, myDatasVue.$data.cityDatas.length);
}).catch(function(error){
console.log(error)
})
}
}
</script>