Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
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
node_server
wenHuaBu_adminServer
Commits
0617b434
Commit
0617b434
authored
Apr 24, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6883815a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
officialWebsite.ts
src/biz/officialWebsite.ts
+5
-4
No files found.
src/biz/officialWebsite.ts
View file @
0617b434
...
@@ -84,15 +84,16 @@ export async function homePage() {
...
@@ -84,15 +84,16 @@ export async function homePage() {
// });
// });
// });
// });
let
huoDongTongZhiDataFindParam
=
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
通知公告
_hgh
活动通知
]},
display
:
STATE
.
是
};
let
huoDongTongZhiDataFindParam
=
{
articleType
:{
"$in"
:[
ARTICLEPOSITION
.
通知公告
_hgh
活动通知
,
ARTICLEPOSITION
.
通知公告
_hgh
会议通知
,
ARTICLEPOSITION
.
通知公告
_hgh
项目公告
]},
display
:
STATE
.
是
};
let
huoDongTongZhiDataList
=
await
findToSortToPage
(
TABLEENUM
.
文章管理
,
huoDongTongZhiDataFindParam
,
[
"articleTime"
,
"id"
,
"title"
],
{
articleTime
:
-
1
},
1
);
let
huoDongTongZhiDataList
=
await
findToSortToPage
(
TABLEENUM
.
文章管理
,
huoDongTongZhiDataFindParam
,
[
"articleTime"
,
"id"
,
"title"
,
"articleType"
],
{
articleTime
:
-
1
},
1
);
huoDongTongZhiDataList
.
forEach
(
info
=>
{
huoDongTongZhiDataList
.
forEach
(
info
=>
{
let
{
id
,
title
,
articleTime
}
=
info
;
let
{
id
,
title
,
articleTime
,
articleType
}
=
info
;
result
.
huoDongTongZhi
.
push
({
result
.
huoDongTongZhi
.
push
({
id
,
title
,
articleTime
:
moment
(
articleTime
).
format
(
"YYYY-MM-DD"
)
id
,
title
,
articleTime
:
moment
(
articleTime
).
format
(
"YYYY-MM-DD"
)
,
value
:
articleType
[
0
]
});
});
});
});
/**热点视频*/
/**热点视频*/
let
reDianShiPinData
=
await
find
(
TABLEENUM
.
视频管理
,
{
display
:
STATE
.
是
}
);
let
reDianShiPinData
=
await
find
(
TABLEENUM
.
视频管理
,
{
display
:
STATE
.
是
}
);
reDianShiPinData
.
sort
((
a
,
b
)
=>
{
return
a
.
videoTime
-
b
.
videoTime
});
reDianShiPinData
.
sort
((
a
,
b
)
=>
{
return
a
.
videoTime
-
b
.
videoTime
});
...
...
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