迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
會員show.html頁面,調用data_news.html,瀑布流無法加載下一頁,求解
以下是data_news.html默認模板參數
{if $myuid}
{module module=works uid=$myuid order=updatetime page=1 pagesize=10 urlrule=test}
......
{/module}
{/if}
官方提醒:使用module內容循環標簽的生成工具,填寫參數就可以生成相關的代碼,每個參數后面都有用法解釋
需要把$myuid通過api地址傳輸過去
回復@迅??蚣芗夹g-張洪 不懂啊,具體代碼怎么寫呢
http://www.zbshanke.com/doc/534.html
var Mpage=1; //滾動顯示更多 var scroll_get = true; //做個標志,不要反反復復的加載 $(document).ready(function () { $(window).scroll(function () { if (scroll_get==true && (400 + $(window).scrollTop())>($(document).height() - $(window).height())) { scroll_get = false; layer.msg('內容加截中,請稍候',{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==''){ layer.msg("已經顯示完了",{time:500}); }else{ $('#content_list').append(res.msg); scroll_get = true; } }else{ layer.msg(res.msg,{time:2500}); } }, 'json'); }
/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){
這里url里面傳了 {$catid} 那你也得把你的uid傳進去呀
改成 &uid={$uid}
回復@likeren
需要把$myuid通過api地址傳輸過去
回復@迅??蚣芗夹g-張洪 不懂啊,具體代碼怎么寫呢
http://www.zbshanke.com/doc/534.html
/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){
這里url里面傳了 {$catid} 那你也得把你的uid傳進去呀
改成 &uid={$uid}
回復@likeren