會(huì)員show.html頁面,調(diào)用data_news.html,瀑布流無法加載下一頁,求解
以下是data_news.html默認(rèn)模板參數(shù)
{if $myuid}
{module module=works uid=$myuid order=updatetime page=1 pagesize=10 urlrule=test}
......
{/module}
{/if}
官方提醒:使用module內(nèi)容循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
需要把$myuid通過api地址傳輸過去
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣芗夹g(shù)-張洪 不懂啊,具體代碼怎么寫呢
http://www.apdwn.com/doc/534.html
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)容加截中,請稍候',{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("已經(jīng)顯示完了",{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里面?zhèn)髁?{$catid} 那你也得把你的uid傳進(jìn)去呀
改成 &uid={$uid}
回復(fù)@likeren