.retval]})); _this.parents('.other_rev').find('li').show(); ipt.remove(); } }) }else{ core.tip.confirm(d.msg); } flag = true; _this.text('评论'); },'',true); } }); $('body').on('click','.bottom-loading1',function(){ $(this).text('加载中..'); page++; loadList(); }); $('body').on('click','.bottom-loading2',function(){ loadList2($(this).parent(),$(this).data('page'),$(this).data('memoid')); }); $('body').on('click','.revertmore',function(){ if($(this).attr("revertmore00")==1){ return ; } $(this).attr("revertmore00","1"); loadList2($(this).parent().parent().find('.other_rev'),0,$(this).data('id')); }); }); var page = 1; function loadList(){ core.ajaxjson('news/comment/commentlist',{page:page,perpage:2,id:thisId},function(d){ if(d.done == true){ require(['tpl'],function (tpl) { $('.bottom-loading1').remove(); if(page==1){ $(".review_list").html(tpl('revert_list',d.retval)); }else{ $(".review_list").append(tpl('revert_list',d.retval)); } }) }else{ core.tip.confirm(d.msg); } }); }; function loadList2(obj,pages,memoid){ pages++; core.ajaxjson('news/comment/commentlist',{page:pages,memoid:memoid,perpage:1,id:thisId},function(d){ if(d.done == true){ require(['tpl'],function (tpl) { $('.bottom-loading2').remove(); if(page==1){ obj.html(tpl('revertPer_list',d.retval)); }else{ obj.append(tpl('revertPer_list',d.retval)); } obj.find('li').show(); }) }else{ core.tip.confirm(d.msg); } }); };