Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
e150c713e1d881f643575e5fcc52b9c294ff76e6
1 parent
0436cc89
lazyload new
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
static/js/product/list.js
static/js/product/list.js
View file @
e150c71
...
...
@@ -173,6 +173,7 @@ function search(opt) {
data
:
setting
,
success
:
function
(
data
)
{
var
noResult
=
'<p class="no-result">未找到相关搜索结果</p>'
,
num
,
$container
;
switch
(
navType
)
{
...
...
@@ -196,11 +197,15 @@ function search(opt) {
}
else
{
if
(
nav
.
reload
)
{
$container
.
html
(
data
);
lazyLoad
(
$container
.
find
(
'.lazy'
));
}
else
{
num
=
$container
.
find
(
'.good-info'
).
length
;
$container
.
append
(
data
);
//lazy good-infos who append in
lazyLoad
(
$container
.
find
(
'.good-info:gt('
+
(
num
-
1
)
+
') .lazy'
));
}
lazyLoad
(
$container
.
find
(
'.lazy'
));
}
nav
.
reload
=
false
;
...
...
Please
register
or
login
to post a comment