书店排行榜
当前共有:字
提示:分享时会自动附带图书的链接地址与封面图片。
jQuery("#pageDivUser").html("");
bind_UserCommentsList(mtype, pageindex);
jQuery("li[name='tiu']").removeClass("current2");
jQuery("#" + "tab_userli" + mtype).addClass("current2");
function bind_UserCommentsList(mtype,pageindex){ //绑定网店网友评论
var pagesize = 5;
jQuery.getJSON('/AjaxBookNoUser.ashx?___time=' + Math.random(), { ___type: 'Get_CommentsBookUserList', bookid: bookid, mtype: mtype, pageindex: pageindex, pagesize: pagesize }, function (result) {
if (result != "0" && result != "-1") {
var html = "";
jQuery.each(result.list, function (i, item) { //绑定Table 0 地址
1标题 2 源 3 时间
var t = "";
t += "{0} ";
t += "{2}";
t += "{5}{3}";
var ibuy = "未购买用户:";
if(item.isbuy ==1){
ibuy="已购买用户:";}
t = t.format(item.title,item.guid,item.comcontent,item.username,item.comdate,ibuy);
jQuery("#book_usercm_list").html(html);
if (result.page.icount > pagesize){ //绑定分页
bind_pager(mtype, pageindex, result.page.pcount,'bind_UserCommentsList','pageDivUser');
jQuery("#book_usercm_list").html("暂时没有书评信息。");
function set_CommentsTab(mtype, pageindex) {
jQuery(".book_comms_tab").html("正在加载中请稍后...");
jQuery("#pageDiv").html("");
bind_CommentsList(mtype, pageindex);
jQuery("li[name='ti']").removeClass("current2");
jQuery("#" + "tab_li" + mtype).addClass("current2");
function bind_CommentsList(mtype, pageindex) {//绑定书评
var pagesize = 15;
jQuery.getJSON('/AjaxBookNoUser.ashx?___time=' + Math.random(), { ___type: 'Get_CommentsInfoLits', bookid: bookid, mtype: mtype, pageindex: pageindex, pagesize: pagesize }, function (result) {
if (result != "0" && result != "-1") {
var html = "";
jQuery.each(result.list, function (i, item) { //绑定Table 0 地址
1标题 2 源 3 时间
var t = "{2}{3}";
t = t.format("/bookview/" + bookid + "/" + item.PubYear + "/" + item.GUID, item.Title, item.Source, item.PubDate.split(' ')[0]);
jQuery(".book_comms_tab").html(html);
if (result.page.icount > pagesize){ //绑定分页
bind_pager(mtype, pageindex, result.page.pcount,"bind_CommentsList","pageDiv");
jQuery(".book_comms_tab").html("暂时没有书评信息。");
function bind_pager(m, p, c,f,d) {//分页 m-type p-index c-count f-function d-control
var phmb = "&"
var ph = "";
var pi = parseInt(p);
var ci = parseInt(c);
var first = ((pi - 1) == 0) ? 0 : (pi - 1);
if (first > 0) {
if (c > 8) { ph += phmb.format("", m, 1, "首页",f); }
ph += phmb.format("", m, first, "上一页",f);
for (var j = ((pi - 4) > 1) ? (pi - 4) : 1; (j <= ci) && (j
1) ? (pi - 4) : 1) + 8)); j++) {
if (j == pi) {
ph += phmb.format("class=\"aspNetDisabled\"", m, j, j,f);
ph += phmb.format("", m, j, j,f);
var last = ((pi + 1) > ci) ? (ci + 1) : (pi + 1);
8) { ph += phmb.format("", m, ci, "尾页",f); }
jQuery("#"+d).html(ph);植物大战僵尸2-功夫世界第3天三星视频攻略-游戏视频-搜狐视频
植物大战僵尸2-功夫世界第3天三星视频攻略
推荐出品人