Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
live
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 cef72d73
authored
Nov 30, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化直播间
1 parent
bcdbd3e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
src/views/liveList/createANewLiveRoom.vue
src/views/liveList/index.vue
src/views/liveList/createANewLiveRoom.vue
View file @
cef72d7
...
@@ -351,7 +351,7 @@ export default {
...
@@ -351,7 +351,7 @@ export default {
this
.
hasMediaCover
=
true
;
this
.
hasMediaCover
=
true
;
}
else
{
}
else
{
this
.
hasMediaCover
=
false
;
this
.
hasMediaCover
=
false
;
this
.
backgroundData
.
bgc
=
newV
||
this
.
backgroundData
.
bgc
;
this
.
liveRoom
.
liveBackgroundWall
=
this
.
backgroundData
.
bgc
=
newV
||
this
.
backgroundData
.
bgc
;
}
}
},
},
immediate
:
true
,
immediate
:
true
,
...
@@ -369,7 +369,6 @@ export default {
...
@@ -369,7 +369,6 @@ export default {
async
created
()
{
async
created
()
{
const
{
id
}
=
this
.
$route
.
query
.
row
;
const
{
id
}
=
this
.
$route
.
query
.
row
;
this
.
incomingId
=
id
;
this
.
incomingId
=
id
;
console
.
log
(
this
.
$route
.
query
.
row
)
if
(
id
)
{
if
(
id
)
{
await
this
.
$apis
.
live
await
this
.
$apis
.
live
.
LiveRoomDetailApi
({
id
})
.
LiveRoomDetailApi
({
id
})
...
@@ -405,7 +404,7 @@ export default {
...
@@ -405,7 +404,7 @@ export default {
handleLook
(
type
)
{
handleLook
(
type
)
{
this
.
dialogType
=
type
;
this
.
dialogType
=
type
;
this
.
dialogVisibleImg
=
true
;
this
.
dialogVisibleImg
=
true
;
this
.
dialogSrc
=
type
==
"img"
?
this
.
liveRoom
.
preLiveMediaCover
:
this
.
liveRoom
.
preLiveMediaFile
;
this
.
dialogSrc
=
type
==
"img"
?
this
.
liveRoom
.
preLiveMediaCover
:
this
.
liveRoom
.
preLiveMediaFile
Vid
;
},
},
handleVideoChange
(
e
)
{
handleVideoChange
(
e
)
{
const
self
=
this
;
const
self
=
this
;
...
@@ -440,9 +439,7 @@ export default {
...
@@ -440,9 +439,7 @@ export default {
async
handleCreateorEdit
(
draftFlag
)
{
async
handleCreateorEdit
(
draftFlag
)
{
let
sucText
=
"创建直播间成功!"
;
let
sucText
=
"创建直播间成功!"
;
let
errText
=
"创建直播间失败!"
;
let
errText
=
"创建直播间失败!"
;
console
.
log
(
this
.
liveRoom
)
const
params
=
Object
.
assign
(
this
.
liveRoom
,
this
.
baseForm
);
const
params
=
Object
.
assign
(
this
.
liveRoom
,
this
.
baseForm
);
console
.
log
(
params
)
if
(
params
.
preLiveMediaType
==
"0"
)
{
if
(
params
.
preLiveMediaType
==
"0"
)
{
params
.
preLiveMediaFile
=
params
.
preLiveMediaFilePic
||
""
;
params
.
preLiveMediaFile
=
params
.
preLiveMediaFilePic
||
""
;
params
.
preLiveMediaCover
=
params
.
preLiveMediaCoverPic
||
""
;
params
.
preLiveMediaCover
=
params
.
preLiveMediaCoverPic
||
""
;
...
@@ -483,7 +480,6 @@ export default {
...
@@ -483,7 +480,6 @@ export default {
if
(
!!
this
.
incomingStatus
&&
this
.
incomingStatus
==
"3"
&&
!
params
.
draftFlag
)
{
if
(
!!
this
.
incomingStatus
&&
this
.
incomingStatus
==
"3"
&&
!
params
.
draftFlag
)
{
delete
params
.
id
;
delete
params
.
id
;
}
}
console
.
log
(
this
.
liveRoom
);
await
this
.
$apis
.
live
.
addOrUpdataLiveRoomApi
(
params
).
then
(
res
=>
{
await
this
.
$apis
.
live
.
addOrUpdataLiveRoomApi
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
"0"
)
{
if
(
res
.
code
==
"0"
)
{
this
.
$message
.
success
(
sucText
);
this
.
$message
.
success
(
sucText
);
...
...
src/views/liveList/index.vue
View file @
cef72d7
...
@@ -22,9 +22,11 @@
...
@@ -22,9 +22,11 @@
<div
class=
"bgmName"
>
<div
class=
"bgmName"
>
<el-popover
placement=
"bottom"
width=
"400"
trigger=
"hover"
>
<el-popover
placement=
"bottom"
width=
"400"
trigger=
"hover"
>
<div
class=
"qrCode-popover"
>
<div
class=
"qrCode-popover"
>
<img
:src=
"scope.scope.liveVideoCover"
style=
"width: 360px; height: 360px"
/>
<img
v-if=
"scope.scope.liveVideoCover"
:src=
"scope.scope.liveVideoCover"
style=
"width: 360px; height: 360px"
/>
</div>
</div>
<img
:src=
"scope.scope.liveVideoCover"
style=
"width: 36px; height: 36px"
slot=
"reference"
/>
<img
v-if=
"scope.scope.liveVideoCover"
:src=
"scope.scope.liveVideoCover"
style=
"width: 36px; height: 36px"
slot=
"reference"
/>
</el-popover>
</el-popover>
<span
class=
"name"
>
{{
scope
.
scope
.
name
}}
</span>
<span
class=
"name"
>
{{
scope
.
scope
.
name
}}
</span>
</div>
</div>
...
...
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