From bbbf79f4accb109782e1caadee8a0e4d811ef5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 1 Jun 2018 10:44:14 +0800 Subject: [PATCH 1/5] fixbug --- fangija-zsyf/css/main.css | 2 +- fangija-zsyf/js/sm-tabs.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fangija-zsyf/css/main.css b/fangija-zsyf/css/main.css index bccfef1..b5b20cc 100644 --- a/fangija-zsyf/css/main.css +++ b/fangija-zsyf/css/main.css @@ -42,7 +42,7 @@ em.down{color:#88D053;} .bar .icon.icon-path{width:20px;height:4px;background:url(../images/icon-path.png) no-repeat;background-size:100%;float:right;} .bar .icon.icon-path01{width:20px;height:4px;background:url(../images/icon-path01.png) no-repeat;background-size:100%;float:right;} .bar .icon.icon-left{font-size:0.85rem;margin-left:-0.15rem;} -.title{color:#333;margin-left:-0.75rem;} +.title{color:#333;margin:0;} /* 子导航 */ .popover { diff --git a/fangija-zsyf/js/sm-tabs.js b/fangija-zsyf/js/sm-tabs.js index 0ea93c8..857c1a6 100644 --- a/fangija-zsyf/js/sm-tabs.js +++ b/fangija-zsyf/js/sm-tabs.js @@ -121,7 +121,6 @@ var shadow = $pageContent.clone(); //var fixedTop = $pageContent[0].getBoundingClientRect().top; var fixedTop = 298; - alert(fixedTop) shadow.css('visibility', 'hidden'); this.options = $.extend({}, this._defaults, { fixedTop: fixedTop, From 48c519e5062a448fee305b89f9023a73d1f36a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 1 Jun 2018 11:38:54 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=AD=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E4=B8=8D=E5=88=B0=E5=B0=8F=E5=8C=BA=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BF=A1=E6=81=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/yfindex.html | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index e2af8b9..85ade29 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -2264,13 +2264,27 @@ $(document).on('click','#notFound_btn', function () { var b = $("#input_address_noFound").val(); var c = $("#input_city").text(); - - $.ajax({ + axios.post("/rest/districts/addNoFoundDistrict", {city:c,name:a, address:b}).then(function (response) { + $('.modal').remove(); + $('.modal-overlay').remove(); + if(response.data.status){ + $.toast('提交成功,我们会尽快完善信息'); + }else{ + $.toast('提交失败,请重试'); + } + }).catch(function (error) { + console.log(error); + $('.modal').remove(); + $('.modal-overlay').remove(); + $.toast('提交失败,请重试'); + }); + /*$.ajax({ type : 'post', url :BASE_PATH + "/rest/districts/addNoFoundDistrict", data:{city:c,name:a, address:b}, dataType:'json', success:function(result){ + alert(result.); $('.modal').remove(); $('.modal-overlay').remove(); if(result.data){ @@ -2284,7 +2298,7 @@ $(document).on('click','#notFound_btn', function () { $('.modal-overlay').remove(); $.toast('提交失败,请重试'); } - }) + })*/ } } ] From 99ddfd6b21dbdbec8a36b2cf73d0fcbc8f8e699e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 1 Jun 2018 11:41:00 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/yfindex.html | 1 - 1 file changed, 1 deletion(-) diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index 85ade29..bd07ee7 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -2345,7 +2345,6 @@ function changeCity(cityStr){ $("#ShangHaiDiv").show(); $("#otherCityDiv").hide(); }else{ - alert("2") $("#ShangHaiDiv").hide(); $("#otherCityDiv").show(); $.destroyPullToRefresh(".content") From b406d003100975213655e6064537205baa53d4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 1 Jun 2018 15:04:56 +0800 Subject: [PATCH 4/5] add style --- fangija-zsyf/views/news/newsDetail.html | 1 + 1 file changed, 1 insertion(+) diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html index 217367b..df25d89 100644 --- a/fangija-zsyf/views/news/newsDetail.html +++ b/fangija-zsyf/views/news/newsDetail.html @@ -23,6 +23,7 @@ display: table-cell; vertical-align: middle; } +#content table tr,#content table td {border: 1px solid #E7E7E7;} From a0ba4be285a04379286a9ec56b597f7a89a0c91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 1 Jun 2018 16:38:37 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=B0=8F=E5=8C=BA?= =?UTF-8?q?=E6=97=A0=E5=9D=87=E4=BB=B7=E6=97=B6=E6=98=BE=E7=A4=BA=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/yfindex.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index bd07ee7..b571025 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -2041,10 +2041,16 @@ function addItems(number, lastIndex) { } tagStr += ''; } + var aprice = dataObj2[i].avgPrice; + if (aprice == 0) { + aprice = "暂无均价"; + } else { + aprice = "¥"+aprice +'元/㎡'; + } html += '
  • '+ ''+ '
    '+ - dataObj2[i].districtName+'
    ¥'+dataObj2[i].avgPrice+'元/㎡
    '+ + dataObj2[i].districtName+'
    '+aprice +'
    '+ '
    '+ dataObj2[i].city+dataObj2[i].region+dataObj2[i].address+'
    '; if(dataObj2[i].distance){