书海居 m.shuhaiju.net
第81章大长腿(四)(第 1/ 页)
")},gotoanchor:function(){return1!
==this.chapters.indexof(this.curchapter)?
(_scrollto($("#c"+this.curchapter).offset().top),!
0):!1},getlastchapter:function(e){returnstore.get("read_"+e)},setlastchapter:function(e){store.set("read_"+e,this.curchapter),e!
=resourseid&&store.set("read_"+resourseid,this.curchapter)},jumptolastchapter:function(){vare=this.getlastchapter(bookid);e&&(this.curchapter=e,this.chapters=[],this.chapternames={},this.$read.html(""),this.nextpage(!
0))},setbookhistory:function(){this.bookhistory.curchapter=this.curchapter,store.set("history_"+bookid,json.stringify(this.bookhistory))},nextpage:function(e){if(disabledclick||this.isdisableasync)returnread.curchapter,read.setbookhistory(),!
1;disabledclick=!0,e||this.isneterror||_scrollto($("#c"+(this.curchapter1)).offset().top),this.$read.pause=!
0;vart=this;$.ajax({url:t.getapiurl(),datatype:"json",ess:function(e){disabledclick=!
1,t.$read.pause=!1;vara=$("[datajs=loading]");if(0==e.code){t.chapters.push(t.curchapter),t.$read.attr("rel",t.getapiurl(t.curchapter+1)),isepub||(t.chapternames[t.curchapter]=e.body.chaptername||"");varo="";if(a.length?
a.before(t.getanchor()+e.html+e.body.pagebutton+o):t.$read.append(t.getanchor()+e.html+e.body.pagebutton+o),(1==e.body.pagetype||3==e.body.pagetype)&&(t.isdisableasync=!
0),5==e.body.pagetype)returngourl(e.body.gourl),!
0;t.isneterror&&(t.isneterror=!
1,t.perloadnum=2,_scrollto($("#c"+t.curchapter).offset().top)),t.isdisableasync&&!
_isempty(e.body.pagebutton)&&read.disableasync(),isepub&&jsclear(),t.perloadnum>0&&t.perloadnum,t.isneedfill()&&t.autofill&&t.autofill()}else1==e.code?
(read.curchapter,window.scrollto(0,0),window.location.href=e.body.gourl):111999==e.code?
(read.curchapter,window.location.href=e.body.url):(read.curchapter,zy.alert(e.msg));read.setbookhistory()},error:function(){read.curchapter,t.isneterror=!
0,zy.alert("网络繁忙,请稍后重试"),disabledclick=!
1,t.$read.pause=!1}})},isneedfill:function(){return$("body").offset().height+13该章节为付费章节,当前浏览器版本不支持付费阅读,请打开华为阅读继续阅读