<listing id="jx9bf"><meter id="jx9bf"></meter></listing>
<sub id="jx9bf"><meter id="jx9bf"><font id="jx9bf"></font></meter></sub>

<th id="jx9bf"></th>

    <track id="jx9bf"></track>

    <track id="jx9bf"></track><address id="jx9bf"><progress id="jx9bf"><thead id="jx9bf"></thead></progress></address>
    评论
    '; html += '
    '; html += '
    '; $(this).parent(".txt").append(html); }); $(".plList").delegate(".cancelBt","click",function(){ $(this).parents('.huifuBox').remove(); }); $(".plList").delegate("textarea", "focus",function(){ var name = $(this).parents(".txt").find('.userName').text(); if ($(this).text() =='回复'+name) { $(this).empty(); } }); $(".plList").delegate("textarea", "blur",function(){ var name = $(this).parents(".txt").find('.userName').text(); if ($(this).text() =='') { $(this).text('回复'+name); } }); //发表评论 $(".submitBt").click(function () { var content = $.trim($('#commentcontent').val()); if(content) { $.post("/comment/addComment",{object_id: $('#vid').val(), content: content, parent_id:0},function(data){ if(data.code == 201) { loginPop(); return false; } else if (data.code == 200) { var html = ''; html +='
  1. '; html +='
    '; html +='
    回复0'; if(data.userinfo.data.is_vip != 0) { html +='

    '+data.userinfo.data.nickname+'

    '; } else { html +='

    '+data.userinfo.data.nickname+'

    '; } html +='
    '+content+'
    '; html +='

    '+getNowFormatDate()+'

    '; html +='
  2. '; $('.plList').prepend(html); $('#commentcontent').val('说点什?#31383;?); } else if(data.code == 203) { alert(data.info); return false; } }, "json"); } else return false; }); //回复评论 $(".plList").delegate(".huifuBt2","click",function(){ var content = $.trim($(this).parents('.txt').find('textarea').val()); var parent_id = $.trim($(this).parents('.txt').attr('id')); var userName = $.trim($(this).parents('.txt').find('.userName').text()); var huifuBox = $(this).parents('.huifuBox'); if(content) { $.post("/comment/addComment",{object_id: $('#vid').val(), content: content, parent_id: parent_id},function(data){ if(data.code == 201) { loginPop(); return false; } else if (data.code == 200) { var html = ''; html +='
  3. '; html +='
    '; html +='
    回复0'; if(data.userinfo.data.is_vip != 0) { html +='

    '+data.userinfo.data.nickname+'

    '; } else { html +='

    '+data.userinfo.data.nickname+'

    '; } html +='
    '+data.userinfo.data.nickname+'回复了'+userName+'
    '; html +='
    '+content+'
    '; html +='

    '+getNowFormatDate()+'

    '; html +='
  4. '; $('.plList').prepend(html); //去掉回复框 huifuBox.remove(); } else if(data.code == 203) { alert(data.info); return false; } }, "json"); } else return false; }); //评论点赞 $(".plList").delegate(".zanIcoBt","click",function(){ var comment_id = $.trim($(this).parents('.txt').attr('id')); var obj = $(this); var num = $(this).parents('.txt').attr('data'); if(num > 0) return false; $.post("/comment/upDown", {comment_id: comment_id, type_id:1},function(data){ if(data.code == 200) { obj.addClass('zanClick'); obj.text(eval(obj.text()+"+1")); obj.parents('.txt').attr('data', eval(num+"+1")); } else if(data.code == 201) { loginPop(); return false; } else if(data.code == 203) { alert(data.info); obj.parents('.txt').attr('data', eval(num+"+1")); return false; } }, "json"); }); $(function(){ // //获取评论数 // if($('#vid').val()) // { // $.post("/comment/getNum4Ajax", {vid: $('#vid').val()},function(data){ // if(data.msg == 1) // { // $('#commentTit').html('评论('+data.num+')'); // } // }, "json"); // } getCommentList(); $('.listMoreBar').click(function(){ getCommentList(); }) }) function getCommentList() { if($('#vid').val()) { $.post("/comment/getList4Ajax", {vid: $('#vid').val(), last_id: $('#last_id').val()},function(data){ if(data.msg == 1) { var html = ''; $.each(data.list, function(i){ html += '
  5. '; html += '
    回复'+data.list[i].support_num+''; if(data.list[i].vip != 0) { html += '

    '+data.list[i].nickname+'

    '; } else { html += '

    '+data.list[i].nickname+'

    '; } if(data.list[i].to_userid != 0) { html += '
    '+data.list[i].nickname+'回复了'+data.list[i].to_nickname+'
    '; } html += '
    '+data.list[i].content+'
    '; html += '

    '+data.list[i].create_time+'

    '; html += '
  6. '; }) $('.plList').append(html); var last_id = eval(data.list)[eval(data.list).length-1]["comment_id"]; $('#last_id').val(last_id); $('.listMoreBar').show(); } else if(data.msg == 2) { $('.listMoreBar').remove(); } }, "json"); } } function getNowFormatDate() { var date = new Date(); var seperator1 = "-"; var seperator2 = ":"; var month = date.getMonth() + 1; var strDate = date.getDate(); if (month >= 1 && month <= 9) { month = "0" + month; } if (strDate >= 0 && strDate <= 9) { strDate = "0" + strDate; } var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate + " " + date.getHours() + seperator2 + date.getMinutes() + seperator2 + date.getSeconds(); return currentdate; }
    ? 2017 第一视频公司版权所有
    互联网新闻信息服务许可证(国新网许可证编号11220180006) 电信与信息服务业务经营许可证(京ICP证050390号) 广播电视节目制作经营许可证 (广媒)字第150号
    统一社会信用代码:911101087754533048 网络文化经营许可证:京网文【2018】10244-931号  网络出版服务许可证:(总)网出证(京)字第194号
    信息网络传播视听节目许可证(0105136) 测绘资质证书(甲测资字1100561) 增值电信业务经营许可证B2-20050381京公网安备:11000002002116
    邮箱:[email protected]  热线: 400-006-4571  不良信息举报: 010-64706601
    北京赛车pk10软件机器人

    <listing id="jx9bf"><meter id="jx9bf"></meter></listing>
    <sub id="jx9bf"><meter id="jx9bf"><font id="jx9bf"></font></meter></sub>

    <th id="jx9bf"></th>

      <track id="jx9bf"></track>

      <track id="jx9bf"></track><address id="jx9bf"><progress id="jx9bf"><thead id="jx9bf"></thead></progress></address>

      <listing id="jx9bf"><meter id="jx9bf"></meter></listing>
      <sub id="jx9bf"><meter id="jx9bf"><font id="jx9bf"></font></meter></sub>

      <th id="jx9bf"></th>

        <track id="jx9bf"></track>

        <track id="jx9bf"></track><address id="jx9bf"><progress id="jx9bf"><thead id="jx9bf"></thead></progress></address>