山东群英会奖金|新山东群英会技巧|

2019MHI报告出炉:未来3-5年物流供应链技术实用性见解(附完整报告下载)

'+$("#reportHtml").html()+'
'); }else{ $(this).parent().parent().parent().find(".comment-report").remove(); } $("textarea[name='desc']").focus(); }); //?#22659;?#27004; $("body").on("click",".delete_Primary",function(){ var self = this; layer.confirm("确定要?#22659;?#35813;楼吗?",{title:'提示'},function(){ var comment_id = $(self).parent().prev().prev().prev().attr("to_comment_id"); $.post("/comment/deleteComment",{comment_id:comment_id},function(data){ if(data.result){ $(".comment-anniu span").text(Number($(".comment-anniu span").text())-1); layer.msg("?#22659;?#25104;功"); $(self).parent().parent().parent().parent().remove(); }else{ layer.msg(data.errMsg); if("登录超时,请登?#24049;?#37325;试!"==data.errMsg){ setTimeout(function(){ window.location.href = "/login"; },2000); } } }); }); }); //?#22659;?#27004;中回复 $("body").on("click",".reply-cont-delete",function(){ var self = this; var item_id = $(self).parent().attr("item_id"); layer.confirm("确定要?#22659;没?#22797;吗?",{title:'提示'},function(){ $.post("/comment/deleteComment",{item_id:item_id},function(data){ if(data.result){ layer.msg("?#22659;?#25104;功"); $(self).parent().parent().parent().parent().remove(); $(".reply-cont-delete").hide(); }else{ layer.msg(data.errMsg); if("登录超时,请登?#24049;?#37325;试!"==data.errMsg){ setTimeout(function(){ window.location.href = "/login"; },2000); } } }); }); }); $("body").on("click",".comment-report-submit",function(){ var comment_id = $(this).parent().parent().parent().parent().attr("comment_id"); /* var url = window.location.href; */ var desc = $(this).parent().parent().prev().children().children().val(); var defendant = $(this).parent().parent().parent().parent().parent().children().children("a").attr("to_user_id"); var reason=""; $($(this).parent().parent().parent().find("input:checked")).each(function(){ var substr = $(this).val(); reason+=$(this).val()+","; }); if(reason.length>0){ reason=reason.substr(0,reason.length-1); }else{ layer.msg("请至少选择一个举报原因") return false; } $.post("/comment/reportMethod",{comment_id:comment_id,desc:desc,reason:reason,defendant:defendant},function(data){ if(data.result){ $(".comment-report").hide(); layer.msg("举报成功",{icon:1}); }else{ /* layer.msg(data.errMsg); if("登录超时,请登?#24049;?#37325;试!"==data.errMsg){ setTimeout(function(){ window.location.href = "/login"; },2000); } */ layer.msg('举报失败,请重试',{icon:2}); } }).fail(function(){ layer.msg("后台出错",{icon:2}); }); }); //发表评论 $(".comment-submit button").click(function(){ var self = $(this); self.attr("disabled","true"); self.css("background-color","#ccc"); var comment_value = $("textarea[name='comment']").val(); if($.trim(comment_value)==null||$.trim(comment_value)==""){ layer.msg("请填写内容再评论!!!"); return; } var this_time = thisTime(); var i = 1; self.parent().parent().parent().parent().next().find(".comment-box").each(function(){ i++; }); var order = {}; order["from_id"] = $("#from_id").val(); order["this_time"] = this_time; order["comment_value"] = comment_value; order["type"] = "article"; order["url"] = window.location.href; $.post("/comment/saveComment",{"params":JSON.stringify(order)},function(data){ if(data.result){ $("textarea[name='comment']").val(""); self.attr("disabled","false"); self.css("background-color","#d61518"); layer.msg("评论成功"); $(".comment-anniu span").text(Number($(".comment-anniu span").text())+1); var head_img = ""; if(data.head_img == null||data.head_img == ""||data.head_img == undefined){ head_img = "/static/front/images/user/no_avatar.png"; }else{ head_img = data.head_img; } var html = '
' + '
' + ' ' + ' ' + ' ' + '
' + '
' + '
' + ' '+data.user_name+'' + ' ' + ' ' + ' ' + ' '+this_time+'' + '
' + ' ?#22659;?/span>' + ' '+i+'楼' + ' ' + ' 0' + ' ' + ' ' + ' 0' + ' ' + ' 举报' + '
' + '
' + '
'+comment_value+'
' + '
' + ' 回复' + '
' + '
' + '
' + ' ' + ' ' + '
' + '
' + '
' + '
' + '
' + '
'; self.parent().parent().parent().parent().next().append(html); }else{ layer.msg(data.errMsg); if("登录超时,请登?#24049;?#37325;试!"==data.errMsg){ setTimeout(function(){ window.location.href = "/login"; },2000); } } }); }); //评论点赞 $("body").on("click",".praise",function(){ var self = this; if($(self).attr("title")==""){ return; } var comment_id = $(self).parent().parent().children("a").attr("to_comment_id"); var count = $(self).children().next().text(); $.post("/comment/commentAttitude",{comment_id:comment_id,count:count,type:"like"},function(data){ if(data.result){ $(self).prop("title",""); $(self).children().next().html(data.count); $(self).children("i").css("color","red"); } }); }); //评论踩 $("body").on("click",".tread",function(){ var self = this; if($(self).attr("title")==""){ return; } var comment_id = $(self).parent().parent().children("a").attr("to_comment_id"); var count = $(self).children().next().text(); $.post("/comment/commentAttitude",{comment_id:comment_id,count:count,type:"step"},function(data){ if(data.result){ $(self).prop("title",""); $(self).children().next().html(data.count); $(self).children("i").css("color","red"); } }); }); var placeholder = ""; //回复评论显示隐藏 $("body").on("click",".comment-reply-btn",function(){ if(!validate_login("回复")){ return; } var comment_id = $(this).attr("comment_id"); var to_user_id = $(this).parent().parent().find(".comment-username").attr("to_user_id"); open_commentBox($(this).next(),"1","",to_user_id,comment_id); }); $("body").on("click",".reply-cont",function(e){ var user_name = $(this).prev().find(".reply-username").text(); var to_user_id = $(this).prev().find(".reply-username").attr("to_user_id"); var comment_id = $(this).attr("comment_id"); if(to_user_id!=""){ if(""==""){ layer.msg("请填写内容再回复!!!"); validate_login("回复评论"); return; } open_commentBox($(this).parent().parent().parent().parent().find(".comment-reply-box"),"2",user_name,to_user_id,comment_id); } }); /*$(document).click(function(){ $(".reply-cont-delete").hide(); });*/ $("body").on("mouseover",".reply-cont",function(e){ var to_user_id = $(this).prev().find(".reply-username").attr("to_user_id"); var comment_id = $(this).attr("comment_id"); if(to_user_id==""){ $(this).find(".reply-cont-delete").show(); } }); $("body").on("mouseout",".reply-cont",function(e){ $(".reply-cont-delete").hide(); }); var open_commentBox = function(jquery,seq,user_name,to_user_id,comment_id){ if(seq=="1"){ jquery.find("textarea").attr("placeholder",""); }else if(seq=="2"){ jquery.find("textarea").attr("placeholder","回复 "+user_name+":"); } jquery.find("textarea").attr("comment_id",comment_id); jquery.find("textarea").attr("to_user_id",to_user_id); if(jquery.find("textarea").attr("placeholder")==placeholder){ jquery.toggle(); }else{ jquery.show(); $("textarea[name='comment-reply-input']").focus(); } placeholder = jquery.find("textarea").attr("placeholder"); } function p(s) { return s < 10 ? '0' + s: s; } var thisTime = function (){ var myDate = new Date(); //获取当前年 var year = myDate.getFullYear(); //获取当前月 var month = myDate.getMonth()+1; //获取当前日 var date = myDate.getDate(); var h = myDate.getHours(); //获取当前小时数(0-23) var m = myDate.getMinutes(); //获取当前分钟数(0-59) var s = myDate.getSeconds(); var now = year+'-'+p(month)+"-"+p(date)+" "+p(h)+':'+p(m)+":"+p(s); return now; } $("body").on("click",".comment-reply-submit",function(){ var self = $(this); if(self.prev().val()==""){ layer.msg("请填写内容再回复!!!") return ; } var order = {}; order["to_user_id"] = self.prev().attr("to_user_id"); order["comment_id"] = self.prev().attr("comment_id"); var comment_value = self.prev().val(); order["comment_value"] = comment_value; order["url"] = window.location.href; var seq = ""; if(self.prev().attr("placeholder").length==0){ seq = "1"; }else{ seq = "2"; comment_value = ''+self.prev().attr("placeholder")+''+comment_value; } order["seq"] = seq; var this_time = thisTime(); order["type"] = "article"; order["this_time"] = this_time; $.post("/comment/saveReplyComment",{"params":JSON.stringify(order)},function(data){ if(data.result){ layer.msg("回复成功"); var head_img = ""; if(data.head_img == null||data.head_img == ""||data.head_img == undefined){ head_img = "/static/front/images/user/no_avatar.png"; }else{ head_img = data.head_img; } var html = '
' + '
' + ' ' + ' ' + ' ' + '
' + '
' + '
' + ' '+data.user_name+'' + ' ' + ' ' + ' ' + ' '+this_time+'' + '
' + '
'+comment_value+'
' + '
' + '
'; if(self.parent().parent().parent().parent().next().length==0){ self.parent().parent().parent().parent().parent().append('
'+html+'
'); }else{ self.parent().parent().parent().parent().next().append(html); } self.prev().val(""); self.parent().parent().parent().hide(); }else{ layer.msg(data.errMsg); if("登录超时,请登?#24049;?#37325;试!"==data.errMsg){ setTimeout(function(){ window.location.href = "/login"; },2000); } } }); }); var validate_login = function(type){ var user_id = ""; var result = false; var length = ($(window).height())*0.15 if(user_id==""){ layui.use(['layer', 'form'], function(){ var layer = layui.layer ,form = layui.form; //询问框 layer.confirm('登?#24049;?#25165;可以'+type+'哦!', { title:'提示', btn: ['登录','没有账号?前往注册'] //按钮 ,offset: //为了演示,随机坐标 length }, function(){ window.location.href="/login"; }, function(){ window.location.href="/login/register"; }); }); }else{ result = true; } return result; } }); });

罗戈快讯 更多

山东群英会奖金