书轩网 > 都市小说 > 一世兵王 > 001章 最后的任务
    ")},goToAnchor:fun(){return-1!

    ==this.chapters.indexOf(this.curChapter)?

    (_scrollTo($("#c"+this.curChapter).offset().top),!

    0):!1},getLastChapter:fun(e){returnstet("read_"+e)},setLastChapter:fun(e){store.set("read_"+e,this.curChapter),e!

    =resourseId&&store.set("read_"+resourseId,this.curChapter)},juToLastChapter:fun(){vare=this.getLastChapter(bookId);e&&(this.curChapter=e,this.chapters=[],this.chapterNas={},this.$read.ht(""),this.Page(!

    0))},setBookHistory:fun(){this.bookHistory.curChapter=this.curChapter,store.set("history_"+bookId,JSON.stringify(this.bookHistory))},Page:fun(e){if(disabledClick||this.isDisableAsyurn--read.curChapter,read.setBookHistory(),!

    1;disabledClick=!0,e||this.isError||_scrollTo($("#c"+(this.curChapter-1)).offset().top),this.$read.pause=!

    0;vart=this;$.ajax({url:t.getApiUrl(),dataType:"json",success:fun(e){disabledClick=!

    1,t.$read.pause=!1;vara=$("[data-js=loading]");if(0==e.code){t.chapters.push(t.curChapter),t.$read.attr("rel",t.getApiUrl(t.curChapter+1)),isEpub||(t.chapterNas[t.curChapter]=e.body.chapterNa||"");varo="";if(a.length?

    a.before(t.getAnchor()+e.ht+e.body.pageButton+o):t.$read.append(t.getAnchor()+e.ht+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.isError&&(t.isError=!

    1,t.perloadNu2,_scrollTo($("#c"+t.curChapter).offset().top)),t.isDisableAsync&&!

    _isEty(e.body.pageButton)&&read.disableAsync(),isEpub&&jsClear(),t.perloadNu0&&--t.perloadNut.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.g));read.setBookHistory()},error:fun(){--read.curChapter,t.isError=!

    0,zy.alert("网络繁忙,请稍后重试"),disabledClick=!

    1,t.$read.pause=!1}})},isNeedFill:fun(){return$("body").offset().height+13该章节为付费章节,当前浏览器版本不支持付费阅读,请打开华为阅读继续阅读