Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mini_own
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
geruidan
mini_own
Commits
bbf42dd0
Commit
bbf42dd0
authored
Apr 16, 2023
by
geruidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
步数调整
parent
8b842f81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
pages/h5/walkingRecord.vue
pages/h5/walkingRecord.vue
+8
-11
No files found.
pages/h5/walkingRecord.vue
View file @
bbf42dd0
<
template
>
<
template
>
<view>
<view>
<u-sticky
bgColor=
"#fff"
>
<u-sticky
bgColor=
"#fff"
>
<u-tabs
:activeStyle=
"
{color: '#61b077'}" lineColor="#61b077" @click="clickTime" :list="tabsList"
<u-tabs
:activeStyle=
"
{color: '#61b077'}" lineColor="#61b077" @click="clickTime" :list="tabsList" :scrollable="false">
:scrollable="false">
</u-tabs>
</u-tabs>
</u-sticky>
</u-sticky>
<view
class=
"record-ul p-l-30 p-r-30"
>
<view
class=
"record-ul p-l-30 p-r-30"
>
...
@@ -10,6 +9,7 @@
...
@@ -10,6 +9,7 @@
<text>
{{
item
.
DateStr
}}
</text>
<text>
{{
item
.
DateStr
}}
</text>
<text>
{{
item
.
RunNumTotal
}}
</text>
<text>
{{
item
.
RunNumTotal
}}
</text>
</view>
</view>
<!--没有更多信息-->
<view
class=
"noMore"
>
<view
class=
"noMore"
>
<u-loadmore
v-show=
"noMore"
:marginTop=
"10"
:status=
"loadStatus"
/>
<u-loadmore
v-show=
"noMore"
:marginTop=
"10"
:status=
"loadStatus"
/>
</view>
</view>
...
@@ -56,17 +56,17 @@
...
@@ -56,17 +56,17 @@
list
()
{
list
()
{
http
(
"
walking.group
"
,
this
.
params
).
then
(
res
=>
{
http
(
"
walking.group
"
,
this
.
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
dataList
=
[...
this
.
dataList
,
...
res
.
data
.
list
];
this
.
dataList
=
[...
this
.
dataList
,
...
res
.
data
.
list
];
//list数据
let
totalCount
=
res
.
data
.
total
;
let
totalCount
=
res
.
data
.
total
;
this
.
isEmpty
=
!
this
.
dataList
.
length
;
this
.
isEmpty
=
!
this
.
dataList
.
length
;
this
.
lastPage
=
Math
.
trunc
(
totalCount
/
this
.
params
.
pageSize
)
+
1
;
this
.
lastPage
=
Math
.
trunc
(
totalCount
/
this
.
params
.
pageSize
)
+
1
;
//计算最后一页,当最后一页等于当前页,则是最后一页
if
(
this
.
lastPage
==
this
.
params
.
pageNo
)
{
if
(
this
.
lastPage
==
this
.
params
.
pageNo
)
{
this
.
loadStatus
=
"
nomore
"
;
this
.
loadStatus
=
"
nomore
"
;
this
.
noMore
=
true
;
this
.
noMore
=
true
;
}
else
{
}
else
{
this
.
loadStatus
=
"
loadmore
"
;
this
.
loadStatus
=
"
loadmore
"
;
}
}
if
(
!
res
.
data
.
list
.
length
&&
!
this
.
dataList
.
length
)
{
if
(
!
res
.
data
.
list
.
length
&&
!
this
.
dataList
.
length
)
{
//什么都没有则为空
this
.
isEmpty
=
true
;
this
.
isEmpty
=
true
;
}
}
}
else
{
}
else
{
...
@@ -77,10 +77,8 @@
...
@@ -77,10 +77,8 @@
})
})
}
}
},
},
// 触底加载更多
// 自带方法:触底加载更多
onReachBottom
()
{
onReachBottom
()
{
console
.
log
(
this
.
params
.
pageNo
)
console
.
log
(
this
.
lastPage
)
if
(
this
.
params
.
pageNo
<
this
.
lastPage
)
{
if
(
this
.
params
.
pageNo
<
this
.
lastPage
)
{
this
.
params
.
pageNo
+=
1
;
this
.
params
.
pageNo
+=
1
;
this
.
list
();
this
.
list
();
...
@@ -95,8 +93,7 @@
...
@@ -95,8 +93,7 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.record-li
{
.record-li
{
border-bottom
:
1px
solid
#ddd
;
border-bottom
:
1px
solid
#ddd
;
padding
:
15px
10px
;
padding
:
15px
10px
;
text
:last-child
{
text
:last-child
{
color
:
#61b077
;
color
:
#61b077
;
}
}
...
...
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