").html(s[f].name).appendTo(u)}$("").bind("click",function(e){event.preventDefault(),event.stopPropagation(),c=$(this).parent(),c.siblings().last(".works-mask").show()}).attr("src",e.server+"data/close.png").prependTo(a);var v=``;n.append(v),$(r).hide(),$(a).show().css("display","inline-block"),n.find(".uploadimg-tip").hide()}else $(this).val(""),n.find(".uploadimg-tip").show();setTimeout(function(){$(".up-section").removeClass("loading"),$(".up-img").removeClass("up-opcity")},450)}),$(document).on("click",".wsdel-ok",function(){$(this).parents(".works-mask").remove(),c.next(".z_file").show(),c.next(".z_file").children(".upload-local-img-input").val(""),c.children().remove(),c.hide(),c.siblings().last(".uploadimg-tip").show()}),$(document).on("click",".wsdel-no",function(){$(this).parents(".works-mask").hide()}),$(document).on("click",".lgyPl_v2_record_item_fd",function(){var t=$(this).parents(".lgyPl_v2_record_item").data("plid");e.util.doDigg(t,0,this)}),$(document).on("click",".lgyPl_v2_record_item_zc",function(){var t=$(this).parents(".lgyPl_v2_record_item").data("plid");e.util.doDigg(t,1,this)}),$(document).on("click",".lgyPl_v2_post_face_tabs span",function(e){e.stopPropagation();var t=$(this).index(),l=$(this).parents(".lgyPl_v2_post_face_box");l.find(".lgyPl_v2_post_face_tabs span").removeClass("active").eq(t).addClass("active"),l.find(".lgyPl_v2_post_face_tabs_content ul").removeClass("active").eq(t).addClass("active")}),$(document).on("click",".lgyPl_v2_record_item_reply",function(t){$(".lgyPl_v2_post_submit_wrap span").html("").removeClass("active");var l=$(this).parents(".lgyPl_v2_record_item").data("plid"),o=$(this).attr("title");e.util.reply(l,this,o)}),$(document).on("submit submited","form.lgyPl_v2_post",function(e){e.preventDefault(),$(this).find(".lgyPl_v2_post_submit").trigger("click")}),$(document).on("click",".lgyPl_v2_record_reply_pagination a",function(t){t.preventDefault(),e.showIndicator();var l=$(this).attr("href");$.ajax({url:l,dataType:"json",success:function(e){if(e.plid){var t=$('.lgyPl_v2_record_item[data-plid="'+e.plid+'"]');t.find(".lgyPl_v2_record_reply_list").html(e.data),t.find(".lgyPl_v2_record_reply_pagination").html(e.listpage),$("html,body").animate({scrollTop:t.offset().top})}},complete:function(){e.hideIndicator()}})}),$(document).on("click",".lgyPl_v2_record_reply_pagination_show",function(){$(this).prev(".lgyPl_v2_record_reply_pagination").removeClass("lgyPl_v2_hide"),$(this).prevAll(".lgyPl_v2_record_reply_list").find(".lgyPl_v2_record_reply_item").removeClass("lgyPl_v2_hide"),$(this).remove()})},record:{config:{inner:".lgyPl_v2_record_list",filter:".lgyPl_v2_record_filter",btn:".lgyPl_v2_load_more_record",orderby:0},load:function(e){d.config;var t=$(this.config.inner),l=$(this.config.filter),i=$(this.config.btn),n=d.navinfor,a=this.config.orderby,s=this;t.attr("page")||$.getJSON(d.server+"api/record.php?orderby="+a+"&id="+n.id+"&classid="+n.classid,function(n){if(n.total>0){var a=s.hideReplyLine(n.result);t.html(a),t.attr("page",n.pageIndex).attr("total",n.pageTotal),$(".lgyPl_v2_record_total").text(n.total),$(".lgyPl_v2_record_page").text(n.pageTotal),l.show(),n.pageTotal>1?i.show().html((0,o.n7)("pl14","查看下一页")).removeAttr("disabled"):i.show().html((0,o.n7)("pl15","已加载完毕")),"function"==typeof e&&e(n)}else t.html('
'+n.info+"
"),i.hide();d.hideIndicator()})},refresh:function(){$(this.config.inner).removeAttr("page"),this.load()},hideReplyLine:function(e){var t=d.config;e=$(e);return t.replyhidenum>0&&$(e).find(".lgyPl_v2_record_reply_wrap ").each(function(e){var l=0,i=$(this);$(this).find(".lgyPl_v2_record_reply_item").each(function(e){e>=t.replyhidenum&&(l=1,$(this).addClass("lgyPl_v2_hide"))}),l&&i.find(".lgyPl_v2_record_reply_pagination").addClass("lgyPl_v2_hide").after(`${(0,o.n7)("pl16","查看更多回复")}`)}),e},more:function(){var e=$(this.config.inner),t=$(this.config.btn),l=d.navinfor,i=parseInt(e.attr("page")),n=i+1,a=parseInt(e.attr("total")),s=this.config.orderby,r=this;i0){var i=r.hideReplyLine(l.result);e.append(i),e.attr("page",l.pageIndex),l.pageTotal>n?t.show().html((0,o.n7)("pl14","查看下一页")).removeAttr("disabled"):t.show().html((0,o.n7)("pl15","已加载完毕"))}else t.show((0,o.n7)("pl15","已加载完毕"))}))}},userStatus:function(){var e=this,t=$(".lgyPl_v2_post_userinfo"),l="";$.getJSON(e.server+"api/status.php",function(o){if(e.islogin=o.islogin,e.islogin)for(var i in l=e.config.membertemp,o.data){var n=new RegExp("\\[!--"+i+"--\\]","g");l=l.replace(n,o.data[i])}else l=e.config.logintemp;t.html(l)})},toast:function(e,t,l){var o=$('还没有评论,快来抢沙发吧!