/*手机端通用获取数据列表加载更多*/
var querydata = new Object;
var page = 1;
$(document).ready(function(){
    get_list(page);
	$('.load_mores').click(function(){
		page++;
        get_list(page,0);
	});
});
function get_list(page,type){
	page=parseInt(page);if(!page)page=1;
	querydata['page']=page;
    querydata['type']=type;
	$.ajax({
		url: queryurl,
		type: "post",
		data: querydata,
		dataType: "json",
		success: function (ret) {
			if (ret.status) {
				if(page==1){
					$('#guessList').html(ret.data);
				}else{
					$('#guessList').append(ret.data);
				}
				if(ret.show == 1){
					$('.load_mores').show();
				}else{
					$('.load_mores').hide();
				}
			}else{
				if(page==1){
					$('#guessList').html('<p class="text-center pb10" id="no-content">暂无数据</p>');
				}else {
					showtoast('没有更多的数据了！');body_css();
                }
                $('.load_mores').hide();
			}
		}
	});
}
function body_css(){
	var body = $('body').css("position");
	if(body=='relative'){$('body').css("position","");}
}