"); window.open(firleurl, "_blank") } else { //flase支付失败 //addmp-用户MP余额不足 //ingmp-用户已下载过 //noelement-资料不存在 switch (data.status) { case "addmp": alert("对不起,您的MP不足以支付该次下载"); break; case "noelement": alert("对不起,资料不存在"); break; default: alert("对不起,支付失败"); break; } } }) } } else { var firleurl = ""; $("body").append(" "); //$(".m_t40").append(""); window.open(firleurl, "_blank") } } else { alert("请登陆后下载") } }) }) function getUserReply(rid, rtype, starvalue) { $.getJSON("http://c.gongkong.com/NewUserReply/getJsonUserReply?callback=?", { Rid: rid, rtype: rtype, starvalue: starvalue }, function (data) { $("#floors").html(data.Result); }) } function showReplyDiv(id, type) { $(".UserReplyRt").each(function () { var idv = $(this).attr("data-value"); $("#Replydiv1_" + idv).hide(); $("#AccusationDiv1_" + idv).hide(); $("#Replybtn1_" + idv).show(); $("#Accusation1_" + idv).show(); $("#Replybtn2_" + idv).hide(); }) $(".Replydiv1_class").hide(); if (type == 0) { $("#Replydiv1_" + id).show(); } else { $("#AccusationDiv1_" + id).show(); } $("#Replydiv1").show(); $("#Replybtn1_" + id).hide(); $("#Accusation1_" + id).hide(); $("#Replybtn2_" + id).show(); } function hideReplyDiv(id) { $("#Replydiv1_" + id).hide(); $("#AccusationDiv1_" + id).hide(); $("#Replybtn1_" + id).show(); $("#Accusation1_" + id).hide(); $("#Accusation1_" + id).show(); $("#Replybtn2_" + id).hide(); } function submit_ReplyToUser(parentid, type) { var username = $("#Hidden_loginname").val(); if (username == "") { alert("请登录后在进行回复"); return } var rid = '86521'; var ReplyType = 3; var Rtitle = $("#Rtitle_D").text(); var Ctitle = $("#Rtitle_D").text(); var parentID = parentid; var Content = $("#Replytext1_" + parentid).val(); var Star = 3; var companyid = '3895588'; var Rurl = window.location.href; var accusation = 0; if (type == 1) { accusation = 1; Content = $("#Accusationtext1_" + parentid).val(); } $.post("/gongkong2/NewUserReply/AddUserReplys", { username: username, rid: rid, ReplyType: ReplyType, Rtitle: Rtitle, Ctitle: Ctitle, Content: Content, Star: Star, companyid: companyid, Rurl: Rurl, unname: 0, parentID: parentID, rtcontent: "", email: "", accusation: accusation }, function (data) { if (data != "" && data != "error") { if (type == 1) { alert("感谢您为平安棋牌做出的贡献!"); } //刷新 getUserReply("86521", 3); } }) } function getStarInfo(rate) { var starinfo = "很高"; switch (rate) { case 1: starinfo = "很低"; break; case 2: starinfo = "较低"; break; case 3: starinfo = "一般"; break; case 4: starinfo = "较高"; break; } return starinfo; }