...
|
...
|
@@ -37,6 +37,26 @@ |
|
|
</div>
|
|
|
<!-- main -->
|
|
|
<div class="main">
|
|
|
<div class="main_con">
|
|
|
<ul class="main2_con">
|
|
|
{volist name="list" id="vo"}
|
|
|
<li>
|
|
|
<div class="main_left">
|
|
|
<p class="left1">{:date('Y-m',$vo.createtime)}</p>
|
|
|
<p class="left2">{:date('d',$vo.createtime)}</p>
|
|
|
</div>
|
|
|
<div class="main_right">
|
|
|
<h1>{$vo.name}</h1>
|
|
|
<p>{$vo.description}</p>
|
|
|
<a href="/index/index/news_detail?id={$vo.id}"><div class="more">阅读全文</div></a>
|
|
|
</div>
|
|
|
</li>
|
|
|
{/volist}
|
|
|
</ul>
|
|
|
<div class="btn">浏览更多</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="main">
|
|
|
<div class="main_tit">
|
|
|
<img src="__CDN__/assets/mobileStyle/images/remen@2x.png">
|
|
|
<p>热门文章</p>
|
...
|
...
|
@@ -64,6 +84,39 @@ |
|
|
</div>
|
|
|
<script type="text/javascript" src="__CDN__/assets/mobileStyle/js/jquery.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
$('.btn').click(function(){
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/index/index/loadNews',
|
|
|
data:{},
|
|
|
dataType: 'json',
|
|
|
success:function(data,msg,xhr){
|
|
|
console.log(data);
|
|
|
var arrLen = data.length;
|
|
|
var html = '';
|
|
|
if(arrLen>0){
|
|
|
$.each(data,function(i,val) {
|
|
|
html +='<li>';
|
|
|
html +='<div class="main_left">';
|
|
|
html +='<p class="left1">'+val['createtime_ym']+'</p>';
|
|
|
html +='<p class="left2">'+val['createtime_d']+'</p>';
|
|
|
html +='</div>';
|
|
|
html +='<div class="main_right">';
|
|
|
html +='<h1>'+val['name']+'</h1>';
|
|
|
html +='<p>'+val['description']+'</p>';
|
|
|
html +='<a href="/index/index/news_detail?id='+val['id']+'"><div class="more">阅读全文</div></a>';
|
|
|
html +='</div>';
|
|
|
html +='</li>';
|
|
|
});
|
|
|
}
|
|
|
setTimeout(function(){
|
|
|
$('.main2_con li').remove();
|
|
|
$('.main2_con').append(html);
|
|
|
$('.btn').hide();
|
|
|
},100);
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
$('footer').load('__CDN__/assets/mobileStyle/public/footer.html');
|
|
|
$('.header_right').click(function(){
|
|
|
$('.dh_down').slideToggle();
|
...
|
...
|
|