Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9983b7c6
authored
Mar 19, 2024
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
查看
1 parent
a06c5986
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
4 deletions
src/assets/mini_pro_bg.png
src/views/contentManager/contentDetail.vue
src/assets/mini_pro_bg.png
0 → 100644
View file @
9983b7c
10.5 KB
src/views/contentManager/contentDetail.vue
View file @
9983b7c
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<div
v-for=
"(item, index) in contentListData"
:key=
"index"
class=
"cell"
>
<div
v-for=
"(item, index) in contentListData"
:key=
"index"
class=
"cell"
>
<div
class=
"label"
>
{{
item
.
label
}}
</div>
<div
class=
"label"
>
{{
item
.
label
}}
</div>
<div
v-if=
"item.type == 'text'"
class=
"value"
>
<div
v-if=
"item.type == 'text'"
class=
"value"
>
{{
orderInfo
[
item
.
prop
]
||
'--'
}}
{{
orderInfo
[
item
.
prop
]
||
"--"
}}
</div>
</div>
<div
v-else-if=
"item.type == 'img'"
class=
"imgBox"
>
<div
v-else-if=
"item.type == 'img'"
class=
"imgBox"
>
<el-image
<el-image
...
@@ -28,13 +28,19 @@
...
@@ -28,13 +28,19 @@
:key=
"idx"
:key=
"idx"
class=
"img-box mar"
class=
"img-box mar"
>
>
<el-image
<
!--
<
el-image
v-if=
"orderInfo.type == 0"
v-if=
"orderInfo.type == 0"
style=
"width: 88px; height: 88px"
style=
"width: 88px; height: 88px"
:src=
"i"
:src=
"i"
:preview-src-list=
"orderInfo[item.prop]"
:preview-src-list=
"orderInfo[item.prop]"
>
>
</el-image>
</el-image>
-->
<img
@
click=
"showMiniView"
:src=
"i"
style=
"width: 88px; height: 88px; cursor: pointer"
v-if=
"orderInfo.type == 0"
/>
<video
<video
controls
controls
style=
"
style=
"
...
@@ -113,6 +119,30 @@
...
@@ -113,6 +119,30 @@
</div>
</div>
</div>
</div>
</div>
</div>
<d2-dialog
width=
"415px"
:isVisible=
"showImageView"
:noCancel=
"true"
:isShowFooter=
"false"
@
closeDialog=
"closeDialog"
>
<div
class=
"img-wrapper"
>
<img
class=
"bg-icon"
src=
"../../assets/mini_pro_bg.png"
/>
<div
class=
"min-title"
>
<span
class=
"ti-posi"
>
{{
orderInfo
.
title
}}
</span>
</div>
<div
class=
"image-pannel"
>
<div
class=
"inner"
>
<img
class=
"icon-item"
v-for=
"(item, index) in orderInfo.contentList"
:key=
"index"
:src=
"item"
/>
</div>
</div>
</div>
</d2-dialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -166,7 +196,8 @@ export default {
...
@@ -166,7 +196,8 @@ export default {
prop
:
"assignInfos"
prop
:
"assignInfos"
}
}
],
],
orderInfo
:
{}
orderInfo
:
{},
showImageView
:
false
}
}
},
},
...
@@ -208,6 +239,12 @@ export default {
...
@@ -208,6 +239,12 @@ export default {
},
},
toOpenPDF
(
url
)
{
toOpenPDF
(
url
)
{
window
.
open
(
url
)
window
.
open
(
url
)
},
closeDialog
()
{
this
.
showImageView
=
false
},
showMiniView
()
{
this
.
showImageView
=
true
}
}
}
}
}
}
...
@@ -304,4 +341,64 @@ export default {
...
@@ -304,4 +341,64 @@ export default {
.publish-info
{
.publish-info
{
margin-top
:
16px
;
margin-top
:
16px
;
}
}
.img-wrapper
{
height
:
812px
;
background
:
#fff
;
position
:
relative
;
.bg-icon
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
height
:
812px
;
}
.min-title
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
height
:
88px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
flex-end
;
box-sizing
:
border-box
;
padding-bottom
:
10px
;
.ti-posi
{
width
:
170px
;
height
:
24px
;
font-weight
:
600
;
font-size
:
17px
;
color
:
#2d2d2e
;
text-align
:
center
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
}
.image-pannel
{
width
:
100%
;
height
:
724px
;
overflow
:
hidden
;
position
:
absolute
;
top
:
88px
;
left
:
0
;
.inner
{
width
:
100%
;
height
:
724px
;
overflow-y
:
scroll
;
background
:
#fff
;
.icon-item
{
width
:
100%
;
height
:
auto
;
}
}
.inner
::-webkit-scrollbar
{
width
:
6px
!important
;
}
}
}
.img-size
{
cursor
:
pointer
;
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment