确认!小红书品牌营销负责人叶珊杉出席品牌新变革峰会
‘); $(‘#del’).click(); } $(“#comment”).val(”); } }); }); $(‘.reply’).click(function(){ //alert($(this).attr(‘alt’)); //$(‘#comment_box .publish’).html(‘回复:‘ + $(this).parent().siblings(‘b’).text() + ‘‘); //$(‘#comment_box button’).text(‘回复’); $(‘#submit’).attr(‘id’,’reply’); $(‘#reply’).attr(‘alt’,$(this).attr(‘alt’)); $(‘#reply’).attr(‘altp’,$(this).attr(‘altp’)); $(‘#del’).removeClass(‘del’); $(this).parent().parent().after($(‘#comment_box’)); }); $(‘#del’).click(function(){ //alert($(this).attr(‘alt’)); $(‘#comment_box .publish’).html(‘发表评论:’); $(‘#comment_box button’).text(‘发表’); $(‘#reply’).attr(‘id’,’submit’); $(‘#submit’).attr(‘alt’,”); $(‘#submit’).attr(‘altp’,”); $(‘#del’).addClass(‘del’); $(‘#comment_main’).prepend($(‘#comment_box’)); }); $(document).on(‘click’, ‘.confirm’, function(e){ var $say = ”; if($(this).attr(‘say’) != 0){ $say = ‘确定要删除吗?’; }else{ $say = ‘执行此操作会把以下所有的回复都删除,确定要执行吗?’; } if(confirm($say)){ $.get($(this).attr(‘alt’),function($data){ if($data == ‘yes’){ toast.success(‘删除成功’, ‘温馨提示’); setTimeout(function () { location.reload(); }, 1500); } else if($data == ‘no’) { minfo(‘操作失败’,’错误提示’); e.stopPropagation(); } }); }else{ return false; } }); // 点击赞同操作 $(document).on(‘click’, ‘.before_endorse’, function(){ var that = this; $(that).removeClass(‘before_endorse’); $.get(‘/post/endorse/id/’ + $(this).attr(‘data-id’), function(data){ if(data.status){ $(that).html(‘已赞’); $(that).prev().html(‘(’ + data.info + ‘)’); } }) }) // 统计相关文章点击量 $(‘body’).on(‘click’, ‘.post_relevant ul li’, function(){$.ajax({url: ‘/index/recordRequestNum’,async: false})}) }) https://www.iyiou.com/p/102142.html



