Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5811e75b
authored
Aug 20, 2020
by
TengFengLian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
活动开始时间倒序排序
parent
a194ddd9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
pages/activity/activity.js
pages/activity/activity.js
View file @
5811e75b
...
@@ -96,9 +96,16 @@ Page({
...
@@ -96,9 +96,16 @@ Page({
title
:
item
.
name
,
title
:
item
.
name
,
date
:
item
.
activeDate
+
' '
+
item
.
activeTime
,
//'6月30日-7月12日 10:00-12:00',
date
:
item
.
activeDate
+
' '
+
item
.
activeTime
,
//'6月30日-7月12日 10:00-12:00',
describe
:
item
.
summary
,
describe
:
item
.
summary
,
beginDate
:
item
.
activeDate
.
split
(
'-'
)[
0
],
}
}
tmpArr
.
push
(
tmpItem
)
tmpArr
.
push
(
tmpItem
)
})
})
// 活动开始时间倒序
tmpArr
.
sort
(
function
(
a
,
b
)
{
return
new
Date
(
b
.
beginDate
.
replace
(
/月/g
,
"\/"
).
replace
(
/日/g
,
"\/"
))
-
new
Date
(
a
.
beginDate
.
replace
(
/月/g
,
"\/"
).
replace
(
/日/g
,
"\/"
))
})
if
(
type
==
1
)
{
if
(
type
==
1
)
{
that
.
setData
({
that
.
setData
({
activity
:
tmpArr
activity
:
tmpArr
...
...
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