|
@@ -134,9 +134,11 @@ function initContent(data){
|
|
<img src="${icon}" alt="空"/>
|
|
<img src="${icon}" alt="空"/>
|
|
<p>暂无信息~</p>
|
|
<p>暂无信息~</p>
|
|
</div>`;
|
|
</div>`;
|
|
- hml='<div class="content-item" code="'+k+'">' +
|
|
|
|
- '<h2 class="title">'+k+sid+'</h2>'+emptyStr+'</div>';
|
|
|
|
- $.tmpl(hml,{}).appendTo("#contentInfo");
|
|
|
|
|
|
+ if(!$(".content-item[code="+k+"] .empty").length){ //显示一条空提示即可
|
|
|
|
+ hml='<div class="content-item" code="'+k+'">' +
|
|
|
|
+ '<h2 class="title">'+k+sid+'</h2>'+emptyStr+'</div>';
|
|
|
|
+ $.tmpl(hml,{}).appendTo("#contentInfo");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|