Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
318381cc
Commit
318381cc
authored
Oct 19, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯消息发布时间
parent
c1bcd56f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
index.vue
src/components/Mine/Msg/index.vue
+1
-1
index.vue
src/components/PolicyCard/index.vue
+1
-1
index.vue
src/views/News/NewsList/index.vue
+1
-1
index.vue
src/views/withMenu/Home/index.vue
+1
-1
msg.vue
src/views/withMenu/Mine/msg.vue
+1
-1
No files found.
src/components/Mine/Msg/index.vue
View file @
318381cc
...
...
@@ -3,7 +3,7 @@
<div
class=
" flex justify-between py-5 border-b border-gray-200"
@
click=
"$router.push(
{path: 'msgDetail', query: { info: JSON.stringify(info) }})">
<span
class=
" text-sm text-left font-semibold"
:class=
"isRead?'text-gray-400':'text-gray-800'"
>
{{
info
.
title
}}
</span>
<span
class=
" text-sm text-right text-gray-400"
>
{{
$format
(
info
.
created
_at
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</span>
<span
class=
" text-sm text-right text-gray-400"
>
{{
$format
(
info
.
update
_at
,
'YYYY-MM-DD HH:mm:ss'
)
}}
</span>
</div>
</div>
</
template
>
...
...
src/components/PolicyCard/index.vue
View file @
318381cc
...
...
@@ -3,7 +3,7 @@
<div
class=
" text-base text-gray-800 font-semibold pt-5 news-title"
>
{{
info
.
title
}}
</div>
<!--
<p
class=
" text-xs text-gray-400 pt-5"
>
{{
info
.
desc
}}
</p>
-->
<div
class=
" text-sm text-gray-800 text-justify pt-3 news-info"
>
{{
info
.
desc
}}
</div>
<div
class=
" text-xs text-gray-400 py-5 border-b border-red border-solid"
>
发布时间:
{{
$format
(
info
.
created
_at
,
'YYYY-MM-DD'
)
}}
作者:
{{
info
.
writer
}}
</div>
<div
class=
" text-xs text-gray-400 py-5 border-b border-red border-solid"
>
发布时间:
{{
$format
(
info
.
update
_at
,
'YYYY-MM-DD'
)
}}
作者:
{{
info
.
writer
}}
</div>
</div>
</
template
>
...
...
src/views/News/NewsList/index.vue
View file @
318381cc
...
...
@@ -6,7 +6,7 @@
v-if=
"showImg"
class=
" h-32 bg-app-blue mt-2 bg-cover bg-center bg-no-repeat"
:style=
"
{'background-image': `url('${url}')`}">
</div>
<div
class=
" text-xs text-gray-400 pt-4 tracking-wide"
>
发布时间:
{{
$format
(
info
.
created
_at
,
'YYYY-MM-DD'
)
}}
</div>
<div
class=
" text-xs text-gray-400 pt-4 tracking-wide"
>
发布时间:
{{
$format
(
info
.
update
_at
,
'YYYY-MM-DD'
)
}}
</div>
</div>
</
template
>
...
...
src/views/withMenu/Home/index.vue
View file @
318381cc
...
...
@@ -159,7 +159,7 @@ export default defineComponent({
const
ret
=
await
queryNotifyList
({
notify_type
:
"1"
});
if
(
ret
.
code
===
200
)
{
const
list
=
ret
.
data
.
items
;
list
.
sort
((
a
,
b
)
=>
b
.
created_at
-
a
.
created
_at
)
list
.
sort
((
a
,
b
)
=>
b
.
update_at
-
a
.
update
_at
)
this
.
notifyList
=
list
;
}
},
...
...
src/views/withMenu/Mine/msg.vue
View file @
318381cc
...
...
@@ -22,7 +22,7 @@ export default defineComponent({
const
notifyList
=
()
=>
{
getNotifyList
(
type
).
then
(
res
=>
{
list
.
value
=
res
.
data
.
items
list
.
value
.
sort
((
a
:
{
created_at
:
number
},
b
:
{
created_at
:
number
})
=>
b
.
created_at
-
a
.
created
_at
)
list
.
value
.
sort
((
a
:
{
update_at
:
number
},
b
:
{
update_at
:
number
})
=>
b
.
update_at
-
a
.
update
_at
)
})
}
notifyList
()
...
...
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