get_comment_list(obj.curr); }, layout:['prev', 'page', 'next'], }); //监听评论提交 form.on('submit(comment_Reply_button)', function(data) { $.ajax({ url:"https://www.cndasuan.com/news/comment/post", type: 'POST', data:data.field, dataType: 'json', success: function(data){ if(data.code=='19'){ login=layer.open({ type: 2 //此处以iframe举例 ,title: '登录提醒' ,area: ['390px', '260px'] ,shadeClose:true ,shade: [0.8, '#393D49'] ,content: 'https://www.cndasuan.com/login/index/small_login/tpl/login' }); return false; }else if(data.code=='501' || data.code=='502' || data.code=='503'){ layer.msg(data.text, { time: 20000, //20s后自动关闭 btn: ['确定'] ,shadeClose:true ,shade: [0.8, '#393D49'] }); return false; }else if(data.code=='9'){ $(".comment_Reply .yzimg").click(); layer.msg(data.text, { time: 20000, //20s后自动关闭 btn: ['确定'] ,shadeClose:true ,shade: [0.8, '#393D49'] }); return false; }else{ layer.close(commentReply); comment_add=false; $('#comment_Reply_content').val(''); $('#commentReply_yzm').html(''); $(".comment_list_sort_add .yzimg").click(); $('#yz_code').val(''); template(data.id,data.reply_id,data.text.username,data.text.content,data.text.username,data.text.posttime,'1'); } } }); return false; }); }); function comment_del(id){ $.ajax({ url:"https://www.cndasuan.com/news/comment/del", type: 'POST', data:{'aid':"11372",'id':id}, dataType: 'json', success: function(data){ if(data.code=='504' || data.code=='505'){ layer.msg(data.text, { time: 20000, //20s后自动关闭 btn: ['确定'] ,shadeClose:true ,shade: [0.8, '#393D49'] }); }else if(data.code==0){ allnum=allnum-1; $('#comment_list_'+id).remove(); }else{ alert('异常错误'); } } }) } function comment_Reply(id) { $('#reply_id').html("'"); if($('#comment_yzm').length>0){ $('#commentReply_yzm').html($('#comment_yzm').html()); } commentReply=layer.open({ type: 1 ,title: '评论回复' ,area: ['540px', '300px'] ,shadeClose:false ,shade: [0.8, '#393D49'] ,content: $('.comment_Reply') ,cancel: function(index, layero){ $('#comment_Reply_content').val(''); $('#commentReply_yzm').html(''); $(".comment_list_sort_add .yzimg").click(); layer.close(index); return false; } }); }
cpu feeds block end
新闻中心More》
综合资讯More》
行情分析More》
最新价格More》
经纪人More》
企业推荐More》
'); })();