You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
3.6 KiB
HTML
86 lines
3.6 KiB
HTML
<extend name="Public/bases"/>
|
|
<block name="css">
|
|
<link href="__CSS__/news.css" rel="stylesheet" >
|
|
</block>
|
|
<block name="body" >
|
|
<body>
|
|
<header class="header">
|
|
<div class="">
|
|
<h1 class="caption">{$title}中心</h1>
|
|
</div>
|
|
</header>
|
|
<div class="occupy"></div>
|
|
<section class="trunker">
|
|
<section class="container">
|
|
<ul class="t-tab jstab clearfix">
|
|
<li><a href="{:U('News/index?category=1')}" class="btn <if condition='I("category",1) == 1'>active</if>">资讯</a></li>
|
|
<li><a href="{:U('News/index?category=2')}" class="btn <if condition='I("category",1) == 2'>active</if>">公告</a></li>
|
|
<li><a href="{:U('News/index?category=3')}" class="btn <if condition='I("category",1) == 3'>active</if>">活动</a></li>
|
|
</ul>
|
|
<div class="t-list jslist">
|
|
<ul class="t-tabpan active" currentpage="{$page}" category="{$category}">
|
|
<empty name='data'>
|
|
<li style="text-align: center;">暂无数据</li>
|
|
<else/>
|
|
<foreach name="data" item="v">
|
|
<li class="t-tabpan-item">
|
|
<a href="{$v['url']}" class="icon">
|
|
|
|
<img src="{$v['cover']}" class="" onerror="this.src='__IMG__/empty.jpg';this.onerror=null">
|
|
|
|
<span class="dis_tab">
|
|
<span class="dis_tabcell">
|
|
<div>{:C('SET_POSITION_IMG')}</div>
|
|
</span>
|
|
</span>
|
|
|
|
</a>
|
|
<div class="text">
|
|
<a href="{$v['url']}" class="name">{$v['title']}</a>
|
|
<p class="description">{$v['description']}</p>
|
|
<p class="time">{$v['datetime']}</p>
|
|
</div>
|
|
</li>
|
|
</foreach>
|
|
</empty>
|
|
</ul>
|
|
|
|
</div>
|
|
</section>
|
|
</section>
|
|
<div class="space"></div>
|
|
<div class="loading ms-none hidden" id="moreBtn"><a href="javascript:" class="link"></a></div>
|
|
<script src="__JS__/ajaxload.js"></script>
|
|
<script src="__JS__/pop.lwx.min.js"></script>
|
|
<script>
|
|
var ac = $('#ajaxContainer'),category = ac.attr('category');
|
|
var popmsg = $('.loading').pop();
|
|
ajaxload('{:U("ajaxlists")}',{'category':category},function(data) {
|
|
if (data.status == 1) {
|
|
ac.attr('currentpage',data.page);
|
|
var html = '',d = data.lists;
|
|
for (var i in d) {
|
|
var item = d[i];
|
|
html += '<li class="t-tabpan-item">'+
|
|
' <a href="'+item.url+'" ><img src="'+item.cover+'" class="icon" onerror="this.src=\'__IMG__/empty.jpg\';this.onerror=null"></a>'+
|
|
' <div class="text">'+
|
|
' <a href="'+item.url+'" class="name">'+item.title+'{$v['title']}</a>'+
|
|
' <p class="description">'+item.description+'</p>'+
|
|
' <p class="time">'+item.datetime+'</p>'+
|
|
' </div>'+
|
|
'</li>';
|
|
}
|
|
|
|
ac.append(html);
|
|
$('.loading').addClass('ms-none');
|
|
$('#moreBtn').removeClass('ms-none');loads=false;
|
|
} else {
|
|
$('.loading').removeClass('hidden').addClass('ms-none');
|
|
|
|
popmsg.msg('已加载全部资讯~');
|
|
}
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</block> |