Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
02782c3e
Commit
02782c3e
authored
Dec 15, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 寄售详情添加视频播放功能
parent
67b816db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
6 deletions
+77
-6
src/views/consign/consignDetail.vue
src/views/consign/consignDetail.vue
+30
-6
src/views/goods/components/CheckVideoDialog.vue
src/views/goods/components/CheckVideoDialog.vue
+47
-0
No files found.
src/views/consign/consignDetail.vue
View file @
02782c3e
...
@@ -46,11 +46,17 @@
...
@@ -46,11 +46,17 @@
<
div
class
=
"
consign_content_item__image
"
>
<
div
class
=
"
consign_content_item__image
"
>
<
div
style
=
"
width: 180px
"
>
藏品图片
/
视频:
<
/div
>
<
div
style
=
"
width: 180px
"
>
藏品图片
/
视频:
<
/div
>
<
div
class
=
"
image_content
"
>
<
div
class
=
"
image_content
"
>
<
div
v
-
if
=
"
consignDetail.videosImageUrl
"
class
=
"
image_content_video
"
>
<
div
v
-
if
=
"
consignDetail.videosImageUrl
"
class
=
"
image_content_video
"
@
click
=
"
showVideoDialog = true
"
>
<
img
:
src
=
"
consignDetail.videosImageUrl
"
class
=
"
image_content_video_item
"
>
<
img
:
src
=
"
consignDetail.videosImageUrl
"
class
=
"
image_content_video_item
"
>
<
img
class
=
"
image_content_video_icon
"
src
=
"
https://cdn.wanwudezhi.com/static/web-static/image/10651432d8c28651da81753c260d81b3_120x120.png
"
>
<
img
class
=
"
image_content_video_icon
"
src
=
"
https://cdn.wanwudezhi.com/static/web-static/image/10651432d8c28651da81753c260d81b3_120x120.png
"
>
<
/div
>
<
/div
>
<
div
v
-
for
=
"
(item, index) in consignDetail.imageList
"
:
key
=
"
item + index
"
class
=
"
select_item
"
@
click
=
"
handleShowLargeDialog(item)
"
>
<
div
v
-
for
=
"
(item, index) in consignDetail.imageList
"
:
key
=
"
item + index
"
class
=
"
select_item
"
@
click
=
"
handleShowLargeDialog(item)
"
>
<
img
:
src
=
"
item
"
class
=
"
image_content_item
"
>
<
img
:
src
=
"
item
"
class
=
"
image_content_item
"
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -63,7 +69,11 @@
...
@@ -63,7 +69,11 @@
<
/div
>
<
/div
>
<
div
style
=
"
height: calc(100vh - 280px)
"
>
<
div
style
=
"
height: calc(100vh - 280px)
"
>
<
el
-
steps
:
active
=
"
1
"
direction
=
"
vertical
"
finish
-
status
=
"
success
"
>
<
el
-
steps
:
active
=
"
1
"
direction
=
"
vertical
"
finish
-
status
=
"
success
"
>
<
el
-
step
v
-
for
=
"
item in consignSaleRecordVoList
"
:
key
=
"
item.content + item.createTime
"
:
title
=
"
item.content
"
:
description
=
"
item.createTime
"
/>
<
el
-
step
v
-
for
=
"
item in consignSaleRecordVoList
"
:
key
=
"
item.content + item.createTime
"
:
title
=
"
item.content
"
:
description
=
"
item.createTime
"
/>
<
/el-steps
>
<
/el-steps
>
<
/div
>
<
/div
>
<
/el-card
>
<
/el-card
>
...
@@ -178,6 +188,10 @@
...
@@ -178,6 +188,10 @@
:
image
-
url
=
"
imageUrl
"
:
image
-
url
=
"
imageUrl
"
@
closeLargeDialog
=
"
showLargeDialog = false
"
@
closeLargeDialog
=
"
showLargeDialog = false
"
/>
/>
<
CheckVideoDialog
:
show
-
video
-
dialog
=
"
showVideoDialog
"
:
video
-
url
=
"
consignDetail.videosUrl
"
@
closeLargeDialog
=
"
showVideoDialog = false
"
/>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -185,10 +199,11 @@
...
@@ -185,10 +199,11 @@
import
{
findDetail
,
imgValuate
,
identifyImage
,
finishValue
,
cancelValue
}
from
'
@/api/business/consign
'
import
{
findDetail
,
imgValuate
,
identifyImage
,
finishValue
,
cancelValue
}
from
'
@/api/business/consign
'
import
{
MessageBox
}
from
'
element-ui
'
import
{
MessageBox
}
from
'
element-ui
'
import
CheckLargeImageDialog
from
'
../goods/components/CheckLargeImageDialog
'
import
CheckLargeImageDialog
from
'
../goods/components/CheckLargeImageDialog
'
import
CheckVideoDialog
from
'
../goods/components/CheckVideoDialog
'
export
default
{
export
default
{
name
:
'
ConsignDetail
'
,
name
:
'
ConsignDetail
'
,
components
:
{
CheckLargeImageDialog
}
,
components
:
{
Check
VideoDialog
,
Check
LargeImageDialog
}
,
data
()
{
data
()
{
return
{
return
{
saleId
:
''
,
saleId
:
''
,
...
@@ -254,7 +269,9 @@ export default {
...
@@ -254,7 +269,9 @@ export default {
]
]
}
,
}
,
imageUrl
:
''
,
imageUrl
:
''
,
showLargeDialog
:
false
showLargeDialog
:
false
,
showVideoDialog
:
false
,
videoUrl
:
''
}
}
}
,
}
,
...
@@ -452,25 +469,31 @@ export default {
...
@@ -452,25 +469,31 @@ export default {
height
:
100
%
;
height
:
100
%
;
display
:
flex
;
display
:
flex
;
flex
-
direction
:
row
;
flex
-
direction
:
row
;
.
consign_content_item__text
{
.
consign_content_item__text
{
margin
-
top
:
15
px
;
margin
-
top
:
15
px
;
}
}
.
consign_content_item__image
{
.
consign_content_item__image
{
margin
-
top
:
10
px
;
margin
-
top
:
10
px
;
display
:
flex
;
display
:
flex
;
flex
-
direction
:
row
;
flex
-
direction
:
row
;
.
image_content
{
.
image_content
{
display
:
flex
;
display
:
flex
;
flex
-
direction
:
row
;
flex
-
direction
:
row
;
flex
-
wrap
:
wrap
;
flex
-
wrap
:
wrap
;
.
image_content_video
{
.
image_content_video
{
position
:
relative
;
position
:
relative
;
.
image_content_video_item
{
.
image_content_video_item
{
width
:
90
px
;
width
:
90
px
;
height
:
90
px
;
height
:
90
px
;
object
-
fit
:
cover
;
object
-
fit
:
cover
;
margin
-
right
:
10
px
;
margin
-
right
:
10
px
;
}
}
.
image_content_video_icon
{
.
image_content_video_icon
{
width
:
25
px
;
width
:
25
px
;
height
:
25
px
;
height
:
25
px
;
...
@@ -479,6 +502,7 @@ export default {
...
@@ -479,6 +502,7 @@ export default {
left
:
5
px
;
left
:
5
px
;
}
}
}
}
.
image_content_item
{
.
image_content_item
{
width
:
90
px
;
width
:
90
px
;
height
:
90
px
;
height
:
90
px
;
...
...
src/views/goods/components/CheckVideoDialog.vue
0 → 100644
View file @
02782c3e
<
template
>
<el-dialog
:visible.sync=
"showVideoDialog"
:before-close=
"handleClose"
width=
"800px"
height=
"800px"
>
<div
class=
"content"
>
<video
controls
style=
"width: 600px; height: 600px"
>
<source
:src=
"videoUrl"
type=
"video/mp4"
class=
"video"
>
</video>
</div>
</el-dialog>
</
template
>
<
script
>
export
default
{
name
:
'
CheckVideoDialog
'
,
props
:
{
showVideoDialog
:
{
type
:
Boolean
,
default
:
false
},
videoUrl
:
{
type
:
String
,
default
:
''
}
},
methods
:
{
handleClose
()
{
this
.
$emit
(
'
closeLargeDialog
'
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.content
{
width
:
100%
;
text-align
:
center
;
}
.video
{
width
:
600px
;
height
:
auto
;
}
</
style
>
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