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
273c8980
authored
2020-12-29 15:29:51 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻
1 parent
baf6d5b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
staticJs/xwdt.js
staticJs/xwdt.js
View file @
273c898
...
...
@@ -21,9 +21,11 @@ function LoadNewsData(currentPage) {
dataType
:
"json"
,
//数据,这里使用的是Json格式进行传输
success
:
function
(
result
)
{
data
.
total
=
result
.
data
.
total
;
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
data
.
total
=
result
.
data
.
total
;
data
.
list
=
result
.
data
.
records
;
}
else
{
data
.
total
=
0
;
}
layui
.
use
(
'laytpl'
,
function
()
{
laytpl
=
layui
.
laytpl
;
...
...
@@ -103,8 +105,11 @@ layui.use('laypage', function () {
}
}
});
if
(
data
.
total
==
0
)
{
$
(
'#page'
).
hide
();
}
})
var
data
=
{
//数据
"list"
:
[],
total
:
undefined
total
:
0
};
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment