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 e6694c5b
authored
Dec 05, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v3.2.0' into 'v3.2.0'
修复一轮测试bug See merge request
!17
2 parents
140e3814
66a74b88
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
24 deletions
src/config/index.js
src/views/liveList/createANewLiveRoom.vue
src/views/liveList/index.vue
vue.config.js
src/config/index.js
View file @
e6694c5
...
@@ -20,8 +20,8 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -20,8 +20,8 @@ export const fetchConfig = function(isEnv = true) {
// }
// }
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
//
return new Http().get('https://oss-config.test.glsx.com.cn/mock/6351298f6a118b4ff787ef2b/live/config')
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/6351298f6a118b4ff787ef2b/live/config'
)
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/6324135a4edfe442ee0530ae/live/config'
)
//
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6324135a4edfe442ee0530ae/live/config')
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/views/liveList/createANewLiveRoom.vue
View file @
e6694c5
...
@@ -15,16 +15,16 @@
...
@@ -15,16 +15,16 @@
</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 gl-f
ro
m-page"
>
<div
class=
"baseFrame gl-f
or
m-page"
>
<el-form
:model=
"baseForm"
:rules=
"baseRules"
ref=
"baseForm"
label-width=
"120px"
>
<el-form
:model=
"baseForm"
:rules=
"baseRules"
ref=
"baseForm"
label-width=
"120px"
>
<el-form-item
label=
"直播间名称"
prop=
"name"
>
<el-form-item
label=
"直播间名称
:
"
prop=
"name"
>
<el-input
v-model=
"baseForm.name"
maxlength=
"20"
show-word-limit
></el-input>
<el-input
v-model=
"baseForm.name"
maxlength=
"20"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"直播间简介"
>
<el-form-item
label=
"直播间简介
:
"
>
<el-input
type=
"textarea"
v-model=
"baseForm.introduction"
maxlength=
"200"
<el-input
type=
"textarea"
v-model=
"baseForm.introduction"
maxlength=
"200"
show-word-limit
autosize
></el-input>
show-word-limit
></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
type=
"datetimerange"
type=
"datetimerange"
v-model=
"baseForm.timeStr"
v-model=
"baseForm.timeStr"
...
@@ -324,7 +324,6 @@ export default {
...
@@ -324,7 +324,6 @@ export default {
{
required
:
true
,
message
:
"请选择开播时间"
,
trigger
:
"change"
}
{
required
:
true
,
message
:
"请选择开播时间"
,
trigger
:
"change"
}
]
]
},
},
// videoPicture: "0",
hasMediaCover
:
false
,
hasMediaCover
:
false
,
// 分享卡片
// 分享卡片
backgroundData
:
{
backgroundData
:
{
...
@@ -399,9 +398,6 @@ export default {
...
@@ -399,9 +398,6 @@ export default {
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
handleImgDelete
()
{
this
.
uploadForm
.
coverUrl
=
""
;
},
handleLook
(
type
)
{
handleLook
(
type
)
{
this
.
dialogType
=
type
;
this
.
dialogType
=
type
;
this
.
dialogVisibleImg
=
true
;
this
.
dialogVisibleImg
=
true
;
...
@@ -482,7 +478,7 @@ export default {
...
@@ -482,7 +478,7 @@ export default {
sucText
=
"编辑成功!"
;
sucText
=
"编辑成功!"
;
errText
=
"编辑失败!"
;
errText
=
"编辑失败!"
;
}
}
// 3
反复草稿
// 3
草稿新建
if
(
!!
this
.
incomingStatus
&&
this
.
incomingStatus
==
"3"
&&
!
params
.
draftFlag
)
{
if
(
!!
this
.
incomingStatus
&&
this
.
incomingStatus
==
"3"
&&
!
params
.
draftFlag
)
{
delete
params
.
id
;
delete
params
.
id
;
}
}
...
@@ -504,7 +500,6 @@ export default {
...
@@ -504,7 +500,6 @@ export default {
previousNextStep
(
step
)
{
previousNextStep
(
step
)
{
if
(
step
==
"next"
)
{
if
(
step
==
"next"
)
{
this
.
getFormValidation
();
this
.
getFormValidation
();
console
.
log
(
this
.
baseForm
);
if
(
this
.
basevalid
)
{
if
(
this
.
basevalid
)
{
this
.
activePage
=
"2"
;
this
.
activePage
=
"2"
;
}
}
...
@@ -543,8 +538,8 @@ export default {
...
@@ -543,8 +538,8 @@ export default {
this
.
$message
.
error
(
"图片体积需小于10M"
);
this
.
$message
.
error
(
"图片体积需小于10M"
);
return
;
return
;
}
}
var
reader
=
new
FileReader
();
let
reader
=
new
FileReader
();
var
fileInfo
=
e
.
srcElement
.
files
[
0
];
let
fileInfo
=
e
.
srcElement
.
files
[
0
];
reader
.
readAsDataURL
(
fileInfo
);
reader
.
readAsDataURL
(
fileInfo
);
reader
.
onload
=
e
=>
{
reader
.
onload
=
e
=>
{
const
imgFile
=
e
.
target
.
result
;
const
imgFile
=
e
.
target
.
result
;
...
...
src/views/liveList/index.vue
View file @
e6694c5
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
:src=
"scope.scope.liveVideoCover"
style=
"width: 360px; height: 360px"
/>
:src=
"scope.scope.liveVideoCover"
style=
"width: 360px; height: 360px"
/>
</div>
</div>
<img
v-if=
"scope.scope.liveVideoCover"
:src=
"scope.scope.liveVideoCover"
<img
v-if=
"scope.scope.liveVideoCover"
:src=
"scope.scope.liveVideoCover"
style=
"width: 36px; height: 36px"
slot=
"reference"
/>
style=
"width: 36px; height: 36px
;margin-right: 8px
"
slot=
"reference"
/>
</el-popover>
</el-popover>
<span
class=
"name"
>
{{
scope
.
scope
.
name
}}
</span>
<span
class=
"name"
>
{{
scope
.
scope
.
name
}}
</span>
</div>
</div>
...
@@ -202,9 +202,9 @@ export default {
...
@@ -202,9 +202,9 @@ export default {
attrs
:
{
attrs
:
{
type
:
"text"
type
:
"text"
},
},
condition
:
row
=>
{
//
condition: row => {
return
row
.
status
!==
1
;
//
return row.status !== 1;
},
//
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
this
.
$apis
.
live
.
LiveRoomDetailApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
$apis
.
live
.
LiveRoomDetailApi
({
id
:
row
.
id
}).
then
(
res
=>
{
...
@@ -398,10 +398,6 @@ export default {
...
@@ -398,10 +398,6 @@ export default {
.bgmName
{
.bgmName
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.name
{
margin-left
:
8px
;
}
}
}
.dialog-content
{
.dialog-content
{
...
...
vue.config.js
View file @
e6694c5
...
@@ -9,7 +9,7 @@ const cdn = {
...
@@ -9,7 +9,7 @@ const cdn = {
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
]
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
]
}
}
module
.
exports
=
{
module
.
exports
=
{
outputDir
:
`
../dist/
${
packageName
}
`
,
outputDir
:
`
dist
`
,
publicPath
,
publicPath
,
assetsDir
:
'static'
,
assetsDir
:
'static'
,
productionSourceMap
:
false
,
productionSourceMap
:
false
,
...
...
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