');
arr.push('
');
arr.push('

');
arr.push('
' + obj.UserName + '');
arr.push('
');
arr.push('
');
arr.push('');
arr.push('' + obj.SKUContent + '');
//arr.push('發(fā)表于:' + obj.ReviewDate + '');
arr.push('
');
arr.push('
' + obj.ReviewText + '
');
arr.push('
');
if (obj.ImageUrl1 != null && obj.ImageUrl1 != "")
arr.push('
');
if (obj.ImageUrl2 != null && obj.ImageUrl2 != "")
arr.push('
');
if (obj.ImageUrl3 != null && obj.ImageUrl3 != "")
arr.push('
');
if (obj.ImageUrl4 != null && obj.ImageUrl4 != "")
arr.push('
');
if (obj.ImageUrl5 != null && obj.ImageUrl5 != "")
arr.push('
');
arr.push('');
arr.push('
');
arr.push('
![]()
');
arr.push('
');
if (obj.ReplyDate != null && obj.ReplyDate != "") {
arr.push('
客服回復:' + obj.ReplyText + '
');
}
arr.push('
');
return arr.join("");
}
function getLineItemHtml(obj) {
var arr = new Array();
arr.push('');
if (currentPage > 1)
arr.push('
上一頁');
var finallyPage = 0;
for (var i = 1; i <= pageNum; i++) {
if (i > (currentPage - 3 + ((pageNum - currentPage - 3) > 0 ? 0 : (pageNum - currentPage - 3))) && i < (currentPage + 3 - ((currentPage - 3) > 0 ? 0 : (currentPage - 3)))) {
finallyPage = i;
if (i == currentPage)
arr.push('
' + i + '');
else
arr.push('
' + i + '');
}
}
if (finallyPage < pageNum) {
arr.push('
...');
}
if (currentPage < pageNum)
arr.push('
下一頁');
arr.push('
');
arr.push('第' + currentPage + '/' + pageNum + '頁 共' + totalCount + '記錄');
arr.push('頁');
arr.push('');
arr.push('');
arr.push('
');
return arr.join("");
}
function getLineItemPage(totalCount, pageNum, currentPage) {
var arr = new Array();
arr.push('');
if (currentPage > 1)
arr.push('
上一頁');
var finallyPage = 0;
for (var i = 1; i <= pageNum; i++) {
if (i > (currentPage - 3 + ((pageNum - currentPage - 3) > 0 ? 0 : (pageNum - currentPage - 3))) && i < (currentPage + 3 - ((currentPage - 3) > 0 ? 0 : (currentPage - 3)))) {
finallyPage = i;
if (i == currentPage)
arr.push('
' + i + '');
else
arr.push('
' + i + '');
}
}
if (finallyPage < pageNum) {
arr.push('
...');
}
if (currentPage < pageNum)
arr.push('
下一頁');
arr.push('
');
arr.push('第' + currentPage + '/' + pageNum + '頁 共' + totalCount + '記錄');
arr.push('頁');
arr.push('');
arr.push('');
arr.push('
');
return arr.join("");
}
function btnfanye(type, pageNum) {
if ($("#txtGoto" + type).val() == "")
alert("請輸入翻頁數(shù)");
if (isNaN($("#txtGoto" + type).val()))
alert("翻頁數(shù)只能輸入數(shù)字");
if (parseInt($("#txtGoto" + type).val()) > pageNum)
alert("翻頁數(shù)不可以大于最大頁數(shù)");
loadReviewData(reviewPageSize, parseInt($("#txtGoto" + type).val()), $("#hidden_productId").val(), type)
}
function btnLineItemfanye(pageNum) {
if ($("#txtLineItemGoto").val() == "")
alert("請輸入翻頁數(shù)");
if (isNaN($("#txtLineItemGoto").val()))
alert("翻頁數(shù)只能輸入數(shù)字");
if (parseInt($("#txtLineItemGoto").val()) > pageNum)
alert("翻頁數(shù)不可以大于最大頁數(shù)");
loadProductSaleCountData(lineItemPageSize, parseInt($("#txtLineItemGoto").val()), $("#hidden_productId").val())
}