您好,欢迎访问PDF电子书资源免费下载网
还剩... 页未读,继续阅读
¥ 1 元,已有0人下载
{ location.href = location.href; } login_f(); } else { $.get("doc/favorite/10047228", function (data) { if (data == -1) { login_f(); } else { $(".fa-heart").toggleClass("active"); } }); } }); $(".csubmit").click(function () { if ("0" == "0") { login_f(); } else { var comment = $("#txt_comment").val(); if (comment == "") { Message('请输入评论内容'); return; } $.post("doc/comment_submit", { comment: comment, docid: '10047228' }, function (data) { if (data == 0) { Message("评论已发布,审核后可查看.", "提示"); } else if (data == 1) { Message("评论已发布,刷新后查看.", "提示"); } else { Message("您没有发表评论的权限.", "提示"); } $("#txt_comment").val(''); }); } }); $(".comment_up").click(function () { if ("0" == "0") { login_f(); } else { $this = $(this); $this.toggleClass("active"); $.post("doc/comment_agree/" + $(this).attr("data-id"), function (data) { if (data == -1) { $this.toggleClass("active"); Message("您没有点评论权限", "提示"); } else { $this.html("" + data); } }); } }); $(".comment_del").click(function () { if ("0" == "0") { login_f(); } else { $this = $(this); Dialog("确认删除评论?", "提示", function () { HideModal(); $.post("doc/comment_del/", { commentid: $(this).attr("data-id") }, function (data) { if (data == -1) { Message("您没有删除评论权限", "提示"); } else { $this.parent().parent().remove(); } }); }); } });