Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
walk_daka_wx
Overview
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
穆启卓
walk_daka_wx
Commits
3ef3573e
Commit
3ef3573e
authored
May 08, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9f710a97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.js
pages/index/index.js
+2
-2
No files found.
pages/index/index.js
View file @
3ef3573e
...
...
@@ -263,7 +263,7 @@ Page({
success
:(
res
)
=>
{
this
.
data
.
isFirstReq
=
false
;
const
resData
=
res
.
data
.
data
;
// 数据处理,结合
两个数组
判断是否显示打卡角标和状态
// 数据处理,结合
!!两个数组!!
判断是否显示打卡角标和状态
const
joinDate
=
[];
resData
.
records_info
.
forEach
(
item
=>
{
joinDate
.
push
(
item
.
period
);
...
...
@@ -279,7 +279,7 @@ Page({
item
.
status
=
0
;
// 未参与打卡
}
});
wx
.
setStorageSync
(
'getStepLoading'
,
Date
.
now
());
//
wx.setStorageSync('getStepLoading', Date.now());
// 避免没有目标步数,不好比较是否达标
const
setData
=
{
targetSteps
:
resData
.
total_step
,
...
...
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