',
onPageChange: function (num, type) {
currentPage1 = num;
if (type == 'init') {
return;
}
var query = {
EnabledMark: 1,
Category: category
}
$.getJSON("/Web/GetProductPageList",
{
page: num, rows: visiblePages, sord: 'desc', sidx: 'totop desc,sort desc,modifydate desc',
queryJson: JSON.stringify(query)
},
function (rowsTotal) {
html = '';
if (rowsTotal.rows.length > 0) {
html = createListHtml(eval(rowsTotal.rows));
}
else {
html = '
褰撳墠鏃犲尮閰嶈褰曪紒
'
}
$("#product" + category).html(html);
});
}
});
})
}
//鍒涘缓鍒楄〃鏄剧ず鐨刪tml
function createListHtml(data) {
var html = '';
$.each(data, function (i, v) {
if (i % 2 == 0) {
html += '';
html += '