Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-ssr-mobile
Project
Project
Details
Activity
Releases
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
lixy
vue-ssr-mobile
Commits
59a254c5
Commit
59a254c5
authored
Sep 07, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
列表加载
parent
acef5b64
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
16 deletions
+9
-16
activity.vue
pages/activity.vue
+1
-1
campsite.vue
pages/campsite.vue
+1
-2
index.vue
pages/index.vue
+4
-10
news.vue
pages/news.vue
+1
-1
tour.vue
pages/tour.vue
+1
-1
vehicle.vue
pages/vehicle.vue
+1
-1
No files found.
pages/activity.vue
View file @
59a254c5
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
if
(
scrollObj
){
if
(
scrollObj
){
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
//滚动条到底部的条件
//滚动条到底部的条件
if
(
document
.
documentElement
.
scrollTop
+
document
.
documentElement
.
clientHeight
>=
document
.
body
.
scrollHeight
)
{
if
(
this
.
totalCount
>
(
this
.
listQuery
.
page
-
1
)
*
this
.
listQuery
.
limit
)
{
if
(
this
.
touchend
)
{
if
(
this
.
touchend
)
{
return
;
return
;
}
}
...
...
pages/campsite.vue
View file @
59a254c5
...
@@ -134,8 +134,7 @@
...
@@ -134,8 +134,7 @@
if
(
scrollObj
)
{
if
(
scrollObj
)
{
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
//滚动条到底部的条件
//滚动条到底部的条件
console
.
log
(
scrollHeight
-
scrollTop
);
if
(
this
.
totalCount
>
(
this
.
listQuery
.
pageNo
-
1
)
*
this
.
listQuery
.
pageSize
)
{
if
(
document
.
documentElement
.
scrollTop
+
document
.
documentElement
.
clientHeight
>=
document
.
body
.
scrollHeight
-
100
)
{
if
(
this
.
touchend
)
{
if
(
this
.
touchend
)
{
return
;
return
;
}
}
...
...
pages/index.vue
View file @
59a254c5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
pages/news.vue
View file @
59a254c5
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
if
(
scrollObj
){
if
(
scrollObj
){
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
//滚动条到底部的条件
//滚动条到底部的条件
if
(
document
.
documentElement
.
scrollTop
+
document
.
documentElement
.
clientHeight
>=
document
.
body
.
scrollHeight
-
100
)
{
if
(
this
.
totalCount
>
(
this
.
listQuery
.
page
-
1
)
*
this
.
listQuery
.
limit
)
{
if
(
this
.
touchend
)
{
if
(
this
.
touchend
)
{
return
;
return
;
}
}
...
...
pages/tour.vue
View file @
59a254c5
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
if
(
scrollObj
)
{
if
(
scrollObj
)
{
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
//滚动条到底部的条件
//滚动条到底部的条件
if
(
document
.
documentElement
.
scrollTop
+
document
.
documentElement
.
clientHeight
>=
document
.
body
.
scrollHeight
-
100
)
{
if
(
this
.
totalCount
>
(
this
.
listQuery
.
page
-
1
)
*
this
.
listQuery
.
limit
)
{
if
(
this
.
touchend
)
{
if
(
this
.
touchend
)
{
return
;
return
;
}
}
...
...
pages/vehicle.vue
View file @
59a254c5
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
if
(
scrollObj
){
if
(
scrollObj
){
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
let
scrollHeight
=
scrollObj
.
scrollHeight
;
// 滚动条的总高度
//滚动条到底部的条件
//滚动条到底部的条件
if
(
document
.
documentElement
.
scrollTop
+
document
.
documentElement
.
clientHeight
>=
document
.
body
.
scrollHeight
-
100
)
{
if
(
this
.
totalCount
>
(
this
.
listQuery
.
page
-
1
)
*
this
.
listQuery
.
limit
)
{
if
(
this
.
touchend
)
{
if
(
this
.
touchend
)
{
return
;
return
;
}
}
...
...
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