From 424638217745d54c5f388245b4e50b23b8e25301 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Tue, 20 Mar 2018 13:47:13 +0800 Subject: [PATCH] bug --- fangija-zsyf/css/main.css | 5 ++- fangija-zsyf/images/icon-eye-white.png | Bin 0 -> 711 bytes fangija-zsyf/main.html | 14 -------- fangija-zsyf/yfindex.html | 46 +++++++++++++++++-------- 4 files changed, 33 insertions(+), 32 deletions(-) create mode 100644 fangija-zsyf/images/icon-eye-white.png 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 0000000000000000000000000000000000000000..a9b379df9de937570a01f19009b8376d6a2be833 GIT binary patch literal 711 zcmV;&0yzDNP)>#^aw(Tbq^3x@ zFb9|fi~xQE z?|^5(9pF0fycTf))FP!`J*d91Hgu|c)R6`I$u(4`wyE7U8cE}oy0eI(I^!vu3bX_3 zBJIzB4xkhG42%Qj0b7Cf<@Ba;4cHI7tuW9c^zpJfkDPyF|)cXY*ZrwyS*+kzRF0Dt@fGLp`kSS7)T!$EXh@da9?h4DC|; zGstIBymr)M7G?F$}7WK_{z>&!p<{l=;paQ)fd%&FY^V z!u?bSw{znA)P^AbNKU-!(IG=G3ItyW#K)@x1vsq%XM2J80kyFNOv^vd=?Ur+B4HrwRxis75OB;-`PgX-0eh(MpZy9%dTSzz+) zh~b^OIL*rvY*T+!5gJt69e!_xm+Aqt*W_I*56=H3>pcW86F5)xH_;%;TPS=F%>_09 zVsHY5eQC`VQSqu&3 t)GRI6M*%;9A0+=go{-!CT`_?e{s9#&82NN+iYfpA002ovPDHLkV1gLDRcHVJ literal 0 HcmV?d00001 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条'+*/ '
'; }