Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
court-inner
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
court-inner
Commits
f877712e
Commit
f877712e
authored
Oct 15, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页图片展示
parent
e2ecdb78
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
src/views/detail/index.vue
+7
-1
No files found.
src/views/detail/index.vue
View file @
f877712e
...
...
@@ -22,6 +22,9 @@
<div>
<h2
style=
" text-align: center;"
>
{{
article
.
subject
}}
</h2>
<div
style=
"color: #999999; font-size: 12px;text-align:right"
>
发布时间:
{{
article
.
newsTime
.
substring
(
0
,
10
)
}}
</div>
<div>
<el-image
style=
"margin-top:5px;width:100%;margin-bottom:5px;"
fit=
"contain"
v-for=
"item in attachList"
:key=
"item.id"
:src=
"item.downloadPath"
></el-image>
</div>
<div
v-html=
"article.content"
></div>
</div>
</div>
...
...
@@ -307,6 +310,7 @@ export default {
},
],
article
:{},
attachList
:[],
//附件
};
},
created
()
{
...
...
@@ -321,7 +325,9 @@ export default {
},
newsDetailFun
(
val
){
newsDetail
({
newsId
:
val
}).
then
(
res
=>
{
this
.
article
=
res
.
data
.
newsDetail
let
{
newsDetail
,
attachList
}
=
res
.
data
;
this
.
article
=
newsDetail
;
this
.
attachList
=
attachList
;
})
},
switchBtn
(
i
)
{
...
...
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