diff --git a/novel-front/src/main/resources/static/javascript/bookdetail.js b/novel-front/src/main/resources/static/javascript/bookdetail.js index 7f146a8..8d5f66b 100644 --- a/novel-front/src/main/resources/static/javascript/bookdetail.js +++ b/novel-front/src/main/resources/static/javascript/bookdetail.js @@ -238,17 +238,17 @@ if (preId > 0) { location.href = '/book/' + bid + '/' + preId + '.html'; } else { - location.href = '/book/chapterlist-' + bid + '.html'; + location.href = '/book/indexList-' + bid + '.html'; } } else if (e.keyCode == 39) { if (nextId > 0) { location.href = '/book/' + bid + '/' + nextId + '.html'; } else { - location.href = '/book/chapterlist-' + bid + '.html'; + location.href = '/book/indexList-' + bid + '.html'; } } }); - BookDetail.SetReadHistory(bid, cid, crank); + //BookDetail.SetReadHistory(bid, cid, crank); }, SetReadHistory: function (bid, cid, crank) { var strHistory = jQuery.cookie("wapviewhistory"); diff --git a/novel-front/src/main/resources/templates/book/book_content.html b/novel-front/src/main/resources/templates/book/book_content.html index a4559d4..bc13e82 100644 --- a/novel-front/src/main/resources/templates/book/book_content.html +++ b/novel-front/src/main/resources/templates/book/book_content.html @@ -40,6 +40,8 @@ + +
@@ -269,11 +271,12 @@ }) - var currentBId =37, usfltotal = 0, spmymoney = 0; + var bookId = $("#bookId").val(); + var indexId = $("#preContentId").val(); + var preIndexId = $("#preIndexId").val(); + var nextIndexId = $("#nextIndexId").val(); $(function () { - BookDetail.GetReadSet(37,1959973,0,1959974,1); - BookDetail.ClickChapter(37,1959973,0); - BookDetail.GetFavorites(37); + BookDetail.GetReadSet(bookId,indexId,preIndexId,nextIndexId,1); $(".ico_setup").click(function () { $(".maskBox,.setupBox").show(); @@ -318,7 +321,7 @@ if(bookIndexId != 0){ window.location.href = '/book/'+bookId+'/'+bookIndexId+".html"; }else{ - layer.alert("已经是第一章了!"); + window.location.href = '/book/indexList-' + bookId + '.html'; } } @@ -326,7 +329,7 @@ if(bookIndexId != 0){ window.location.href = '/book/'+bookId+'/'+bookIndexId+".html"; }else{ - layer.alert("已经是最新章节了!"); + window.location.href = '/book/indexList-' + bookId + '.html'; } }