Skip to content

Commit

Permalink
模版更新
Browse files Browse the repository at this point in the history
  • Loading branch information
201206030 committed May 28, 2024
1 parent b0c249c commit ea5c0e8
Show file tree
Hide file tree
Showing 32 changed files with 312 additions and 311 deletions.
43 changes: 21 additions & 22 deletions templates/green/html/author/author_income.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>作家管理系统-小说精品屋</title>
<link rel="stylesheet" href="/css/base.css?v=1"/>
<link rel="stylesheet" href="/css/user.css" />
<link rel="stylesheet" href="/css/user.css"/>
</head>
</head>
<body class="">

<div class="header">
<div class="mainNav" id="mainNav">
<div class="box_center cf" style="text-align: center;height: 44px;line-height: 48px;color: #fff;font-size: 16px;">
<div class="box_center cf"
style="text-align: center;height: 44px;line-height: 48px;color: #fff;font-size: 16px;">

小说精品屋作家管理

Expand All @@ -37,7 +38,9 @@
<div class="my_r">
<div class="my_bookshelf">
<div class="title cf">
<h2 class="fl ml10"><a href="/author/author_income_detail.html">订阅明细</a></h2><i class="fl ml20 mr20 font16">|</i><h2 class="fl"><a href="/author/author_income.html" class="red">稿费汇总</a></h2>
<h2 class="fl ml10"><a href="/author/author_income_detail.html">订阅明细</a></h2><i
class="fl ml20 mr20 font16">|</i>
<h2 class="fl"><a href="/author/author_income.html" class="red">稿费汇总</a></h2>
</div>

<div id="divData" class="updateTable">
Expand All @@ -62,7 +65,6 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html">订阅明细</a>
<tbody id="bookList">



</tbody>
</table>
<div class="pageBox cf" id="shellPage">
Expand Down Expand Up @@ -120,24 +122,24 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html">订阅明细</a>
$.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<bookList.length;i++){
for (var i = 0; i < bookList.length; i++) {
var book = bookList[i];
bookListHtml+=(" <tr class=\"book_list\" >\n" +
bookListHtml += (" <tr class=\"book_list\" >\n" +
" <td class=\"goread\">\n" +
" "+book.incomeMonth+"</td>\n" +
" " + book.incomeMonth + "</td>\n" +
" <td class=\"goread\" >"
+book.preTaxIncome/100+"</td>\n" +
+ book.preTaxIncome / 100 + "</td>\n" +
" <td class=\"goread\">\n" +
" "+book.afterTaxIncome/100+"\n" +
" " + book.afterTaxIncome / 100 + "\n" +
" </td>\n" +
" <td class=\"goread\">"+(book.payStatus == 1 ? '已支付' : '待支付')+
" <td class=\"goread\">" + (book.payStatus == 1 ? '已支付' : '待支付') +
" </td>\n" +

" </tr>");
Expand Down Expand Up @@ -176,9 +178,9 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html">订阅明细</a>

} 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);
}

Expand All @@ -191,12 +193,12 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html">订阅明细</a>
}


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) {
Expand All @@ -206,9 +208,9 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html">订阅明细</a>

} 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);
}

Expand All @@ -219,9 +221,6 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html">订阅明细</a>
})





}
</script>
</html>
45 changes: 22 additions & 23 deletions templates/green/html/author/author_income_detail.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>作家管理系统-小说精品屋</title>
<link rel="stylesheet" href="/css/base.css?v=1"/>
<link rel="stylesheet" href="/css/user.css" />
<link rel="stylesheet" href="/css/user.css"/>
</head>
</head>
<body class="">

<div class="header">
<div class="mainNav" id="mainNav">
<div class="box_center cf" style="text-align: center;height: 44px;line-height: 48px;color: #fff;font-size: 16px;">
<div class="box_center cf"
style="text-align: center;height: 44px;line-height: 48px;color: #fff;font-size: 16px;">

小说精品屋作家管理

Expand All @@ -37,7 +38,9 @@
<div class="my_r">
<div class="my_bookshelf">
<div class="title cf">
<h2 class="fl ml10"><a href="/author/author_income_detail.html" class="red">订阅明细</a></h2><i class="fl ml20 mr20 font16">|</i><h2 class="fl"><a href="/author/author_income.html">稿费汇总</a></h2>
<h2 class="fl ml10"><a href="/author/author_income_detail.html" class="red">订阅明细</a></h2><i
class="fl ml20 mr20 font16">|</i>
<h2 class="fl"><a href="/author/author_income.html">稿费汇总</a></h2>
</div>

<div id="divData" class="updateTable">
Expand All @@ -61,7 +64,6 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html" class="red">订
<tbody id="bookList">



</tbody>
</table>
<div class="pageBox cf" id="shellPage">
Expand Down Expand Up @@ -117,9 +119,9 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html" class="red">订

function search(curr, limit) {

var data = {'curr':curr,'limit':limit};
var data = {'curr': curr, 'limit': limit};

if(bookId){
if (bookId) {
data.bookId = bookId;
}

Expand All @@ -133,17 +135,17 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html" class="red">订
var bookList = data.data.list;
if (bookList.length > 0) {
var bookListHtml = "";
for(var i=0;i<bookList.length;i++){
for (var i = 0; i < bookList.length; i++) {
var book = bookList[i];
bookListHtml+=(" <tr class=\"book_list\" >\n" +
bookListHtml += (" <tr class=\"book_list\" >\n" +
" <td class=\"goread\">\n" +
" "+book.incomeDate+"</td>\n" +
" " + book.incomeDate + "</td>\n" +
" <td class=\"goread\" >"
+book.incomeAccount+"</td>\n" +
+ book.incomeAccount + "</td>\n" +
" <td class=\"goread\">\n" +
" "+book.incomeCount+"\n" +
" " + book.incomeCount + "\n" +
" </td>\n" +
" <td class=\"goread\">"+book.incomeNumber+
" <td class=\"goread\">" + book.incomeNumber +
" </td>\n" +

" </tr>");
Expand Down Expand Up @@ -182,9 +184,9 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html" class="red">订

} 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);
}

Expand All @@ -197,12 +199,12 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html" class="red">订
}


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) {
Expand All @@ -212,9 +214,9 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html" class="red">订

} 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);
}

Expand All @@ -225,9 +227,6 @@ <h2 class="fl ml10"><a href="/author/author_income_detail.html" class="red">订
})





}
</script>
</html>
4 changes: 2 additions & 2 deletions templates/green/html/author/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ <h2 class="fl">小说列表</h2>

} 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);
Expand Down Expand Up @@ -261,7 +261,7 @@ <h2 class="fl">小说列表</h2>

} 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);
Expand Down
6 changes: 3 additions & 3 deletions templates/green/html/author/index_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ <h2 class="fl">章节列表</h2>

} 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);
Expand Down Expand Up @@ -300,7 +300,7 @@ <h2 class="fl">章节列表</h2>
layer.close(index);
$.ajax({
type: "delete",
url: "/author/deleteIndex/"+indexId,
url: "/author/deleteIndex/" + indexId,
data: {},
dataType: "json",
success: function (data) {
Expand All @@ -311,7 +311,7 @@ <h2 class="fl">章节列表</h2>

} 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);
Expand Down
2 changes: 1 addition & 1 deletion templates/green/html/book/book_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ <h3>设置</h3>

} 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);
Expand Down
6 changes: 3 additions & 3 deletions templates/green/html/common/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<div class="box_center cf">
<div class="copyright">
<ul>
<li class="menu"><a href="/?to=mobile">手机站</a><i class="line">|</i><a href="/">网站首页</a><i
<li class="menu"><!--<a href="/?to=mobile">手机站</a><i class="line">|</i>--><a href="/">网站首页</a><i
class="line">|</i><a href="/user/feedback.html">反馈留言</a><i class="line">|</i><a
href="/author/index.html">作家专区</a><i class="line">|</i><a
href="/mobile/fiction_house.apk">客户端</a></li>
href="/author/index.html">作家专区</a><!--<i class="line">|</i><a
href="/mobile/fiction_house.apk">客户端</a>--></li>
<li th:text="'Copyright (C) '+${application.website.domain}+' All rights reserved&nbsp;&nbsp;'+${application.website.name}+'版权所有'"></li>

</ul>
Expand Down
9 changes: 1 addition & 8 deletions templates/green/html/mobile/book/book_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@
text-align: center;
}

#footer {
padding-top: 10px;
line-height: 43px;
}


</style>
</head>
Expand Down Expand Up @@ -320,8 +315,6 @@ <h5>此章为VIP章节,需要订阅后才能继续阅读</h5>
}
})

$("#content").css("min-height", ($(window).height() - 60) + "px");


})();

Expand Down Expand Up @@ -372,7 +365,7 @@ <h5>此章为VIP章节,需要订阅后才能继续阅读</h5>

} else if (data.code == 1001) {
//未登录
location.href = '/user/login.html?originUrl=' + decodeURIComponent(location.href);
location.href = '/user/login.html?originUrl=' + encodeURIComponent(location.href);


} else {
Expand Down
4 changes: 1 addition & 3 deletions templates/green/html/mobile/book/book_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ <h2 class="layui-colla-title">

} 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);
Expand All @@ -289,8 +289,6 @@ <h2 class="layui-colla-title">
}


$("#content").css("min-height", ($(window).height() - 60) + "px");

function downloadFile() {
var fileUrl = '/book/download?bookId=' + $("#bookIdHidden").val() + '&bookName=' + $("#bookNamedHidden").val();
window.location.href = fileUrl;
Expand Down
Loading

0 comments on commit ea5c0e8

Please sign in to comment.