diff --git a/fangija-zsyf/views/house/cityDownRanking.html b/fangija-zsyf/views/house/cityDownRanking.html index b658855..ec1cce6 100644 --- a/fangija-zsyf/views/house/cityDownRanking.html +++ b/fangija-zsyf/views/house/cityDownRanking.html @@ -12,7 +12,13 @@ - + @@ -102,7 +108,7 @@ $.config = {router: false} var pageBean=new Vue({ data:{ - pageNo:1, + pageNo:2, pageSize:10 } }); @@ -113,7 +119,7 @@ $.config = {router: false} month : month, end : false, list:[] - }, + }/*, methods: { menu:function() { if(this.end){ @@ -133,13 +139,14 @@ $.config = {router: false} }, mounted:function() { window.addEventListener('scroll', this.menu()); - } + }*/ }); document.addEventListener('plusready', onPlusReady, false); function onPlusReady(){ var self = plus.webview.currentWebview(); hid = self.hid; + updateSerivces(); /*axios.get("/rest/quotations/queryMarkDownTopByPage", {params:{pageNo:pageBean.pageNo,pageSize:pageBean.pageSize}}) .then(function (response) { tableList.month = month; @@ -171,17 +178,6 @@ $(function() { // 每次加载添加多少条目 var itemsPerLoad = 10; - - /*function addItems(number, lastIndex) { - // 生成新条目的HTML - var html = ''; - for (var i = lastIndex + 1; i <= lastIndex + number; i++) { - html += '
  • ' + i + '
    上海
    15689元/㎡
    8.98%
  • '; - } - // 添加新条目 - $('.list-block.cityList ul').append(html); - - }*/ function addItems(pageNo,pageSize){ axios.get("/rest/quotations/queryMarkDownTopByPage", {params:{pageNo:pageNo,pageSize:pageSize}}) @@ -199,8 +195,7 @@ $(function() { } //预先加载10条 - //addItems(itemsPerLoad, 0); - //addItems(1, 10); + addItems(1, 20); // 上次加载的序号 var lastIndex = 10; @@ -219,7 +214,6 @@ $(function() { // 重置加载flag loading = false; - //if (lastIndex >= maxItems) { if(tableList.end){ // 加载完毕,则注销无限加载事件,以防不必要的加载 $.detachInfiniteScroll($('.infinite-scroll')); @@ -229,8 +223,6 @@ $(function() { } // 添加新条目 - //addItems(itemsPerLoad, lastIndex); - //addItems(pNo, itemsPerLoad); addItems(pageBean.pageNo, pageBean.pageSize); // 更新最后加载的序号 lastIndex = $('.list-block.cityList ul li').length; diff --git a/fangija-zsyf/views/house/cityRanking.html b/fangija-zsyf/views/house/cityRanking.html index 2394f80..1ddc10c 100644 --- a/fangija-zsyf/views/house/cityRanking.html +++ b/fangija-zsyf/views/house/cityRanking.html @@ -12,7 +12,17 @@ - + @@ -93,7 +103,6 @@ - - + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fangija-zsyf/views/house/cityRankingPotential.html b/fangija-zsyf/views/house/cityRankingPotential.html new file mode 100644 index 0000000..f342839 --- /dev/null +++ b/fangija-zsyf/views/house/cityRankingPotential.html @@ -0,0 +1,291 @@ + + + + + +城市潜力排行 + + + + + + + + + + + + + +
    +
    +
    + + +

    城市潜力排行

    +
    +
    +
    + +
    +
    + +

    没有更多数据

    +

    上拉查看更多排名

    + +
    + +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fangija-zsyf/views/house/cityUpRanking.html b/fangija-zsyf/views/house/cityUpRanking.html index c29aac7..e0b3fa7 100644 --- a/fangija-zsyf/views/house/cityUpRanking.html +++ b/fangija-zsyf/views/house/cityUpRanking.html @@ -12,6 +12,13 @@ + @@ -103,7 +110,7 @@ $.config = {router: false} var pageBean=new Vue({ data:{ - pageNo:1, + pageNo:2, pageSize:10 } }); @@ -114,7 +121,7 @@ $.config = {router: false} month : month, end : false, list:[] - }, + }/*, methods: { menu:function() { if(this.end){ @@ -125,7 +132,7 @@ $.config = {router: false} .then(function (response) { this.end = response.data.data.end; tableList.list = tableList.list.concat(response.data.data.list); - //pageBean.pageNo=pageBean.pageNo+1; + pageBean.pageNo=pageBean.pageNo+1; }).catch(function (error) { console.log(error); }); @@ -134,23 +141,14 @@ $.config = {router: false} }, mounted:function() { window.addEventListener('scroll', this.menu()); - } + }*/ }); document.addEventListener('plusready', onPlusReady, false); function onPlusReady(){ var self = plus.webview.currentWebview(); hid = self.hid; - /*axios.get("/rest/quotations/queryMarkUpTopByPage", {params:{pageNo:pageBean.pageNo,pageSize:pageBean.pageSize}}) - .then(function (response) { - tableList.month = month; - tableList.end = response.data.data.end; - tableList.list = response.data.data.list; - pageBean.pageNo=pageBean.pageNo+1; - }) - .catch(function (error) { - console.log(error); - });*/ + updateSerivces(); } function share(){ @@ -162,6 +160,7 @@ function share(){ shareHref(); } + //排行页面底部无限加载事件 $.init(); $(function() { @@ -173,41 +172,24 @@ $(function() { // 每次加载添加多少条目 var itemsPerLoad = 10; - /*function addItems(number, lastIndex) { - // 生成新条目的HTML - var html = ''; - for (var i = lastIndex + 1; i <= lastIndex + number; i++) { - html += '
  • ' + i + '
    上海
    15689元/㎡
    8.98%
  • '; - } - // 添加新条目 - $('.list-block.cityList ul').append(html); - - }*/ - function addItems(pageNo,pageSize){ axios.get("/rest/quotations/queryMarkUpTopByPage", {params:{pageNo:pageNo,pageSize:pageSize}}) - .then(function (response) { - tableList.end = response.data.data.end; - if(pageNo>1){ - tableList.list = tableList.list.concat(response.data.data.list); - }else{ - tableList.list = response.data.data.list; - } - pageBean.pageNo=pageBean.pageNo+1; - }).catch(function (error) { - console.log(error); - }); + .then(function (response) { + tableList.end = response.data.data.end; + tableList.list = tableList.list.concat(response.data.data.list); + pageBean.pageNo=pageBean.pageNo+1; + }) + .catch(function (error) { + console.log(error); + }); } - //预先加载10条 - //addItems(itemsPerLoad, 0); - //addItems(1, 10); +addItems(1, 20); // 上次加载的序号 var lastIndex = 10; // 注册'infinite'事件处理函数 $(document).on('infinite', '.infinite-scroll-bottom',function() { - // 如果正在加载,则退出 if (loading) return; @@ -219,7 +201,7 @@ $(function() { // 重置加载flag loading = false; - if (lastIndex >= maxItems) { + if(tableList.end){ // 加载完毕,则注销无限加载事件,以防不必要的加载 $.detachInfiniteScroll($('.infinite-scroll')); // 删除加载提示符 @@ -227,17 +209,14 @@ $(function() { return; } - // 添加新条目 - //addItems(itemsPerLoad, lastIndex); - addItems(pageBean.pageNo, pageBean.pageSize); // 更新最后加载的序号 + addItems(pageBean.pageNo,pageBean.pageSize); lastIndex = $('.list-block.cityList ul li').length; //容器发生改变,如果是js滚动,需要刷新滚动 $.refreshScroller(); }, 1000); }); }); - diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 7705a09..082f089 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -90,33 +90,31 @@
    - - -