Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
weiqingting
9 years ago
Commit
eb1e1dc6b31a95c376a90d4e256b446180185818
1 parent
63e80a72
修改滚动加载插件
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
web-static/js/common/infinite-load.js
web-static/js/common/new-arrivls.js
web-static/js/common/infinite-load.js
View file @
eb1e1dc
...
...
@@ -69,7 +69,7 @@ infiniteLoad.prototype.init = function() {
function
__loadMore
()
{
if
(
p
.
isload
&&
g
.
__directionCalculation
())
{
if
(
p
.
is
run
&&
p
.
is
load
&&
g
.
__directionCalculation
())
{
p
.
isload
=
false
;
p
.
index
++
;
g
.
exect
(
'after'
,
p
);
...
...
@@ -88,7 +88,12 @@ infiniteLoad.prototype.emit = function() {
p
.
isload
=
true
;
};
infiniteLoad
.
prototype
.
stop
=
function
()
{
var
p
=
this
.
options
;
p
.
isload
=
false
;
p
.
isrun
=
false
;
};
infiniteLoad
.
prototype
.
__directionCalculation
=
function
()
{
var
p
=
this
.
options
;
...
...
web-static/js/common/new-arrivls.js
View file @
eb1e1dc
...
...
@@ -40,6 +40,7 @@ var InfiniteLoad = require('../common/infinite-load');
load
.
emit
();
}
else
{
load
.
stop
();
$load
.
html
(
'查看更多'
);
}
},
...
...
Please
register
or
login
to post a comment