Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
0b45c468
Commit
0b45c468
authored
Aug 16, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 学练记录页面时间段选择计算错误
parent
9887aaaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
launch.json
.hbuilderx/launch.json
+11
-0
record.vue
src/pages/learn/record.vue
+5
-4
No files found.
.hbuilderx/launch.json
0 → 100644
View file @
0b45c468
{
//
launch.json
配置了启动调试时相关设置,configurations下节点名称可为
app-plus/h
5
/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp
-360
/
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
"version"
:
"0.0"
,
"configurations"
:
[{
"type"
:
"uniCloud"
,
"default"
:
{
"launchtype"
:
"local"
}
}
]
}
src/pages/learn/record.vue
View file @
0b45c468
...
@@ -380,14 +380,15 @@ export default {
...
@@ -380,14 +380,15 @@ export default {
this
.
queryExamRecord
()
this
.
queryExamRecord
()
},
},
nearlySevenDays
()
{
nearlySevenDays
()
{
return
this
.
nearlyDays
(
5
)
return
this
.
nearlyDays
(
6
)
},
},
nearlyThirtyDays
()
{
nearlyThirtyDays
()
{
return
this
.
nearlyDays
(
2
8
)
return
this
.
nearlyDays
(
2
9
)
},
},
nearlyDays
(
day
)
{
nearlyDays
(
day
)
{
var
end
=
new
Date
().
getTime
()
let
date
=
new
Date
()
var
start
=
new
Date
().
setDate
(
new
Date
().
getDay
()
-
day
)
var
end
=
date
.
getTime
()
var
start
=
date
.
setDate
(
date
.
getDate
()
-
day
)
var
params
=
{
var
params
=
{
startDate
:
this
.
$u
.
timeFormat
(
start
,
'yyyy-mm-dd'
),
startDate
:
this
.
$u
.
timeFormat
(
start
,
'yyyy-mm-dd'
),
endDate
:
this
.
$u
.
timeFormat
(
end
,
'yyyy-mm-dd'
),
endDate
:
this
.
$u
.
timeFormat
(
end
,
'yyyy-mm-dd'
),
...
...
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