Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.portalStaticPage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8a20cdb5
authored
2021-02-01 16:44:14 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻动态
1 parent
4dc2fd50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
26 deletions
staticJs/xwdt.js
staticJs/xwdt.js
View file @
8a20cdb
...
...
@@ -52,7 +52,7 @@ function HotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
if
(
i
==
3
)
return
;
li
=
'<li class="tj"><a href="
./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'
" target="_blank">'
;
li
=
'<li class="tj"><a href="
/staticViews/news/'
+
result
.
data
[
i
].
id
+
'.html
" target="_blank">'
;
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
preViewUrl
+
'">'
;
}
...
...
@@ -79,7 +79,7 @@ function PolicyHotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li class="zcfg">'
li
+=
'<a href="
./xyzcxq.html?id='
+
result
.
data
[
i
].
id
+
'
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
li
+=
'<a href="
/staticViews/policy/'
+
result
.
data
[
i
].
id
+
'.html
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
li
+=
'<div class="zcfg-top">'
+
result
.
data
[
i
].
headline
+
'</div>'
li
+=
'<p class="zcfg-body">'
+
result
.
data
[
i
].
summary
+
'</p>'
li
+=
'<div class="zcfg-bottom">'
+
result
.
data
[
i
].
deadtime
+
'</div>'
...
...
@@ -92,30 +92,6 @@ function PolicyHotArticle() {
})
}
// layui.use('laypage', function () {
// let laypage = layui.laypage;
// laypage.render({
// elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
// , count: 100 //数据总数,从服务端得到
// , limit: 5
// , prev: '<'
// , next: '>'
// , theme: '#0091FF'
// ,first: '首页'
// ,last: '尾页'
// , jump: function (obj, first) {
// if (!first) {
// LoadNewsData(obj.curr);
// }
// }
// });
// if(data.total ==0) {
// $('#page').hide();
// }else {
// $('#page').show();
// }
// })
var
data
=
{
//数据
"list"
:
[],
total
:
0
...
...
Please
register
or
sign in
to post a comment