迅睿CMS框架是一款PHP8高性能·簡(jiǎn)單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬(wàn)端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
是不是訪問(wèn)手機(jī)網(wǎng)站界面
參考 \template\mobile\default\home\list.html
回復(fù)@ibennie
list.html
<div class="page-content"> <div class="search-page search-content-1"> <div class="search-container"> <!--分頁(yè)顯示列表數(shù)據(jù)--> <ul class="search-container" id="content_list"> {template "list_data.html"} </ul> </div> <div class="margin-top-20" id="is_ajax_btn"> <a href="javascript:dr_ajax_load_more();" class="btn default btn-block"> 加載更多 </a> </div> </div> </div> <script> var Mpage=1; //滾動(dòng)顯示更多 var scroll_get = true; //做個(gè)標(biāo)志,不要反反復(fù)復(fù)的加載 $(document).ready(function () { $(window).scroll(function () { if (scroll_get==true && (400 + $(window).scrollTop())>($(document).height() - $(window).height())) { scroll_get = false; layer.msg('內(nèi)容加截中,請(qǐng)稍候',{time:1000}); dr_ajax_load_more(); } }); }); function dr_ajax_load_more(){ Mpage++; $.get('/index.php?s=api&c=api&m=template&name=list_data.html&module={MOD_DIR}&catid={$catid}&format=json&page='+Mpage+'&'+Math.random(),function(res){ $('.footer-cont').hide(); if(res.code==1){ if(res.msg==''){ $('#is_ajax_btn').hide(); layer.msg("已經(jīng)顯示完了",{time:500}); }else{ $('#content_list').append(res.msg); scroll_get = true; } }else{ layer.msg(res.msg,{time:2500}); } }, 'json'); } </script>
list_data.html
{module catid=$catid order=updatetime page=1} <li class="search-item clearfix"> <a title="{$t.title}" href="{$t.url}"> <img src="{dr_thumb($t.thumb, 100, 90)}" width="100" height="90" style="margin-top: 15px;"> </a> <div class="search-content text-left"> <h4 class="search-title"> <a title="{$t.title}" href="{$t.url}">{dr_strcut($t.title, 20)}</a> </h4> <p class="search-desc">{dr_strcut($t.description, 44)}</p> </div> <div class="search-post-foot"> <a href="{dr_cat_value('news',$t.catid, 'url')}"><i class="fa fa-list"></i> {dr_cat_value('news',$t.catid, 'name')}</a> <a href="{$t.url}"><i class="fa fa-calendar"></i> {$t.updatetime}</a> </div> </li> {/module}
是不是訪問(wèn)手機(jī)網(wǎng)站界面
參考 \template\mobile\default\home\list.html
回復(fù)@ibennie
list.html
list_data.html