$(function(){idx.init(idx.pager.pageNo);idx.ZhuboChat();$("#btnEnterGB").click(function(){idx.chatSay()});$("#rerush").click(function(){idx.ZhuboChat()});$("#gameover").click(function(){idx.exitVideo()});setInterval("$('#rerush').click()",5e3)});var idx={pager:{pageNo:1,pageCount:1},init:function(n){$("#ShowList").html('
<\/div>');var t={IsPrivate:!1,SWV:0,PageNo:n,PageSize:15};HLYApp.getSayMsg(t,idx.showData)},paging:function(){idx.pager.pageCount==0&&$(".inc_pg").hide();$(".inc_pg").incPager({showGoto:"true",showEnd:"false",thisPage:"false",pagenumber:idx.pager.pageNo,pagecount:idx.pager.pageCount,buttonClickCallback:function(n){idx.init(n);HLYApp.ScrollTo($("#ShowList"),100)}})},showData:function(n){var t=[];idx.pager.pageNo=parseInt(n.Data.PageNo)+1;idx.pager.pageCount=n.Data.PageCount;$.each(n.Data.Entity,function(){var r="",f="",n=this.SayInfo.MsgContent==null?"":this.SayInfo.MsgContent,e,u,h,c,l,v;if(this.SayPics!=null&&this.SayPics.length>0){for(e='
',u=0;u点击查看大图<\/a>';e+="<\/div>";n=n+e}var i=this.FromUser.UserName,o="",a="s_"+this.SayInfo.ID,s=this.FromUser.Age;s=s<18?"未知":s+"岁";h=this.FromUser.BirthAddr;h==""&&(h="未知");r+='';r+='';r+="<\/a>";f+=''+i+"<\/a>"+this.FromUser.Sex+"<\/span>"+s+"<\/span>"+this.FromUser.Height+"公分<\/span>"+this.FromUser.Edu+"<\/span>"+this.FromUser.MLevel+"<\/span>户籍地:"+h+"<\/span>";this.ToUser!=null&&this.SayInfo.ToID!=0&&(c='查看来源>><\/a>',this.SayInfo.ShowType==17&&(c=""),n='
对 '+this.ToUser.UserName+"<\/a> 说:<\/div>
"+n+"  "+c+"<\/div>");this.SayInfo.ShowType==4&&(n='
送给你一个礼物:<\/div>'+this.SayInfo.MsgContent);this.SayInfo.ShowType==5&&(n="照片评论:"+this.SayInfo.MsgContent);this.SayInfo.ShowType==6?(r='',f="匿名",i="匿名"):this.SayInfo.FromUT==2&&this.SayWorker!=null&&(f=this.SayWorker.WDepID==2?''+this.SayWorker.WPAddr+'<\/span>'+(this.SayWorker.WPsiID!=3&&this.SayWorker.WPsiID!=4&&this.SayWorker.WPsiID!=6?"服务主管":this.SayWorker.WPsiName)+':<\/span>'+i:''+this.SayWorker.WPsiName+':<\/span>'+i+"<\/a>手机:"+this.SayWorker.WMobile+"<\/span>QQ:"+this.FromUser.QQ+"<\/span>");l='删除<\/a>';HLYApp.curUser!=null&&(HLYApp.curUser.ID==this.SayInfo.FromID||HLYApp.curUser.MyType==2)&&(o+=this.SayInfo.ShowType==3||this.SayInfo.IsR==1?l:l+"|<\/a>");this.SayInfo.IsR==0&&this.SayInfo.ShowType!=3?(o+='",o+=" 回复<\/a>"):a="sr_"+this.SayInfo.ID;v={ID:a,VipMID:this.SayInfo.FromID,HeadPic:r,PubUInfo:f,BotNav:o,UserName:i,Mobile:this.FromUser.Mobile,QianMing:this.FromUser.QianMing,Context:n,PubTime:'
时间:'+KindDT(this.SayInfo.PubTime,"json")+"<\/div>"};t.push(v)});$("#ShowList").html("");$("#ShowList").html($("#sayt").render(t));$("#ShowList img").lazyload({effect:"fadeIn",event:"scrollstop"});HLYApp.showKindImg($(".DVContent img").not('[src*="InCommon/Scripts/KindEditor/plugins/emoticons"]').not(".sayimgnoset img"));$("#ShowList").css("height","auto");idx.paging()},delSayC:function(n,t,i){HLYApp.checkIsLogin(0,function(){HLYApp.delSayMsg({sayID:t,isR:i},function(t){t.Code=="A00004"?($(n).parents(".DVList").next(".DVLine").remove(),$(n).parents(".DVList").remove()):t.Code=="A00001"?HLYApp.showLogin(0):alert("删除出错")})})},replySay:function(n,t,i){HLYApp.checkIsLogin(0,function(){if($("#rl_dv_"+n).length>0)$("#rl_btn_q_"+n).click();else{$('[id^="rl_dv_"]').remove();var u=$(t).parents(".DVList"),r='
';r+='
回复:'+i+"<\/span><\/div>";r+='