$("#guankansp").html(""); var onesrc = $(".xg_lvxiang li").eq(0).attr("data-link-url"); if(onesrc) {} else { var onesrc = $(".luxianglb li").eq(0).attr("data-link-url"); } var jumphtml = "

请您点击此处观看视频

This video requires you to click and watch.

"; $("#guankansp").html(jumphtml); var domainwww = $("body").attr("data-domainwww"), domainstatic = $("body").attr("data-domainstatic"), putsrc = domainwww + "put", dlurl = domainwww + "login", geturl = domainwww + "get"; if ($(".xg_lvxiang").length) { $(".xg_lvxiang li").eq(0).addClass("lxselect"); var onejump = $(".xg_lvxiang li").eq(0).attr("data-jump"); if (1 == onejump) { var onesrc = $(".xg_lvxiang li").eq(0).attr("data-link-url"); $("#guankansp").html(""); var jumphtml = "

请您点击此处观看视频

This video requires you to click and watch.

"; $("#guankansp").html(jumphtml) } 0 == onejump && (onesrc = $(".xg_lvxiang li").eq(0).attr("data-link-url"), $("#guankansp iframe").attr("src", onesrc)); $(".xg_lvxiang li").click(function() { var a = $(this).attr("data-jump"); if (1 == a) { var b = $(this).attr("data-link-url"); window.open(b) } 0 == a && ($(this).addClass("lxselect").siblings().removeClass("lxselect"), a = $(this).attr("data-link-url"), $("#guankansp").html(""), a = '', $("#guankansp").append(a)) }) } $(".pinglun_lb").length && $(".wenzhang_reply").find("textarea").bind("focus", function() { $(this).parent().parent().addClass("plfocus"); $(this).parent().parent().animate({ height: "170px" }); $(this).parent().parent().find(".reply-box-block").animate({ height: "117px" }); $(".shouqi").find("cite").html("回复"); $(".shouqi").removeClass("shouqi").addClass("huifupl"); $(".pl_list li").find(".pilun_huifu").html("") }); if ($(".pinglun_lb").length) $(".pinglulb").on("focus", ".reply_plnr", function() { $(this).parent().parent().addClass("plfocus"); $(this).parent().parent().animate({ height: "170px" }); $(this).parent().parent().find(".reply-box-block").animate({ height: "117px" }) }); 0 < $(".pl_nrong").length && chushipllist(); function chushipllist() { var a = $(".fabiaopl").attr("data-id"); $.ajax({ url: geturl, dataType: "json", async: !0, type: "POST", data: { act: 102, id: a, cid: 2 }, success: function(b) { var c = b.data.paperList, f = b.usersArr; 1 == b.status && ($(".pl_num cite").html(b.data.rowSum), 20 < b.data.rowSum ? $(".jzmorepl").show() : $(".jzmorepl").hide(), void 0 != c && (0 < c.length ? ($(".pl_nrong .pl_list").html(""), $.each(c, function(e, d) { e = "
  • "); e = e + "

    " + (b.usersArr[d.uid].nickname + ""); e += "" + d.inserttime.substring(5, 16) + "

    "; 1 == b.usersArr[d.uid].status ? 0 == d.oid ? e += "
    " + d.content + "
    " : void 0 != b.huifuArr[d.oid] && (e += "
    " + d.content + "@" + f[b.huifuArr[d.oid].uid].nickname + ": " + b.huifuArr[d.oid].content + "
    ") : e += "
    该用户已经被屏蔽
    "; e = e + "
    回复"); e = e + "

    " + (d.support + "

    "); e += "

    " + d.despise + "

    "; e = e + "

  • "); $(".pl_nrong .pl_list").append(e) })) : ($(".pl_nrong .pl_list").html("
    暂无评论哦,赶快来评论一下吧!
    "), $(".pl_num cite").html("0"), $(".more_reply").hide()))) }, complete: function() {}, error: function(b) {} }) } setTimeout(function() { jzmoreplxs($(".pl_num cite").html()) }, 1500); setInterval("chushipllist()", 3E5); setTimeout(function() { jzmoreplxs($(".pl_num cite").html()) }, 1500); var plzbjs = !0; $(".fabiaopl").click(function() { if (plzbjs) { plzbjs = !1; var a = $(".fabiaopl").attr("data-id"), b = $(".fabiaopl").attr("data-login"), c = $(".fabiaopl").attr("data-h"); if (0 == b) $(".tskuan_black p").html("请先登录后再发表评论"), $(".tskuan_black").fadeIn(300), setTimeout(function() { window.location.href = domainwww + "login" }, 2E3); else if (1 == c) $(".tskuan_black p").html("您已被加入黑名单不能发表评论,请先申诉找回"), $(".tskuan_black").fadeIn(300), setTimeout(function() { window.location.href = domainwww + "appeal" }, 3E3); else { var f = $(".wzplnr").val(); if ("" == f) $(".tskuan_black p").html("评论内容不能为空"), $(".tskuan_black").fadeIn(300), setTimeout(function() { $(".tskuan_black p").html(""); $(".tskuan_black").hide() }, 2E3); else { var e = dateFormat(new Date), d = $(".yh_photo img").attr("src"), g = $(".yh_name .my_mizi").html(), n = $(".pl_num cite").html(); b = $(".fabiaopl").attr("data-sign"); $.ajax({ url: putsrc, dataType: "json", async: !0, data: { act: 4, from: 2, id: a, msg: f, sign: b }, type: "POST", success: function(l) { if (1 == l.status) { $(".pl_num cite").html(parseInt(n) + 1); jzmoreplxs($(".pl_num cite").html()); var h = "
  • "); h = h + "

    " + (g + ""); h += "" + e + "

    "; h += "
    " + f + "
    "; h = h + "
    回复"); h = h + "

    0

    0

  • "); $(".pl_nrong .nozwpl").remove(); $(".pl_nrong .pl_list").prepend(h); $(".shouqi").find("cite").html("回复"); $(".shouqi").removeClass("shouqi").addClass("huifupl"); $(".pl_list li").find(".pilun_huifu").html(""); $(".tskuan_black p").html(l.message); $(".tskuan_black").fadeIn(300) } else $(".shouqi").find("cite").html("回复"), $(".shouqi").removeClass("shouqi").addClass("huifupl"), $(".pl_list li").find(".pilun_huifu").html(""), $(".tskuan_black p").html(l.message), $(".tskuan_black").show(); setTimeout(function() { $(".tskuan_black").hide() }, 2E3) }, complete: function() { $(".wzplnr").val(""); $(".wenzhang_reply").removeClass("plfocus"); $(".wenzhang_reply").find(".reply-box-block").removeAttr("style"); $(".wenzhang_reply").removeAttr("style") }, error: function(l) {} }) } } setTimeout(function() { plzbjs = !0 }, 3E3) } }); var hfpl_ynr = "", hfpl_ymc = "", hfpl_mcl = ""; $(".pl_nrong").on("click", ".huifupl", function() { $(this).parents("li").find(".pilun_huifu").html(""); var a = "
    " + $(".hufupl_hide").html() + "
    "; $(this).parents("li").find(".pilun_huifu").append(a); $(this).find("cite").html("收起"); $(this).addClass("shouqi").removeClass("huifupl"); $(this).parents("li").siblings().find(".pilun_huifu").html(""); $(this).parents("li").siblings().find(".comment_xg_reply").removeClass("shouqi").addClass("huifupl").find("cite").html("回复"); hfpl_ymc = Trim($(this).parents("li").find(".comment_username").html()); hfpl_ynr = Trim($(this).parents("li").find(".comment_content").find("span").html()); $(".wzplnr").val(""); $(".wenzhang_reply").removeClass("plfocus"); $(".wenzhang_reply").find(".reply-box-block").removeAttr("style"); $(".wenzhang_reply").removeAttr("style") }); $(".pl_nrong").on("click", ".shouqi", function() { $(this).find("cite").html("回复"); $(this).removeClass("shouqi").addClass("huifupl"); $(this).parents("li").find(".pilun_huifu").html("") }); var hfpltime = !0, fujiid = ""; $(".pl_nrong").on("click", ".fabiaopl_hf", function() { if (hfpltime) { hfpltime = !1; var a = $(".hufupl_hide .fabiaopl_hf").attr("data-id"), b = $(".hufupl_hide .fabiaopl_hf").attr("data-login"), c = $(".hufupl_hide .fabiaopl_hf").attr("data-h"), f = $(this).parents(".pilun_huifu").attr("data-oid"), e = $(this).parents(".pilun_huifu").attr("data-toid"); if (0 == b) $(".tskuan_black p").html("请先登录后再发表评论"), $(".tskuan_black").fadeIn(300), setTimeout(function() { window.location.href = domainwww + "login" }, 2E3); else if (1 == c) $(".tskuan_black p").html("您已被加入黑名单不能发表评论,请先申诉找回"), $(".tskuan_black").fadeIn(300), setTimeout(function() { window.location.href = domainwww + "appeal" }, 3E3); else { var d = $(this).prev().find(".reply_plnr").val(), g = dateFormat(new Date), n = $(".yh_photo img").attr("src"), l = $(".yh_name .my_mizi").html(), h = $(".pl_num cite").html(); b = $(".fabiaopl_hf").attr("data-sign"); "" == d ? ($(".tskuan_black p").html("评论内容不能为空"), $(".tskuan_black").show(), setTimeout(function() { $(".tskuan_black p").html(""); $(".tskuan_black").hide() }, 2E3)) : (fujiid = 0 == e ? f : e, $.ajax({ url: putsrc, dataType: "json", async: !0, type: "POST", data: { act: 4, id: a, msg: d, from: 2, oid: f, sign: b, toid: fujiid }, success: function(m) { if (1 == m.status) { $(".pl_num cite").html(parseInt(h) + 1); jzmoreplxs($(".pl_num cite").html()); var k = "
  • "); k = k + "

    " + (l + ""); k += "" + g + "

    "; k += "
    " + d + "@" + hfpl_ymc + ": " + hfpl_ynr + "
    "; k = k + "
    回复"); k = k + "

    0

    0

  • "); $(".pl_nrong .pl_list").prepend(k) } $(".shouqi").find("cite").html("回复"); $(".shouqi").removeClass("shouqi").addClass("huifupl"); $(".pl_list li").find(".pilun_huifu").html(""); $(".tskuan_black p").html(m.message); $(".tskuan_black").show(); setTimeout(function() { $(".tskuan_black").hide() }, 2E3) }, complete: function() { $(".reply_plnr").val(""); $(".comment_huifupl").removeClass("plfocus"); $(".comment_huifupl").find(".reply-box-block").removeAttr("style"); $(".comment_huifupl").removeAttr("style"); $(".pl_list li").removeAttr("style", ""); $(".fabiaopl_hf").attr("data-oid", "") }, error: function(m) {} })) } setTimeout(function() { hfpltime = !0 }, 3E3) } }); $(".more_reply").click(function() { var a = $(".more_reply").attr("data-page"); a = parseInt(a) + 1; $(".more_reply").attr("data-page", a); if (0 == $(this).attr("data-more")) { var b = $(".fabiaopl").attr("data-id"); $.ajax({ url: geturl, dataType: "json", async: !0, type: "POST", data: { act: 102, id: b, cid: 2, page: a }, success: function(c) { var f = c.data.paperList, e = c.usersArr; 1 == c.status && (0 < f.length ? $.each(f, function(d, g) { d = "
  • "); d = d + "

    " + (c.usersArr[g.uid].nickname + ""); d += "" + g.inserttime.substring(5, 16) + "

    "; 0 == g.oid ? d += "
    " + g.content + "
    " : void 0 != c.huifuArr[g.oid] && (d += "
    " + g.content + "@" + e[c.huifuArr[g.oid].uid].nickname + ": " + c.huifuArr[g.oid].content + "
    "); d = d + "
    回复"); d = d + "

    " + (g.support + "

    "); d += "

    " + g.despise + "

    "; d = d + "

  • "); $(".pl_list").append(d) }) : ($(".more_reply").html("没有更多评论"), $(".more_reply").attr("data-more", "1"))) }, complete: function() {}, error: function(c) {} }) } }); function Trim(a) { return a.replace(/(^\s*)|(\s*$)/g, "") } function jzmoreplxs(a) { 20 < parseInt(a) ? $(".more_reply").show() : $(".more_reply").hide() } function dateFormat(a) { a.getFullYear(); var b = a.getMonth() + 1, c = a.getDate(), f = a.getHours(); a = a.getMinutes(); return datetime = (9 < b ? b + "" : "0" + b) + "-" + (9 < c ? c + "" : "0" + c) + " " + (9 < f ? f + "" : "0" + f) + ":" + (9 < a ? a + "" : "0" + a) } $(".pl_nrong").on("click", ".pl_zan", function() { var a = $(this).parents("li").find(".huifupl").attr("data-id"), b = this; $.ajax({ url: putsrc, dataType: "json", async: !0, data: { act: 5, id: a, from: 1 }, type: "POST", success: function(c) { 1 == c.status ? (c = $(b).find("cite").html(), $(b).find("cite").html(parseInt(c) + 1)) : ($(".tskuan_black p").html(c.message), $(".tskuan_black").show(), setTimeout(function() { $(".tskuan_black").hide() }, 2E3)) }, error: function(c) {} }) }); $(".pl_nrong").on("click", ".pl_cai", function() { var a = $(this).parents("li").find(".huifupl").attr("data-id"), b = this; $.ajax({ url: putsrc, dataType: "json", async: !0, data: { act: 5, id: a, from: 2 }, type: "POST", success: function(c) { 1 == c.status ? (c = $(b).find("cite").html(), $(b).find("cite").html(parseInt(c) + 1)) : ($(".pl_tanchu p").html(c.message), $(".pl_tanchu").fadeIn(300), setTimeout(function() { $(".pl_tanchu").fadeOut() }, 2E3)) }, error: function(c) {} }) }); $(".pl_nrong").on("click", ".jubaopl", function() { var a = $(this).parents("li").find(".huifupl").attr("data-id"); $("#zhezhao").show(); $(".report_block").show().attr("data-id", a); $(".report_block").find(".qitawenti .qitawenti_bt").find("i").html(""); $(".report_block").find(".qitawenti .tianxiewt").hide(); $(".report_block").find(".jubaowenti").val(""); $(".report_block").find(".report_item li").removeClass("report_item_select"); $.ajax({ url: geturl, dataType: "json", async: !0, data: { act: 51 }, type: "POST", success: function(b) { var c = b.data; 0 < b.data.length && ($(".report_item").html(""), $.each(c, function(f, e) { f = "
  • " + e.option + "
  • "; $(".report_item").append(f) })) }, error: function(b) {} }) }); $(".qitawenti_bt").click(function() { "block" == $(this).next(".tianxiewt").css("display") ? ($(this).find("i").html(""), $(this).next(".tianxiewt").hide()) : ($(this).find("i").html(""), $(this).next(".tianxiewt").show()) }); $(".gb_reportbox").length && $(".gb_reportbox").click(function() { $("#zhezhao").hide(); $(".report_block").hide() }); $(".report_btn_queding").click(function() { var a = $(".report_item").find(".report_item_select").attr("data-id"), b = $(".jubaowenti").val(), c = $(".report_block").attr("data-id"), f = ""; f = void 0 == a ? "" : a; "" == f && "" == b ? ($(".tskuan_black").show(), $(".tskuan_black p").html("举报内容不能为空"), setTimeout(function() { $(".tskuan_black").hide() }, 2E3)) : $.ajax({ url: putsrc, dataType: "json", async: !0, data: { act: 6, id: c, reportid: f, msg: b }, type: "POST", success: function(e) { $("#zhezhao").hide(); $(".report_block").hide().attr("data-id", ""); $(".tskuan_black p").html(e.message); $(".tskuan_black").show(); setTimeout(function() { $(".tskuan_black").hide() }, 1E3) }, error: function(e) {} }) }); $(".report_item").on("click", "li", function() { $(this).is(".report_item_select") ? $(this).removeClass("report_item_select") : $(this).addClass("report_item_select").siblings().removeClass("report_item_select") }); var oHeight = $(".zdh_enu_unt").height(); $(".zdh_enu_unt").on("click", ".max-btn", function() { if (1 == $(this).data("pop")) { var a = $(window).height() - 50, b = $(window).width(); $(".zdh_enu_unt").css({ width: b + "px", height: a + "px", position: "fixed", top: "85px", left: "0", "z-index": "99" }); $(this).data("pop", "0"); $(this).css({ backgroundImage: "url(/static/img/min-btn.png)" }); $(this).attr("title", "最小化") } else $(".zdh_enu_unt").css({ width: "879px", height: oHeight + "px", position: "relative", top: "0" }), $(this).data("pop", "1"), $(this).css({ backgroundImage: "url(/static/img/max-btn.png)" }), $(this).attr("title", "最大化") });