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
39b3bc13
Commit
39b3bc13
authored
Feb 15, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步代码
parent
efb0d958
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
http.js
api/http.js
+2
-1
index.js
pages/index/index.js
+4
-4
No files found.
api/http.js
View file @
39b3bc13
...
...
@@ -24,7 +24,8 @@ export default function http (data) {
}
else
{
return
new
Promise
((
resolve
,
rejects
)
=>
{
login
().
then
(
res
=>
{
getApp
().
globalData
.
token
=
res
.
data
.
data
.
accessToken
.
access_token
//'3a025eee-15ae-4805-9214-fe0599d47f17' //
// getApp().globalData.token = res.data.data.accessToken.access_token //'3a025eee-15ae-4805-9214-fe0599d47f17' //
getApp
().
globalData
.
token
=
"157bad88-d68b-4d80-bec1-375f3756a398"
getApp
().
globalData
.
name
=
res
.
data
.
data
.
oapiUser
.
name
getApp
().
globalData
.
userid
=
res
.
data
.
data
.
oapiUser
.
userid
getApp
().
globalData
.
avatar
=
res
.
data
.
data
.
oapiUser
.
avatar
...
...
pages/index/index.js
View file @
39b3bc13
...
...
@@ -9,6 +9,9 @@ Page({
dd
.
setNavigationBar
({
title
:
'首页'
})
},
onReady
()
{
let
data
=
{
"startTime"
:
"2020-01-01 00:00:00"
,
"endTime"
:
"2025-12-30 23:59:59"
...
...
@@ -27,9 +30,6 @@ Page({
})
})
},
onReady
()
{
// 页面加载完成
},
onShow
()
{
// 页面显示
},
...
...
@@ -85,7 +85,7 @@ Page({
for
(
let
j
=
0
;
j
<=
count
;
j
++
)
{
let
time
=
new
Date
();
time
.
setDate
(
time
.
getDate
()
+
j
)
// let finalDate = day.setDate(day.getDate()+j)
console
.
log
(
`
${
time
.
getFullYear
()}
/
${
time
.
getMonth
()
+
1
}
/
${
time
.
getDate
()}
`
)
DateMap
.
get
(
`
${
time
.
getFullYear
()}
/
${
time
.
getMonth
()
+
1
}
/
${
time
.
getDate
()}
`
).
scheduleList
.
push
({
...
this
.
data
.
AllScheduleList
[
y
],
...
...
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