+
小说精品屋作家管理
@@ -37,7 +38,9 @@
@@ -62,7 +65,6 @@
-
@@ -120,24 +122,24 @@
$.ajax({
type: "get",
url: "/author/listIncomeMonthByPage",
- data: {'curr':curr,'limit':limit},
+ data: {'curr': curr, 'limit': limit},
dataType: "json",
success: function (data) {
if (data.code == 200) {
var bookList = data.data.list;
if (bookList.length > 0) {
var bookListHtml = "";
- for(var i=0;i\n" +
+ bookListHtml += (" \n" +
" \n" +
- " "+book.incomeMonth+" \n" +
+ " " + book.incomeMonth + "\n" +
" "
- +book.preTaxIncome/100+" \n" +
+ + book.preTaxIncome / 100 + "\n" +
" \n" +
- " "+book.afterTaxIncome/100+"\n" +
+ " " + book.afterTaxIncome / 100 + "\n" +
" \n" +
- " "+(book.payStatus == 1 ? '已支付' : '待支付')+
+ " " + (book.payStatus == 1 ? '已支付' : '待支付') +
" \n" +
" ");
@@ -176,9 +178,9 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
- }else {
+ } else {
layer.alert(data.msg);
}
@@ -191,12 +193,12 @@
}
- function updateBookStatus(bookId,status) {
+ function updateBookStatus(bookId, status) {
$.ajax({
type: "POST",
url: "/author/updateBookStatus",
- data: {'bookId':bookId,'status':status==0?1:0},
+ data: {'bookId': bookId, 'status': status == 0 ? 1 : 0},
dataType: "json",
success: function (data) {
if (data.code == 200) {
@@ -206,9 +208,9 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
- }else {
+ } else {
layer.alert(data.msg);
}
@@ -219,9 +221,6 @@
})
-
-
-
}
diff --git a/novel-front/src/main/resources/templates/author/author_income_detail.html b/novel-front/src/main/resources/templates/author/author_income_detail.html
index 9232f02..c33c497 100644
--- a/novel-front/src/main/resources/templates/author/author_income_detail.html
+++ b/novel-front/src/main/resources/templates/author/author_income_detail.html
@@ -1,5 +1,5 @@
-
-
+
@@ -7,14 +7,15 @@
作家管理系统-小说精品屋
-
+
-
+
小说精品屋作家管理
@@ -37,7 +38,9 @@
@@ -61,7 +64,6 @@
-
@@ -117,9 +119,9 @@
function search(curr, limit) {
- var data = {'curr':curr,'limit':limit};
+ var data = {'curr': curr, 'limit': limit};
- if(bookId){
+ if (bookId) {
data.bookId = bookId;
}
@@ -133,17 +135,17 @@
var bookList = data.data.list;
if (bookList.length > 0) {
var bookListHtml = "";
- for(var i=0;i\n" +
+ bookListHtml += (" \n" +
" \n" +
- " "+book.incomeDate+" \n" +
+ " " + book.incomeDate + "\n" +
" "
- +book.incomeAccount+" \n" +
+ + book.incomeAccount + "\n" +
" \n" +
- " "+book.incomeCount+"\n" +
+ " " + book.incomeCount + "\n" +
" \n" +
- " "+book.incomeNumber+
+ " " + book.incomeNumber +
" \n" +
" ");
@@ -182,9 +184,9 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
- }else {
+ } else {
layer.alert(data.msg);
}
@@ -197,12 +199,12 @@
}
- function updateBookStatus(bookId,status) {
+ function updateBookStatus(bookId, status) {
$.ajax({
type: "POST",
url: "/author/updateBookStatus",
- data: {'bookId':bookId,'status':status==0?1:0},
+ data: {'bookId': bookId, 'status': status == 0 ? 1 : 0},
dataType: "json",
success: function (data) {
if (data.code == 200) {
@@ -212,9 +214,9 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
- }else {
+ } else {
layer.alert(data.msg);
}
@@ -225,9 +227,6 @@
})
-
-
-
}
diff --git a/novel-front/src/main/resources/templates/author/index.html b/novel-front/src/main/resources/templates/author/index.html
index a8638ff..b843bab 100644
--- a/novel-front/src/main/resources/templates/author/index.html
+++ b/novel-front/src/main/resources/templates/author/index.html
@@ -231,7 +231,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@@ -261,7 +261,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/novel-front/src/main/resources/templates/author/index_list.html b/novel-front/src/main/resources/templates/author/index_list.html
index 0f94af4..dd1e94f 100644
--- a/novel-front/src/main/resources/templates/author/index_list.html
+++ b/novel-front/src/main/resources/templates/author/index_list.html
@@ -213,7 +213,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
@@ -300,7 +300,7 @@
layer.close(index);
$.ajax({
type: "delete",
- url: "/author/deleteIndex/"+indexId,
+ url: "/author/deleteIndex/" + indexId,
data: {},
dataType: "json",
success: function (data) {
@@ -311,7 +311,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
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 ea960d8..8a6f8fa 100644
--- a/novel-front/src/main/resources/templates/book/book_content.html
+++ b/novel-front/src/main/resources/templates/book/book_content.html
@@ -380,7 +380,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/novel-front/src/main/resources/templates/mobile/book/book_content.html b/novel-front/src/main/resources/templates/mobile/book/book_content.html
index 59c91da..4c7658d 100644
--- a/novel-front/src/main/resources/templates/mobile/book/book_content.html
+++ b/novel-front/src/main/resources/templates/mobile/book/book_content.html
@@ -372,7 +372,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
diff --git a/novel-front/src/main/resources/templates/mobile/book/book_detail.html b/novel-front/src/main/resources/templates/mobile/book/book_detail.html
index f45ad38..aff86f0 100644
--- a/novel-front/src/main/resources/templates/mobile/book/book_detail.html
+++ b/novel-front/src/main/resources/templates/mobile/book/book_detail.html
@@ -274,7 +274,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/novel-front/src/main/resources/templates/mobile/pay/index.html b/novel-front/src/main/resources/templates/mobile/pay/index.html
index 362856b..c954f4e 100644
--- a/novel-front/src/main/resources/templates/mobile/pay/index.html
+++ b/novel-front/src/main/resources/templates/mobile/pay/index.html
@@ -190,7 +190,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/novel-front/src/main/resources/templates/mobile/user/userinfo.html b/novel-front/src/main/resources/templates/mobile/user/userinfo.html
index d471af5..acfa6e1 100644
--- a/novel-front/src/main/resources/templates/mobile/user/userinfo.html
+++ b/novel-front/src/main/resources/templates/mobile/user/userinfo.html
@@ -244,7 +244,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/novel-front/src/main/resources/templates/pay/index.html b/novel-front/src/main/resources/templates/pay/index.html
index 7c9fa03..eed5880 100644
--- a/novel-front/src/main/resources/templates/pay/index.html
+++ b/novel-front/src/main/resources/templates/pay/index.html
@@ -1,6 +1,5 @@
-
-
-
+
@@ -20,39 +19,51 @@
-
+
@@ -80,7 +91,6 @@
diff --git a/novel-front/src/main/resources/templates/user/comment.html b/novel-front/src/main/resources/templates/user/comment.html
index 1c080cd..449e5f5 100644
--- a/novel-front/src/main/resources/templates/user/comment.html
+++ b/novel-front/src/main/resources/templates/user/comment.html
@@ -1,4 +1,5 @@
-
+
@@ -54,24 +55,24 @@
$.ajax({
type: "get",
url: "/user/listCommentByPage",
- data: {'curr':curr,'limit':limit},
+ data: {'curr': curr, 'limit': limit},
dataType: "json",
success: function (data) {
if (data.code == 200) {
var commentList = data.data.list;
if (commentList.length > 0) {
- $("#bookCommentTotal").html("("+data.data.total+"条)");
+ $("#bookCommentTotal").html("(" + data.data.total + "条)");
var commentListHtml = "";
for (var i = 0; i < commentList.length; i++) {
var comment = commentList[i];
commentListHtml += ("
-
-
-
+
+
+
@@ -29,7 +31,9 @@
- 充值账号:余额:0屋币
+ 充值账号:余额:0屋币
+
选择充值方式
-
-
选择充值金额
- 10元1000屋币
- 30元3000屋币 -
- 50元5000屋币 -
- 100元10000屋币 -
- 200元20000屋币 -
- 500元50000屋币 +
- 50元5000屋币 + +
- 100元10000屋币 + +
- 200元20000屋币 + +
- 500元50000屋币 +
- 20美元10000屋币 -
- 50美元25000屋币 -
- 100美元50000屋币 +
- 50美元25000屋币 + +
- 100美元50000屋币 +
@@ -68,7 +79,7 @@
@@ -56,7 +60,6 @@
-
@@ -82,31 +85,31 @@
$.ajax({
type: "get",
url: "/user/listBookShelfByPage",
- data: {'curr':curr,'limit':limit},
+ data: {'curr': curr, 'limit': limit},
dataType: "json",
success: function (data) {
if (data.code == 200) {
var bookShelfList = data.data.list;
if (bookShelfList.length > 0) {
var bookShelfListHtml = "";
- for(var i=0;i\n" +
+ bookShelfListHtml += (" \n" +
" \n" +
- " ["+book.catName+"]\n" +
+ " [" + book.catName + "]\n" +
" \n" +
" \n" +
- " \n" +
- " "+book.bookName+"\n" +
+ " \n" +
+ " " + book.bookName + "\n" +
" \n" +
" \n" +
- ""+book.lastIndexName+""+
+ "" + book.lastIndexName + "" +
" \n" +
" \n" +
- " "+book.lastIndexUpdateTime+"\n" +
+ " " + book.lastIndexUpdateTime + "\n" +
" \n" +
" \n" +
- "继续阅读"+
+ "继续阅读" +
" \n" +
" ");
}
@@ -144,9 +147,9 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
- }else {
+ } else {
layer.alert(data.msg);
}
diff --git a/novel-front/src/main/resources/templates/user/feedback.html b/novel-front/src/main/resources/templates/user/feedback.html
index f6134c0..c326990 100644
--- a/novel-front/src/main/resources/templates/user/feedback.html
+++ b/novel-front/src/main/resources/templates/user/feedback.html
@@ -74,7 +74,7 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
} else {
layer.alert(data.msg);
diff --git a/novel-front/src/main/resources/templates/user/feedback_list.html b/novel-front/src/main/resources/templates/user/feedback_list.html
index d61710d..193564d 100644
--- a/novel-front/src/main/resources/templates/user/feedback_list.html
+++ b/novel-front/src/main/resources/templates/user/feedback_list.html
@@ -1,6 +1,5 @@
-
-
-
+
@@ -34,8 +33,6 @@
-
-
@@ -61,7 +58,7 @@
$.ajax({
type: "get",
url: "/user/listUserFeedBackByPage",
- data: {'curr':curr,'limit':limit},
+ data: {'curr': curr, 'limit': limit},
dataType: "json",
success: function (data) {
if (data.code == 200) {
@@ -71,8 +68,8 @@
for (var i = 0; i < feedbackList.length; i++) {
var feedback = feedbackList[i];
feedbackListHtml += (" ");
}
$("#feedbackList").html(feedbackListHtml);
@@ -109,9 +106,9 @@
} else if (data.code == 1001) {
//未登录
- location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
+ location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);
- }else {
+ } else {
layer.alert(data.msg);
}
diff --git a/novel-front/src/main/resources/templates/user/read_history.html b/novel-front/src/main/resources/templates/user/read_history.html
index ba91b3e..a0b063a 100644
--- a/novel-front/src/main/resources/templates/user/read_history.html
+++ b/novel-front/src/main/resources/templates/user/read_history.html
@@ -1,4 +1,5 @@
-
+
@@ -13,7 +14,9 @@
@@ -69,31 +72,31 @@
$.ajax({
type: "get",
url: "/user/listReadHistoryByPage",
- data: {'curr':curr,'limit':limit},
+ data: {'curr': curr, 'limit': limit},
dataType: "json",
success: function (data) {
if (data.code == 200) {
var bookHistoryList = data.data.list;
if (bookHistoryList.length > 0) {
var bookHistoryListHtml = "";
- for(var i=0;i
- \n" +
- "
- "+feedback.createTime+" \n" + - "
- "+feedback.content+" \n" + + "
- " + feedback.createTime + " \n" + + "
- " + feedback.content + " \n" + "
\n" + - " ["+book.catName+"]\n" + + " [" + book.catName + "]\n" + " | \n" + "\n" + - " \n" + - " "+book.bookName+"\n" + + " \n" + + " " + book.bookName + "\n" + " | \n" + "\n" + - ""+book.lastIndexName+""+ + "" + book.lastIndexName + "" + " | \n" + "\n" + - " "+book.lastIndexUpdateTime+"\n" + + " " + book.lastIndexUpdateTime + "\n" + " | \n" + "\n" + - "继续阅读"+ + "继续阅读" + " | \n" + "
\n" + - " [" + book.catName + "]\n" + + " [" + book.catName + "]\n" + " | \n" + "\n" + " \n" + |
\t\t\t- "+(comment.createUserName.substr(0, 4) + "****" + comment.createUserName.substr(comment.createUserName.length - 3, 3))+"
- " +
- comment.commentContent+
+ "
\t\t\t- " + (comment.createUserName.substr(0, 4) + "****" + comment.createUserName.substr(comment.createUserName.length - 3, 3)) + "
- " +
+ comment.commentContent +
"
- " +
- ""+comment.createTime+"" +
+ "" + comment.createTime + "" +
"赞(0)" +
"
\t\t
\t