From 963b4e6e1ce348dcd4710f8fc2336287f812f6d3 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Mon, 19 Mar 2018 14:17:54 +0800 Subject: [PATCH] bug --- fangija-zsyf/views/news/newsDetail.html | 2 +- fangija-zsyf/yfindex.html | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html index 00c6551..32af709 100644 --- a/fangija-zsyf/views/news/newsDetail.html +++ b/fangija-zsyf/views/news/newsDetail.html @@ -45,7 +45,7 @@ Zepto = $ $.config = {router: false} - + diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index cd4dcc6..b132e4c 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -1163,7 +1163,7 @@ - + - @@ -1247,7 +1246,6 @@ function getPosition(){ addLocation(lat,lng); - /*city="北京"; region=""; $("#input_city").text("北京"); @@ -1344,6 +1342,7 @@ function initBaseInfo(city,region,address,lat,lng){ $("#priceInfo").text("下跌概率"); } regionChange(response.data.data.region); + $("#region").picker({ toolbarTemplate: '
\ \ @@ -1356,6 +1355,12 @@ function initBaseInfo(city,region,address,lat,lng){ } ] }); + /*var regionHtml = ''; + for(var i in response.data.data.regionList){ + regionHtml += '
'+response.data.data.regionList[i]+'
'; + } + $(".picker-items-col-wrapper").html(regionHtml);*/ + }) .catch(function (error) { console.log(error); @@ -1638,7 +1643,7 @@ function addItems(number, lastIndex) { // 加载完毕,则注销无限加载事件,以防不必要的加载 $.detachInfiniteScroll($('.infinite-scroll')); // 删除加载提示符 - $('.infinite-scroll-preloader').remove(); + $('.infinite-scroll-preloader').hide(); $('.infinite-scroll-bottom .list-container').html("
"); return; } @@ -1711,7 +1716,7 @@ $(document).on('infinite', '.infinite-scroll-bottom',function() { if (loading) return; // 设置flag loading = true; - // 模拟1s的加载过程 + // 模拟1s的加载过程\ setTimeout(function() { // 重置加载flag loading = false; @@ -1721,7 +1726,6 @@ $(document).on('infinite', '.infinite-scroll-bottom',function() { // 更新最后加载的序号 lastIndex = $('.cardInfo').length; }else{ - alert(lastIndex2); addItems(itemsPerLoad, lastIndex2); // 更新最后加载的序号 lastIndex2 = $('.list-container li').length; @@ -1880,9 +1884,6 @@ $("body").delegate(".popup-about01 p", "click", function () { $("#otherCityDiv").hide(); initNews() }else{ - $("#ShangHaiDiv").hide(); - $("#otherCityDiv").show(); - sort = 6; $("#select_order").find("div").removeClass("active"); $("#select_order").find("i").removeClass("icon-check"); $(".order a").text("按潜力指数");