mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-26 17:20:52 +00:00
模版更新
This commit is contained in:
parent
1cffbae495
commit
4939bcf418
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,4 +3,5 @@
|
|||||||
**/cachedata
|
**/cachedata
|
||||||
**/target
|
**/target
|
||||||
**/*.iml
|
**/*.iml
|
||||||
|
**/.DS_Store
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
<div th:replace="common/top :: top('')">
|
<div th:replace="common/top :: top('')">
|
||||||
</div>
|
</div>
|
||||||
|
<input type="hidden" id="newsId" th:value="${news.id}"/>
|
||||||
<div class="main box_center cf">
|
<div class="main box_center cf">
|
||||||
<div class="newsMain cf">
|
<div class="newsMain cf">
|
||||||
<div class="nav_sub">
|
<div class="nav_sub">
|
||||||
@ -18,7 +19,8 @@
|
|||||||
<div class="channelWrap channelNews cf">
|
<div class="channelWrap channelNews cf">
|
||||||
<div class="news_title">
|
<div class="news_title">
|
||||||
<h2 th:utext="${news.title}"></h2>
|
<h2 th:utext="${news.title}"></h2>
|
||||||
<p class="from" th:text="'来源:'+${news.sourceName}"> <span class="time" th:text="${#dates.format(news.createTime, 'yy-MM-dd')}"></span></p>
|
<!--while [[...]] corresponds to th:text (i.e. result will be HTML-escaped), [(...)] corresponds to th:utext-->
|
||||||
|
<p class="from">来源:[[${news.sourceName}]] <span class="time" th:text="'时间:'+${#dates.format(news.createTime, 'yy-MM-dd')}"></span> <span class="time" th:text="'阅读量:'+${news.readCount}"></span></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="news_info" th:utext="${news.content}">
|
<div class="news_info" th:utext="${news.content}">
|
||||||
</div>
|
</div>
|
||||||
@ -32,4 +34,8 @@
|
|||||||
</body>
|
</body>
|
||||||
<div th:replace="common/js :: js"></div>
|
<div th:replace="common/js :: js"></div>
|
||||||
<script src="/javascript/bookdetail.js" type="text/javascript"></script>
|
<script src="/javascript/bookdetail.js" type="text/javascript"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$.post("/news/addReadCount", {"newsId": $("#newsId").val()}, function () {
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
.news_title h2 { font-size: 20px; }
|
.news_title h2 { font-size: 20px; }
|
||||||
.news_title .from { color: #999; display: block; margin: 20px 0; }
|
.news_title .from { color: #999; display: block; margin: 20px 0; }
|
||||||
.news_title .time { margin-left: 20px }
|
.news_title .time { margin-left: 20px }
|
||||||
|
.news_title .click { margin-left: 40px }
|
||||||
.news_info { padding: 0 60px; line-height: 28px; font-size: 14px; min-height:400px }
|
.news_info { padding: 0 60px; line-height: 28px; font-size: 14px; min-height:400px }
|
||||||
.news_info p { margin-bottom: 30px }
|
.news_info p { margin-bottom: 30px }
|
||||||
.aboutBox h2 { font-size:16px; margin-bottom:15px }
|
.aboutBox h2 { font-size:16px; margin-bottom:15px }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user