Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
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
fengzhaoyu
schedule
Commits
b842b42d
Commit
b842b42d
authored
5 years ago
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 首次进入日程页定位到当天问题
parent
3fab171c
release_beta/1.0.0
…
dev
release/1.0.0
release/2.0.0
release/2.1.0
release/dev/2.0.0
release/dev/2.1.0
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
index.js
pages/index/index.js
+7
-3
No files found.
pages/index/index.js
View file @
b842b42d
...
...
@@ -34,7 +34,7 @@ create.Page({
$data
:
null
,
iconDay
:
currentDate
.
getDate
(),
scheduleList
:
[],
todayStr
:
toLocaleDateString
(
currentDate
)
,
todayStr
:
''
,
currentData
:
toLocaleDateString
(
currentDate
),
currentDataIndex
:
0
,
offset
:
"stop"
,
...
...
@@ -170,7 +170,9 @@ create.Page({
loading
:
false
});
this
.
isLoaded
=
true
;
this
.
backToToday
(
'first'
)
setTimeout
(()
=>
{
this
.
backToToday
(
'first'
)
},
300
)
return
;
}
...
...
@@ -181,7 +183,9 @@ create.Page({
sign
:
res
.
data
.
data
.
sign
})
if
(
this
.
isFirstLoad
)
{
this
.
backToToday
(
'first'
)
setTimeout
(()
=>
{
this
.
backToToday
(
'first'
)
},
300
)
this
.
isFirstLoad
=
false
;
}
return
...
...
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