Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saasio
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
reyun
saasio
Commits
6e7a396f
Commit
6e7a396f
authored
7 years ago
by
xujia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
追加点击更多
parent
a01f718e
master
…
20180326_events4track
30921_bugfix
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
app.js
src/main/websrc/js/manage/app.js
+5
-2
app.html
src/main/websrc/template/manage/app.html
+1
-1
No files found.
src/main/websrc/js/manage/app.js
View file @
6e7a396f
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
contentH
=
$
(
_this
).
get
(
0
).
scrollHeight
,
//内容高度
contentH
=
$
(
_this
).
get
(
0
).
scrollHeight
,
//内容高度
scrollTop
=
$
(
_this
).
scrollTop
();
//滚动高度
scrollTop
=
$
(
_this
).
scrollTop
();
//滚动高度
if
(
scrollTop
>=
contentH
-
viewH
){
//到达底部100px时,加载新内容
if
(
scrollTop
>=
contentH
-
viewH
){
//到达底部100px时,加载新内容
$scope
.
limitCount
+=
9
;
$scope
.
getMore
()
;
}
}
}
}
},
10
);
},
10
);
...
@@ -92,10 +92,13 @@
...
@@ -92,10 +92,13 @@
if
(
panelH
.
get
(
0
).
scrollHeight
>
panelH
.
height
()
||
event
.
originalEvent
.
deltaY
<=
0
)
return
;
if
(
panelH
.
get
(
0
).
scrollHeight
>
panelH
.
height
()
||
event
.
originalEvent
.
deltaY
<=
0
)
return
;
if
(
$scope
.
isShow
()
&&
$scope
.
filterResult
.
length
>
0
){
if
(
$scope
.
isShow
()
&&
$scope
.
filterResult
.
length
>
0
){
$timeout
(
function
()
{
$timeout
(
function
()
{
$scope
.
limitCount
+=
9
;
$scope
.
getMore
()
;
},
10
);
},
10
);
}
}
});
});
$scope
.
getMore
=
function
(){
$scope
.
limitCount
+=
9
;
}
$scope
.
gopage
=
function
(
id
,
flag
){
$scope
.
gopage
=
function
(
id
,
flag
){
if
(
flag
){
if
(
flag
){
isLog
=
true
;
isLog
=
true
;
...
...
This diff is collapsed.
Click to expand it.
src/main/websrc/template/manage/app.html
View file @
6e7a396f
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"more"
ng-
show=
"isShow() && filterResult.length>0"
><span>
滑动
加载更多(共{{resultList.length}}个产品)
</span></div>
<div
class=
"more"
ng-
click=
"getMore()"
ng-show=
"isShow() && filterResult.length>0"
><span>
滑动/点击
加载更多(共{{resultList.length}}个产品)
</span></div>
<div
class=
"noData"
ng-if=
"resultList.length==0"
>
<div
class=
"noData"
ng-if=
"resultList.length==0"
>
<span></span>
<span></span>
<div>
暂无产品
</div>
<div>
暂无产品
</div>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment