diff --git a/fangija-zsyf/css/main.css b/fangija-zsyf/css/main.css index f644e82..03cdf91 100644 --- a/fangija-zsyf/css/main.css +++ b/fangija-zsyf/css/main.css @@ -488,16 +488,15 @@ input::-webkit-input-placeholder{ .cardInfo03 .card-content-inner div.vote02 label{color:#74ACFF;text-align:left;} .cardInfo03 .card-content-inner em{font-size:1rem;color:#FFA91C;text-align:center;line-height:45px;position:absolute;left:48%;} -.icon-praise-white{width:12px;height:12px;background:url(../images/icon-praise-white.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} +.icon-eye-white{width:0.89rem;height:0.57rem;background:url(../images/icon-eye-white.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} .icon-comments-white{width:13px;height:12px;background:url(../images/icon-comments-white.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} -.icon-praise-grey{width:12px;height:12px;background:url(../images/icon-praise-grey.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} +.icon-eye-grey{width:0.89rem;height:0.57rem;background:url(../images/icon-eye-grey.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} .icon-comments-grey{width:13px;height:12px;background:url(../images/icon-comments-grey.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} .icon-light-grey{width:45px;height:45px;background:url(../images/icon-light-grey.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;} .icon-light-red{width:45px;height:45px;background:url(../images/icon-light-red.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;} .icon-light-blue{width:45px;height:45px;background:url(../images/icon-light-blue.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;} .vote01 .icon-light-grey:active{background:url(../images/icon-light-red.png) no-repeat center center;background-size:100%;} .vote02 .icon-light-grey:active{background:url(../images/icon-light-blue.png) no-repeat center center;background-size:100%;} - /* 正文 */ .content-padded{margin:0.75rem;} .content-padded h1{font-size:1.1rem;line-height:1.6rem;letter-spacing:0.11rem;} diff --git a/fangija-zsyf/images/icon-eye-white.png b/fangija-zsyf/images/icon-eye-white.png new file mode 100644 index 0000000..a9b379d Binary files /dev/null and b/fangija-zsyf/images/icon-eye-white.png differ diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index 1a87630..3aa51a9 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -127,20 +127,6 @@ } }); - $.oldBack = mui.back; - var backButtonPress = 0; - $.back = function(event) { - backButtonPress++; - if(backButtonPress > 1) { - plus.runtime.quit(); - } else { - plus.nativeUI.toast('再按一次退出应用'); - } - setTimeout(function() { - backButtonPress = 0; - }, 1000); - return false; - }; diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index d216efb..7ddab94 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -71,16 +71,16 @@ @@ -1278,9 +1278,6 @@ function getPosition(){ /* 获取#region字数,截取#region前4字,并添加... */ - - - var baseInfo = new Vue({ el: '#baseInfo', data: { @@ -1290,7 +1287,7 @@ var baseInfo = new Vue({ momRate: "", dealCount:"", priceRate:"", - priceRateType:"", + priceRateType:1, isLogin:"" } }) @@ -1318,7 +1315,6 @@ function initBaseInfo(city,region,address,lat,lng){ } }) .then(function (response) { - console.log(response.data.data.priceRateType); baseInfo.region = response.data.data.region; baseInfo.topMonth = response.data.data.topMonth; baseInfo.momAvgPrice = response.data.data.momAvgPrice; @@ -1327,7 +1323,6 @@ function initBaseInfo(city,region,address,lat,lng){ baseInfo.priceRate = response.data.data.priceRate; baseInfo.priceRateType = response.data.data.priceRateType; baseInfo.isLogin = response.data.data.isLogin; - if(response.data.data.isLogin){ $("#addHouseDiv").hide(); $("#detailHouseDiv").show(); @@ -1336,11 +1331,14 @@ function initBaseInfo(city,region,address,lat,lng){ $("#detailHouseDiv").hide(); } - if(response.data.data.priceRateType=="up"){ + if(response.data.data.priceRateType>0){ + $("#priceRateTypeClass").addClass("icon-arrow-red"); $("#priceInfo").text("上涨概率"); }else{ + $("#priceRateTypeClass").addClass("icon-arrow-green"); $("#priceInfo").text("下跌概率"); } + regionChange(response.data.data.region); regionList = response.data.data.regionList; @@ -1463,11 +1461,20 @@ function initNews(){ } $("body").delegate("#regionStatusButton", "click", function () { var region_copy = $("#region_copy").val(); - var value = $(".picker-selected").text(); - if(region_copy != value && value!="" && value!=null){ + var value = $(".picker-selected").text(); + if(region_copy != value && value!="" && value!=null){ changeRegion(); - } + } }); +$("#region").click(function(e){ + $(document).click(function(e){ + var region_copy = $("#region_copy").val(); + var value = $(".picker-selected").text(); + if(region_copy != value && value!="" && value!=null){ + changeRegion(); + } + }) +}) $("body").delegate(".icon-light-red", "click", function () { var id = $(this).attr("data-val"); @@ -1528,12 +1535,21 @@ function changeRegion(){ baseInfo.priceRateType = response.data.data.priceRateType; regionChange(response.data.data.region); + if(response.data.data.priceRateType>0){ + $("#priceRateTypeClass").addClass("icon-arrow-red"); + $("#priceInfo").text("上涨概率"); + }else{ + $("#priceRateTypeClass").addClass("icon-arrow-green"); + $("#priceInfo").text("下跌概率"); + } $("#region_copy").val(response.data.data.region); + }) .catch(function (error) { console.log(error); }); } + /* 页面底部无限加载事件 */ $.init(); var loading = false; @@ -1566,7 +1582,7 @@ function addItems(number, lastIndex) { '
'+dataObj[i].title+'
'+ ''+ @@ -1618,7 +1634,7 @@ function addItems(number, lastIndex) { '
'+ '
'+dataObj[i].title+'
'+ '
'+dataObj[i].introduction+'
'+ - '
'+dataObj[i].visitCount+'人'+ + '
'+dataObj[i].visitCount+'人'+ /*'1245条'+*/ '
'; }