Browse Source

居民关注数据为空页面提示

zyz 7 years ago
parent
commit
9da3d95622
2 changed files with 9 additions and 6 deletions
  1. 1 1
      html/qygl/html/follow_manage.html
  2. 8 5
      html/qygl/js/follow_manage.js

+ 1 - 1
html/qygl/html/follow_manage.html

@ -58,7 +58,7 @@
            <div class="posater-oper">
                <div class="no_result_wrap c-hide">
                    <img class="no-result-img" src="../../../images/shujuweikong_img.png">
                    <div class="f-fs14 c-323232 c-t-center">抱歉,暂未找到符合条件的结果。</div>
                    <div class="f-fs14 c-323232 c-t-center">抱歉,暂未找到关注居民。</div>
                </div>
               <div id="pullrefresh" class="mui-content mui-scroll-wrapper">
					<div class="mui-scroll">

+ 8 - 5
html/qygl/js/follow_manage.js

@ -100,12 +100,15 @@ function loadMore(ulId, type, page) {
	plus.nativeUI.showWaiting("加载中,请稍候...");
	var id = $(ulId).children().last().attr("data-id");
	getXqDataNew(function(res){
        var list = _.map(res.data, function(o){
            o.jsonStr = JSON.stringify(o);
            return o;
        })
//      var list = _.map(res.data, function(o){
//          o.jsonStr = JSON.stringify(o);
//          return o;
//      })
        tmplId = "gzgl_tmpl";
        var obj = {list: list};
        var obj = res.data;
        if(!obj.length){
        	$("#no_result_wrap").removeClass('c-hide')
        }
        domUl = $("#dqy_list");
        if(page===0)$(".mui-table-view").empty();
        $(".mui-table-view").append(template(tmplId, obj));