ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 瀑布流無法控制數量,參考的官方文檔和JS 1 0
迅睿CMS版本:4.6.1 懸賞:1元

瀑布流加載

不能控制數量,滾動上去和滾動下來都一直顯示,正在加載中,次數頻繁,只有20個內容

<script type="text/javascript">

var obj = {

'shareTitle': '深咖系列_銘云陶瓷'

}

wx.miniProgram.postMessage({

data: obj

})

console.log(getUrlkey__(window.location.href))

</script></div>

<script>

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=image&catid=31&format=json&page='+Mpage+'&'+Math.random(),function(res){

$('.footer-cont').hide();

if(res.code==1){

if(res.msg==''){

$('#is_ajax_btn').hide();

layer.msg("已經顯示完了",{time:500});

}else{

$('#content_list').append(res.msg);

scroll_get = true;

}

}else{

layer.msg(res.msg,{time:2500});

}

}, 'json');

}

</script>


<script type="text/javascript">

var obj = {

'shareTitle': '深咖系列_銘云陶瓷'

}

wx.miniProgram.postMessage({

data: obj

})

console.log(getUrlkey__(window.location.href))

</script></div>

<script>

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=image&catid=31&format=json&page='+Mpage+'&'+Math.random(),function(res){

$('.footer-cont').hide();

if(res.code==1){

if(res.msg==''){

$('#is_ajax_btn').hide();

layer.msg("已經顯示完了",{time:500});

}else{

$('#content_list').append(res.msg);

scroll_get = true;

}

}else{

layer.msg(res.msg,{time:2500});

}

}, 'json');

}

</script>


解決方案
  • list_data.html 里面是什么內容
    滿意答案
    開源積分+10
    +1元
  • @迅??蚣芗夹g-陳老師:{module module=image catid=$catid order=inputtime page=1 urlrule=$urlrule} {$t.title} {if $t.chanpinguige} {php $field = dr_field_options(17);}{$field[$t['chanpinguige']]} {/if} {if $t.cpmc} {$t.cpmc} {/if} {if $t.wenli} {php $field = dr_field_options(28);}{$field[$t['wenli']]} {/if} {if $t.zhongliang} {$t.zhongliang}kg/箱 {/if} {if $t.pianshu} {$t.pianshu}片/箱 {/if} {/module}這是list_data的內容,一直回復不了,這能這樣了,哎