You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
3.4 KiB
87 lines
3.4 KiB
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
|
|
<title><?php echo $post['name']; ?></title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
|
|
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
|
|
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script>
|
|
<meta name="keywords" content="<?php echo $post['keywords']; ?>"><meta name="description" content="<?php echo $post['description']; ?>"></head><body>
|
|
<div class="classreturn loginsignup">
|
|
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div>
|
|
<div class="ds-in-bl tit center"><span><?php echo $post['name']; ?></span></div>
|
|
<div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div>
|
|
</div>
|
|
|
|
@include('weixin.common.headerNav')
|
|
|
|
<div class="arc_list">
|
|
<?php if($list){ ?>
|
|
<ul class="arclist cl">
|
|
<?php foreach($list as $k=>$v){ ?>
|
|
<li><a href="<?php echo $v['article_detail_url']; ?>"><?php echo $v['title']; ?></a><p><?php echo $v['pubdate']; ?></p></li>
|
|
<?php } ?>
|
|
</ul>
|
|
<?php }else{ ?>
|
|
<div style="text-align:center;line-height:40px;color:#999;">暂无记录</div>
|
|
<?php } ?>
|
|
</div>
|
|
<script>
|
|
$(function(){
|
|
var ajaxload = false;
|
|
var maxpage = false;
|
|
var startpage = 1;
|
|
var totalpage = <?php echo $totalpage; ?>;
|
|
|
|
var tmp_url = window.location.href;
|
|
msg = tmp_url.split("#");
|
|
tmp_url = msg[0];
|
|
|
|
$(window).scroll(function ()
|
|
{
|
|
var listheight = $(".arclist").outerHeight();
|
|
|
|
if ($(document).scrollTop() + $(window).height() >= listheight)
|
|
{
|
|
if(startpage >= totalpage)
|
|
{
|
|
//$("#submit_bt_one").html("已是最后一页,没有更多数据!");
|
|
return false;
|
|
}
|
|
|
|
if(!ajaxload && !maxpage)
|
|
{
|
|
ajaxload = true;
|
|
//$("#submit_bt_one").html("努力加载中...");
|
|
var url = tmp_url;
|
|
var nextpage = startpage+1;
|
|
|
|
$.get(url,{page_ajax:1,page:nextpage},function(res)
|
|
{
|
|
if(res)
|
|
{
|
|
$(".arclist").append(res);
|
|
startpage++;
|
|
|
|
if(startpage >= totalpage)
|
|
{
|
|
maxpage = true;
|
|
//$("#submit_bt_one").html("已是最后一页,没有更多数据!");
|
|
}
|
|
else
|
|
{
|
|
//$("#submit_bt_one").html("点击加载更多");
|
|
}
|
|
|
|
ajaxload = false;
|
|
}
|
|
else
|
|
{
|
|
//$("#submit_bt_one").html("请求失败,请稍候再试!");
|
|
ajaxload = false;
|
|
}
|
|
},'json');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
@include('weixin.common.footer')
|
|
</body></html>
|