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

This commit is contained in:
raoyanhui
2018-04-16 15:20:49 +08:00
6 changed files with 70 additions and 33 deletions
+1
View File
@@ -1365,6 +1365,7 @@ input[type=range]::-webkit-slider-thumb {
} }
@media(max-width:320px){ @media(max-width:320px){
.list-block .item-title span.c3a{max-width:112px;} .list-block .item-title span.c3a{max-width:112px;}
.list-block .item-title label{max-width:100px;}
label.spacing01{margin-right:11px;} label.spacing01{margin-right:11px;}
label.spacing02{margin-right:12px;} label.spacing02{margin-right:12px;}
.priceInfo div div span{width:125px;} .priceInfo div div span{width:125px;}
@@ -53,13 +53,19 @@ Vue.component('city_increase_ranking',{
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
}else{ }else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
$(event.target).parent().children().removeClass("dn"); var msg = response.data.message;
$(event.target).addClass("dn"); if(msg != "取消关注成功" && msg != "关注成功"){
reloadMyFocus() $.toast(msg);
reloadCityPotentialRanking() }else{
plus.webview.getWebviewById('views/house/houseDetail.html').reload(); $(event.target).parent().children().removeClass("dn");
plus.webview.getWebviewById('views/house/houseManageList.html').reload(); $(event.target).addClass("dn");
plus.webview.getWebviewById('views/user/userInfo.html').reload(); reloadMyFocus()
reloadCityPotentialRanking()
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload();
}
//cityDetaiVue.$data.citys.push(city); //cityDetaiVue.$data.citys.push(city);
}).catch(function(error){ }).catch(function(error){
console.log(error) console.log(error)
@@ -68,11 +74,17 @@ Vue.component('city_increase_ranking',{
}) })
}else{ }else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
$(event.target).parent().children().removeClass("dn"); var msg = response.data.message;
$(event.target).addClass("dn"); if(msg != "取消关注成功" && msg != "关注成功"){
reloadMyFocus() $.toast(msg);
reloadCityPotentialRanking() }else{
cityDetaiVue.$data.citys.push(city); $(event.target).parent().children().removeClass("dn");
$(event.target).addClass("dn");
reloadMyFocus()
reloadCityPotentialRanking()
cityDetaiVue.$data.citys.push(city);
}
}).catch(function(error){ }).catch(function(error){
console.log(error) console.log(error)
}) })
@@ -69,16 +69,23 @@ Vue.component('city_potential_ranking',{
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
clicked('/views/user/passLogin.html',true,false,{},{},function(){ clicked('/views/user/passLogin.html',true,false,{},{},function(){
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){ if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
alert("rrrr")
}else{ }else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
$(event.target).parent().children().removeClass("dn");
$(event.target).addClass("dn"); var msg = response.data.message;
plus.webview.getWebviewById('views/house/houseDetail.html').reload(); if(msg != "取消关注成功" && msg != "关注成功"){
plus.webview.getWebviewById('views/house/houseManageList.html').reload(); $.toast(msg);
plus.webview.getWebviewById('views/user/userInfo.html').reload(); }else{
reloadMyFocus() $(event.target).parent().children().removeClass("dn");
reloadCityIncreaseRanking() $(event.target).addClass("dn");
//cityDetaiVue.$data.citys.push(city); plus.webview.getWebviewById('views/house/houseDetail.html').reload();
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload();
reloadMyFocus()
reloadCityIncreaseRanking()
//cityDetaiVue.$data.citys.push(city);
}
}).catch(function(error){ }).catch(function(error){
console.log(error) console.log(error)
}) })
@@ -86,12 +93,17 @@ Vue.component('city_potential_ranking',{
}) })
}else{ }else{
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
$(event.target).parent().children().removeClass("dn"); var msg = response.data.message;
$(event.target).addClass("dn"); if(msg != "取消关注成功" && msg != "关注成功"){
reloadMyFocus() $.toast(msg);
reloadCityIncreaseRanking() }else{
cityDetaiVue.$data.citys.push(city); $(event.target).parent().children().removeClass("dn");
//plus.webview.getWebviewById('views/user/userInfo.html').reload(); $(event.target).addClass("dn");
reloadMyFocus()
reloadCityIncreaseRanking()
cityDetaiVue.$data.citys.push(city);
//plus.webview.getWebviewById('views/user/userInfo.html').reload();
}
}).catch(function(error){ }).catch(function(error){
console.log(error) console.log(error)
}) })
+1 -1
View File
@@ -38,7 +38,7 @@
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId"> <div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
<div class="card-header"> <div class="card-header">
<label>{{myCityMap.city}}</label> <label>{{myCityMap.city}}</label>
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city)">取消关注</a> <a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city)">取消关注</a>
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a> <a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a>
</div> </div>
+11 -2
View File
@@ -212,8 +212,17 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
//htmlContent = htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅"; //htmlContent = htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅";
var houseRoomNum = result.houseRoomNum==""?"暂无":result.houseRoomNum; var houseRoomNum = result.houseRoomNum==""?"暂无":result.houseRoomNum;
htmlContent = htmlContent +"<div class='item-title'><small>"+houseRoomNum; htmlContent = htmlContent +"<div class='item-title'><small>"+houseRoomNum;
var floor_height = "";
htmlContent = htmlContent +"&nbsp;&nbsp;"+result.area+"㎡&nbsp;&nbsp;"+result.floor+"/"+result.height+"层</small></div>" if(result.floor!=0){
floor_height = result.floor;
}
if(result.height!=0){
floor_height += "/" + result.height;
}
if(floor_height!=""){
floor_height+="层";
}
htmlContent = htmlContent +"&nbsp;&nbsp;"+result.area+"㎡&nbsp;&nbsp;"+floor_height+"</small></div>"
htmlContent = htmlContent +"</div><div class='item-subtitle'>"; htmlContent = htmlContent +"</div><div class='item-subtitle'>";
//对应城市地区小区30天涨跌幅 //对应城市地区小区30天涨跌幅
//动态构建key //动态构建key
+6 -3
View File
@@ -2345,7 +2345,7 @@ $("body").delegate("#select_region .button", "click", function () {
$(".selectContent").hide(); $(".selectContent").hide();
}); });
$("#confirm_btn #select_price").on("click", function () { function customPriceQuery () {
if($("#minPrice").val()==""){ if($("#minPrice").val()==""){
$.toast('请填写最小价格'); $.toast('请填写最小价格');
return; return;
@@ -2376,7 +2376,7 @@ $("#confirm_btn #select_price").on("click", function () {
$(".price").removeClass("active"); $(".price").removeClass("active");
$(".price i").removeClass("icon-up"); $(".price i").removeClass("icon-up");
$(".selectContent").hide(); $(".selectContent").hide();
}); }
/* 标签 */ /* 标签 */
$(".reset_btn").on("click", function () { $(".reset_btn").on("click", function () {
$(".button").removeClass("active"); $(".button").removeClass("active");
@@ -2491,7 +2491,7 @@ function getCityPriceLevel(cityParam){
for(var i=1;i<9;i++){ for(var i=1;i<9;i++){
html += '<li class="item-content"><div class="item-inner"><div class="item-title theme" data-id="1"><i class="icon"></i>'+re["level"+i]+'</div></div></li>'; html += '<li class="item-content"><div class="item-inner"><div class="item-title theme" data-id="1"><i class="icon"></i>'+re["level"+i]+'</div></div></li>';
} }
html += '<li class="item-content"><div class="item-inner"><div class="item-title theme" data-id="8"><i class="icon"></i>自定义:<input type="number" placeholder="最小" id="minPrice"> - <input type="number" placeholder="最大" id="maxPrice"> 万<a class="button button-fill theme" id="confirm_btn">确定</a></div></div></li></ul>'; html += '<li class="item-content"><div class="item-inner"><div class="item-title theme" data-id="8"><i class="icon"></i>自定义:<input type="number" placeholder="最小" id="minPrice"> - <input type="number" placeholder="最大" id="maxPrice"> 万<a class="button button-fill theme" onclick="customPriceQuery()">确定</a></div></div></li></ul>';
$("#select_price").html(html); $("#select_price").html(html);
$("#select_price li").on("click", function () { $("#select_price li").on("click", function () {
@@ -2500,6 +2500,9 @@ function getCityPriceLevel(cityParam){
$(this).find(".item-title").addClass("active"); $(this).find(".item-title").addClass("active");
$(this).find(".item-title i").addClass("icon-check"); $(this).find(".item-title i").addClass("icon-check");
var index = $("#select_price li").index(this); var index = $("#select_price li").index(this);
if(index == 9){
return;
}
if(index < 8){ if(index < 8){
var text = $("#select_price li").eq(0).find(".item-title").hasClass("active"); var text = $("#select_price li").eq(0).find(".item-title").hasClass("active");
if(text){ if(text){