Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 cf3c9126
authored
Feb 15, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改直播视频预览
1 parent
d534129c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
17 deletions
src/views/seckillActivity/editCrowdFund.vue
src/views/seckillActivity/editCrowdFund.vue
View file @
cf3c912
...
@@ -1006,7 +1006,7 @@
...
@@ -1006,7 +1006,7 @@
<el-button
<el-button
type=
"text"
type=
"text"
:disabled=
"!editForm.liveBroadcastMediaUrl"
:disabled=
"!editForm.liveBroadcastMediaUrl"
@
click=
"
liveVideoVisible = !liveVideoVisible
"
@
click=
"
hideVideo(true)
"
>
预览
</el-button>
>
预览
</el-button>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
...
@@ -1093,6 +1093,9 @@
...
@@ -1093,6 +1093,9 @@
class=
"live-video"
class=
"live-video"
controls
controls
ref=
"liveVideo"
ref=
"liveVideo"
disablePictureInPicture
:autoplay=
"liveVideoVisible"
loop
/>
/>
</GLDialog>
</GLDialog>
<select-single-pro-dialog
<select-single-pro-dialog
...
@@ -2987,23 +2990,19 @@ export default {
...
@@ -2987,23 +2990,19 @@ export default {
param
[
'formDescribe'
+
item
]
=
this
.
formDescribeList
.
length
>
idx
?
this
.
formDescribeList
[
idx
].
value
:
''
param
[
'formDescribe'
+
item
]
=
this
.
formDescribeList
.
length
>
idx
?
this
.
formDescribeList
[
idx
].
value
:
''
})
})
//直播
//直播
const
liveEditFormData_1
=
this
.
liveEditFormData_1
.
map
(
item
=>
item
.
name
),
liveEditFormData_2
=
this
.
liveEditFormData_2
.
map
(
item
=>
item
.
name
)
if
(
param
.
liveFlag
)
{
if
(
param
.
liveFlag
)
{
//直播
if
(
param
.
liveBroadcastMediaType
==
1
)
{
if
(
param
.
liveBroadcastMediaType
==
1
)
{
if
(
!
param
.
floatingMaskDiagram
)
param
.
floatingMaskDiagram
=
this
.
defaultFloatingMaskDiagram
if
(
!
param
.
floatingMaskDiagram
)
param
.
floatingMaskDiagram
=
this
.
defaultFloatingMaskDiagram
if
(
!
param
.
liveBroadcastRoomCover
)
param
.
liveBroadcastRoomCover
=
this
.
defaultImgObj
.
COVER_LIVE
if
(
!
param
.
liveBroadcastRoomCover
)
param
.
liveBroadcastRoomCover
=
this
.
defaultImgObj
.
COVER_LIVE
if
(
!
param
.
liveBroadcastRoomEndCover
)
param
.
liveBroadcastRoomEndCover
=
this
.
defaultImgObj
.
COVER_REPLAY
if
(
!
param
.
liveBroadcastRoomEndCover
)
param
.
liveBroadcastRoomEndCover
=
this
.
defaultImgObj
.
COVER_REPLAY
[
'liveBroadcastMediaUrl'
,
'liveBroadcastStateFlag'
].
map
(
key
=>
{
delete
param
[
key
]
})
}
else
{
// 视频直播
[
'liveBroadcastMediaId'
,
'liveBroadcastRoomId'
,
'groupQrCode'
,
'liveBroadcastRoomEndCover'
,
'floatingMaskDiagram'
].
map
(
key
=>
{
delete
param
[
key
]
})
}
}
(
param
.
liveBroadcastMediaType
==
2
?
liveEditFormData_1
:
liveEditFormData_2
).
map
(
key
=>
{
if
(
key
!=
'liveBroadcastRoomCover'
)
delete
param
[
key
]
})
}
else
{
}
else
{
let
resetAttr
=
[...
this
.
liveEditFormData_1
.
map
(
item
=>
item
.
name
),
...
this
.
liveEditFormData_2
.
map
(
item
=>
item
.
name
)]
let
resetAttr
=
Array
.
from
(
new
Set
([
'liveBroadcastMediaUrl'
,
...
liveEditFormData_1
,
...
liveEditFormData_2
]))
resetAttr
.
forEach
(
item
=>
{
resetAttr
.
forEach
(
item
=>
{
param
[
item
]
=
''
param
[
item
]
=
''
})
})
...
@@ -3190,7 +3189,6 @@ export default {
...
@@ -3190,7 +3189,6 @@ export default {
}
}
if
(
this
.
editForm
.
liveFlag
)
{
if
(
this
.
editForm
.
liveFlag
)
{
const
liveTarget
=
this
.
editForm
.
liveBroadcastMediaType
==
1
?
'liveEditFormRef_1'
:
'liveEditFormRef_2'
const
liveTarget
=
this
.
editForm
.
liveBroadcastMediaType
==
1
?
'liveEditFormRef_1'
:
'liveEditFormRef_2'
if
(
this
.
$refs
[
liveTarget
])
{
this
.
$refs
[
liveTarget
].
$refs
[
this
.
editChildRef
].
validate
((
liveValid
,
liveErrorObj
)
=>
{
this
.
$refs
[
liveTarget
].
$refs
[
this
.
editChildRef
].
validate
((
liveValid
,
liveErrorObj
)
=>
{
if
(
!
liveValid
)
{
if
(
!
liveValid
)
{
validFlag
=
false
validFlag
=
false
...
@@ -3198,8 +3196,6 @@ export default {
...
@@ -3198,8 +3196,6 @@ export default {
}
}
})
})
}
}
}
if
(
this
.
$refs
.
commoditysEditFormRef
)
{
if
(
this
.
$refs
.
commoditysEditFormRef
)
{
this
.
$refs
.
commoditysEditFormRef
.
forEach
(
item
=>
{
this
.
$refs
.
commoditysEditFormRef
.
forEach
(
item
=>
{
item
.
$refs
[
this
.
editChildRef
].
validate
((
commoditysValid
,
commoditysErrorObj
)
=>
{
item
.
$refs
[
this
.
editChildRef
].
validate
((
commoditysValid
,
commoditysErrorObj
)
=>
{
...
@@ -3313,9 +3309,10 @@ export default {
...
@@ -3313,9 +3309,10 @@ export default {
},
},
//预览直播视频
//预览直播视频
hideVideo
()
{
hideVideo
(
play
)
{
this
.
liveVideoVisible
=
false
this
.
liveVideoVisible
=
play
this
.
$refs
.
liveVideo
.
pause
()
if
(
!
play
)
this
.
$refs
.
liveVideo
?.
pause
()
else
this
.
$refs
.
liveVideo
?.
play
()
}
}
}
}
...
...
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