猪八戒APP
js,jquery,php,下拉自动加载,代码修改,二次开发
南昌
网站二次开发
需求标题
js,jquery,php,下拉自动加载,代码修改,二次开发
需求描述
<script type="text/javascript">
$(document).ready(function() {
$('.new-ul-lst li:first-child .new-pop-sel').show();
var is_fitter='{$fitter}';
if(is_fitter>0){
$('#maskbg').show();
$('#maskArrow').show();
$('#filterbar').animate({'right':0},300).show();
}
$('#fitter_btn').click(function(){
$('#maskbg').show();
$('#maskArrow').show();
$('#filterbar').animate({'right':0},300).show();
});
$('#maskbg').click(function(){
$('#maskArrow').hide();
var filterbar=$('#filterbar');
filterbar.animate({'right':-200},300,function(){filterbar.hide();$('#maskbg').hide();});
});
$('#maskArrow').click(function(){
$('#maskArrow').hide();
var filterbar=$('#filterbar');
filterbar.animate({'right':-200},300,function(){filterbar.hide();$('#maskbg').hide();});
});
$('.new-li-a').click(function(){
if($(this).hasClass('on')){
$('.new-ul-lst').find('.new-pop-sel').hide();
$(this).removeClass('on');
}else{
$('.new-ul-lst').find('.new-pop-sel').hide();
$(this).next('.new-pop-sel').show();
$(this).addClass('on');
}
});
$('#view-more-goods').click(function(){
if($(this).hasClass('disabled'))return false;
$(this).html('<img width="1**x" height="1**x" src="templates/images/loading.gif" />加载中...').addClass('disabled')
var _this=$(this);
var next_page=$('#next_page').val();
var page=$('#page-num').val();
$.get(
next_page+'&is_ajax=1&page='+page,
function(response){
var res = $.evalJSON(response);
if (res.error == 0) {
$('#category-main ul:last').after(res.content);
_this.html('<img width="1**x" height="1**x" src="templates/images/category/ico_plus.png" />加载更多商品').removeClass('disabled');
$('#page-num').val(parseInt($('#page-num').val())+1);
if(res.is_last==1){
_this.html('没有更多商品了').addClass('disabled');
}
$('.end_time[title!=""]').each(function(){
timecountdown($(this));
});
}else{
_this.html('<img width="1**x" height="1**x" src="templates/images/category/ico_plus.png" />加载更多商品').removeClass('disabled');
}
},
'text'
);
});
});
</script>
上面代码,改成自动加载。有问题可以QQ沟通。86**728
预算金额
¥100元
允许参与人才数量
--
人才所在地
--
人才类型
--
工作反馈要求
无要求
期望完成日期
--
开票类型要求
无要求
类似需求