mirror of
https://github.com/201206030/novel-plus.git
synced 2025-07-05 00:36:39 +00:00
restful api改造
This commit is contained in:
@ -119,7 +119,7 @@
|
||||
function searchComments(curr, limit) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
type: "get",
|
||||
url: "/book/listCommentByPage",
|
||||
data: {'bookId': $("#bookId").val(),'curr':curr,'limit':limit},
|
||||
dataType: "json",
|
||||
|
@ -234,7 +234,7 @@
|
||||
}
|
||||
//查询是否在书架
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
type: "get",
|
||||
url: "/user/queryIsInShelf",
|
||||
data: {'bookId':$("#bookId").val()},
|
||||
dataType: "json",
|
||||
|
@ -199,7 +199,7 @@
|
||||
var lastBookIndexId = $("#lastBookIndexId").val();
|
||||
if(lastBookIndexId){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
type: "get",
|
||||
url: "/book/queryBookIndexAbout",
|
||||
data: {'bookId': bookId, 'lastBookIndexId': lastBookIndexId},
|
||||
dataType: "json",
|
||||
@ -226,7 +226,7 @@
|
||||
<script language="javascript" type="text/javascript">
|
||||
//查询是否在书架
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
type: "get",
|
||||
url: "/user/queryIsInShelf",
|
||||
data: {'bookId': $("#bookId").val()},
|
||||
dataType: "json",
|
||||
@ -255,7 +255,7 @@
|
||||
|
||||
function loadCommentList(){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
type: "get",
|
||||
url: "/book/listCommentByPage",
|
||||
data: {'bookId': $("#bookId").val()},
|
||||
dataType: "json",
|
||||
@ -335,7 +335,7 @@
|
||||
var bookCatId = $("#bookCatId").val();
|
||||
//查询同类推荐
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
type: "get",
|
||||
url: "/book/listRecBookByCatId",
|
||||
data: {'catId': bookCatId},
|
||||
dataType: "json",
|
||||
|
@ -88,7 +88,7 @@
|
||||
|
||||
function listRank(rankType){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
type: "get",
|
||||
url: "/book/listRank",
|
||||
data: {'type':rankType,'limit':30},
|
||||
dataType: "json",
|
||||
|
@ -163,7 +163,7 @@
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
type: "get",
|
||||
url: "/book/searchByPage",
|
||||
data: searchData,
|
||||
dataType: "json",
|
||||
@ -227,7 +227,7 @@
|
||||
|
||||
function listBookCategory(c) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
type: "get",
|
||||
url: "/book/listBookCategory",
|
||||
data: {},
|
||||
dataType: "json",
|
||||
|
Reference in New Issue
Block a user