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 bcdbd3e9
authored
Nov 30, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化直播间
1 parent
f5a852c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
src/views/liveList/createANewLiveRoom.vue
src/views/liveList/index.vue
src/views/liveList/createANewLiveRoom.vue
View file @
bcdbd3e
<
template
>
<
template
>
<div
class=
"createANewLiveRoom"
>
<div
class=
"createANewLiveRoom"
v-loading=
"loading"
>
<div
class=
"header"
>
<div
class=
"header"
>
<div
class=
"step"
>
<div
class=
"step"
>
<div
class=
"baseinfo"
>
<div
class=
"baseinfo"
>
...
@@ -15,13 +15,14 @@
...
@@ -15,13 +15,14 @@
</div>
</div>
<div
class=
"baseInfoContainer"
v-if=
"activePage =='1'"
>
<div
class=
"baseInfoContainer"
v-if=
"activePage =='1'"
>
<div
class=
"baseTitle"
>
基本信息
</div>
<div
class=
"baseTitle"
>
基本信息
</div>
<div
class=
"baseFrame"
>
<div
class=
"baseFrame
gl-from-page
"
>
<el-form
:model=
"baseForm"
:rules=
"baseRules"
ref=
"baseForm"
label-width=
"100px"
>
<el-form
:model=
"baseForm"
:rules=
"baseRules"
ref=
"baseForm"
label-width=
"100px"
>
<el-form-item
label=
"直播间名称"
prop=
"name"
>
<el-form-item
label=
"直播间名称"
prop=
"name"
>
<el-input
v-model=
"baseForm.name"
></el-input>
<el-input
v-model=
"baseForm.name"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"直播间简介"
>
<el-form-item
label=
"直播间简介"
>
<el-input
type=
"textarea"
v-model=
"baseForm.introduction"
></el-input>
<el-input
type=
"textarea"
v-model=
"baseForm.introduction"
maxlength=
"200"
show-word-limit
autosize
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"开播时间"
prop=
"timeStr"
>
<el-form-item
label=
"开播时间"
prop=
"timeStr"
>
<el-date-picker
<el-date-picker
...
@@ -31,6 +32,7 @@
...
@@ -31,6 +32,7 @@
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions"
value-format=
"yyyy-MM-dd HH:mm:ss"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
:default-time=
"['00:00:00', '23:59:59']"
popper-class=
"pickerWrapZ1"
popper-class=
"pickerWrapZ1"
...
@@ -141,8 +143,8 @@
...
@@ -141,8 +143,8 @@
</div>
</div>
<div
class=
"spaceFrameNew paddingSpace"
>
<div
class=
"spaceFrameNew paddingSpace"
>
<div
class=
"select"
>
<div
class=
"select"
>
<el-radio
v-model=
"liveRoom.preLiveMediaType"
:label=
"
0
"
>
预告图
</el-radio>
<el-radio
v-model=
"liveRoom.preLiveMediaType"
:label=
"
'0'
"
>
预告图
</el-radio>
<el-radio
v-model=
"liveRoom.preLiveMediaType"
:label=
"
1
"
>
预告视频
</el-radio>
<el-radio
v-model=
"liveRoom.preLiveMediaType"
:label=
"
'1'
"
>
预告视频
</el-radio>
</div>
</div>
<div
class=
"photosContent"
v-if=
"liveRoom.preLiveMediaType=='0'"
>
<div
class=
"photosContent"
v-if=
"liveRoom.preLiveMediaType=='0'"
>
<div
class=
"trailerImage"
>
<div
class=
"trailerImage"
>
...
@@ -294,9 +296,15 @@ export default {
...
@@ -294,9 +296,15 @@ export default {
mixins
:
[
uploadMixin
],
mixins
:
[
uploadMixin
],
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
activePage
:
1
,
activePage
:
1
,
incomingId
:
""
,
incomingId
:
""
,
incomingStatus
:
""
,
incomingStatus
:
""
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
()
-
24
*
60
*
60
*
1000
;
},
},
showDraft
:
true
,
showDraft
:
true
,
dialogType
:
""
,
dialogType
:
""
,
dialogVisibleImg
:
false
,
dialogVisibleImg
:
false
,
...
@@ -361,6 +369,7 @@ export default {
...
@@ -361,6 +369,7 @@ 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
})
...
@@ -412,7 +421,6 @@ export default {
...
@@ -412,7 +421,6 @@ export default {
self
.
$set
(
self
.
liveRoom
,
"preLiveMediaFileVid"
,
videoUrl
);
self
.
$set
(
self
.
liveRoom
,
"preLiveMediaFileVid"
,
videoUrl
);
self
.
$nextTick
(()
=>
{
self
.
$nextTick
(()
=>
{
self
.
getImgUrl
(
videoUrl
).
then
(
res
=>
{
self
.
getImgUrl
(
videoUrl
).
then
(
res
=>
{
console
.
log
(
res
);
self
.
$set
(
self
.
liveRoom
,
"preLiveMediaCoverVid"
,
res
);
self
.
$set
(
self
.
liveRoom
,
"preLiveMediaCoverVid"
,
res
);
});
});
});
});
...
@@ -462,7 +470,6 @@ export default {
...
@@ -462,7 +470,6 @@ export default {
}
}
}
}
// 24 属于新建
// 24 属于新建
console
.
log
(
!!
this
.
incomingStatus
&&
(
this
.
incomingStatus
==
"2"
||
this
.
incomingStatus
==
"4"
))
if
(
!!
this
.
incomingStatus
&&
(
this
.
incomingStatus
==
"2"
||
this
.
incomingStatus
==
"4"
))
{
if
(
!!
this
.
incomingStatus
&&
(
this
.
incomingStatus
==
"2"
||
this
.
incomingStatus
==
"4"
))
{
delete
params
.
id
;
delete
params
.
id
;
}
}
...
@@ -553,12 +560,12 @@ export default {
...
@@ -553,12 +560,12 @@ export default {
.upload-panel
{
.upload-panel
{
cursor
:
pointer
;
cursor
:
pointer
;
background
:
rgba
(
0
,
0
,
0
,
0.04
);
background-size
:
100%
100%
;
background-size
:
100%
100%
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.15
)
;
border
:
1px
solid
#5850FF
;
border-radius
:
4px
;
border-radius
:
4px
;
text-align
:
center
;
text-align
:
center
;
position
:
relative
;
position
:
relative
;
color
:
#5850FF
;
.upload-view
{
.upload-view
{
width
:
100%
;
width
:
100%
;
...
@@ -617,6 +624,7 @@ export default {
...
@@ -617,6 +624,7 @@ export default {
font-size
:
14px
;
font-size
:
14px
;
color
:
#666666
;
color
:
#666666
;
margin
:
16px
0
;
margin
:
16px
0
;
line-height
:
24px
;
}
}
.copywriting
{
.copywriting
{
...
...
src/views/liveList/index.vue
View file @
bcdbd3e
This diff is collapsed.
Click to expand it.
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