mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-26 17:20:52 +00:00
perf(index.html): orange模版更新
This commit is contained in:
parent
9b3ba1d8c1
commit
b5df86d5c7
@ -45,6 +45,8 @@
|
|||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<dl class="hot_notice" id="indexNews">
|
<dl class="hot_notice" id="indexNews">
|
||||||
|
<dd style="text-align:left;" th:each="news : ${newsList}"><span th:text="'['+${news.catName}+']'"></span><a th:href="'/about/newsInfo-'+${news.id}+'.html'" th:utext="${news.title}"></a>
|
||||||
|
</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
@ -230,33 +232,6 @@
|
|||||||
|
|
||||||
lazyload();
|
lazyload();
|
||||||
$(function () {
|
$(function () {
|
||||||
//首页新闻查询
|
|
||||||
$.ajax({
|
|
||||||
type: "get",
|
|
||||||
url: "/news/listIndexNews",
|
|
||||||
data: {},
|
|
||||||
dataType: "json",
|
|
||||||
success: function (data) {
|
|
||||||
if (data.code == 200) {
|
|
||||||
var indexNewsList = data.data;
|
|
||||||
var indexNewsHtml = "";
|
|
||||||
for (var i = 0; i < indexNewsList.length; i++) {
|
|
||||||
var indexNews = indexNewsList[i];
|
|
||||||
indexNewsHtml += ("<dd style=\"text-align:left;\"><span>[" + indexNews.catName + "]</span><a\n" +
|
|
||||||
" href=\"/about/newsInfo-" + indexNews.id + ".html\">" + indexNews.title + "</a>\n" +
|
|
||||||
" </dd>");
|
|
||||||
}
|
|
||||||
$("#indexNews").html(indexNewsHtml);
|
|
||||||
} else {
|
|
||||||
layer.alert(data.msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
error: function () {
|
|
||||||
layer.alert('网络异常');
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
//点击榜单数据查询
|
//点击榜单数据查询
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user