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
834c77f5
Commit
834c77f5
authored
Oct 26, 2021
by
Zhang Xiaojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:activity 发布时间改为更新时间
parent
128b9bc3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
type.ts
src/service/ActivityService/type.ts
+2
-1
index.vue
src/views/ActivityDetail/index.vue
+3
-3
index.vue
src/views/ActivityList/components/activityCard/index.vue
+2
-2
index.vue
src/views/ActivityList/index.vue
+1
-1
No files found.
src/service/ActivityService/type.ts
View file @
834c77f5
export
interface
ActivityItem
{
created_at
:
number
,
file_name
:
string
,
uuid
:
string
uuid
:
string
,
update_at
:
string
}
src/views/ActivityDetail/index.vue
View file @
834c77f5
...
...
@@ -2,7 +2,7 @@
<nav-bar
title=
"精彩活动"
/>
<div
class=
"px-5 py-8"
>
<p
class=
"text-base text-gray-800 font-semibold"
>
{{
title
}}
</p>
<p
class=
"text-xs text-gray-400 mt-5"
>
发布时间
{{
timestampFormat
(
created
_at
)
}}
</p>
<p
class=
"text-xs text-gray-400 mt-5"
>
发布时间
{{
timestampFormat
(
update
_at
)
}}
</p>
<img
:src=
"src"
class=
"text-center"
/>
<p
class=
"text-sm text-gray-800 text-justify mt-5"
v-html=
"content"
></p>
</div>
...
...
@@ -19,7 +19,7 @@ import { timestampFormat } from "@/utils/time"
const
uuid
=
useRoute
().
params
.
uuid
as
string
;
const
title
=
ref
(
""
);
const
created
_at
=
ref
(
0
);
const
update
_at
=
ref
(
0
);
const
content
=
ref
(
""
);
const
file_name
=
ref
(
""
);
const
src
=
ref
(
""
);
...
...
@@ -28,7 +28,7 @@ onMounted(() => {
queryActivityInfo
({
uuid
:
uuid
}).
then
((
ret
)
=>
{
if
(
ret
.
code
===
200
)
{
title
.
value
=
ret
.
data
.
title
;
created_at
.
value
=
ret
.
data
.
created
_at
;
update_at
.
value
=
ret
.
data
.
update
_at
;
content
.
value
=
ret
.
data
.
content
;
file_name
.
value
=
ret
.
data
.
file_name
;
src
.
value
=
getImageSrcFromFileHash
(
file_name
.
value
);
...
...
src/views/ActivityList/components/activityCard/index.vue
View file @
834c77f5
<
template
>
<div>
<div
class=
"text-xs text-gray-400 text-center mt-5 "
>
{{
timestampFormat
(
created
_at
)
}}
{{
timestampFormat
(
update
_at
)
}}
</div>
<div
class=
"text-center mt-2"
>
<img
:src=
"src"
class=
"w-83 h-22 object-cover object-center inline-block"
/>
...
...
@@ -15,7 +15,7 @@ import { timestampFormat } from "@/utils/time";
import
{
getImageSrcFromFileHash
}
from
"@/service/FileService"
;
import
{
ref
}
from
"vue"
const
props
=
defineProps
({
created
_at
:
Number
,
update
_at
:
Number
,
file_name
:
String
,
});
...
...
src/views/ActivityList/index.vue
View file @
834c77f5
...
...
@@ -19,7 +19,7 @@
<Skeleton
:loading=
"skeLoading"
:row=
"3"
class=
"mt-2"
>
<card
v-for=
"activity in activityList"
:
created_at=
"activity.created
_at"
:
update_at=
"activity.update
_at"
:file_name=
"activity.file_name"
:key=
"activity.id"
@
click=
"
...
...
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