Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-content
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 4cd2dc78
authored
May 30, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
代码优化
1 parent
f8ac2c5a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
121 additions
and
31 deletions
src/api/modules/discover.js
src/components/Upload/index.vue
src/views/discoverManager/addProd.vue
src/views/discoverManager/components/AddVideo/index.vue
src/api/modules/discover.js
View file @
4cd2dc7
...
@@ -55,6 +55,18 @@ const getContentTypeListApi = params => {
...
@@ -55,6 +55,18 @@ const getContentTypeListApi = params => {
})
})
}
}
// 图片上传
const
uploadImgApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.common.uploadImg'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
updateStatusApi
=
params
=>
{
const
updateStatusApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
discover.content.updateStatus`
params
.
method
=
`
${
defaultPath
}
discover.content.updateStatus`
return
http
({
return
http
({
...
@@ -100,5 +112,6 @@ export default {
...
@@ -100,5 +112,6 @@ export default {
updateStatusApi
,
updateStatusApi
,
updateContentTypeApi
,
updateContentTypeApi
,
addContentApi
,
addContentApi
,
getContentDetailApi
getContentDetailApi
,
uploadImgApi
}
}
\ No newline at end of file
\ No newline at end of file
src/components/Upload/index.vue
View file @
4cd2dc7
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<label
v-if=
"name"
class=
"label"
for=
""
>
{{
name
}}
</label>
<label
v-if=
"name"
class=
"label"
for=
""
>
{{
name
}}
</label>
<div
class=
"img-item"
:style=
"defaultStyle"
>
<div
class=
"img-item"
:style=
"defaultStyle"
>
<div
v-if=
"!formObj[attr]"
class=
"add-img"
@
click
.
stop=
"addFile"
>
<div
v-if=
"!formObj[attr]"
class=
"add-img"
@
click
.
stop=
"addFile"
>
<input
type=
"file"
class=
"file"
id=
"file"
ref=
"fileRef"
@
change=
"handleFileChange"
accept=
"video/*, image/png, image/jpeg, image/gif, image/jpg
"
/>
<input
type=
"file"
class=
"file"
id=
"file"
ref=
"fileRef"
@
change=
"handleFileChange"
:accept=
"accept
"
/>
<i
class=
"el-icon-plus add"
></i>
<i
class=
"el-icon-plus add"
></i>
<p>
{{
btnName
}}
</p>
<p>
{{
btnName
}}
</p>
</div>
</div>
...
@@ -42,6 +42,10 @@ export default {
...
@@ -42,6 +42,10 @@ export default {
bigView
bigView
},
},
props
:
{
props
:
{
fileType
:
{
type
:
String
,
default
:
'image'
},
empty
:
{
empty
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
...
@@ -89,10 +93,20 @@ export default {
...
@@ -89,10 +93,20 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
accept
:
'image/png, image/jpeg, image/gif, image/jpg, image/webp'
,
dialogVisibleImg
:
false
,
dialogVisibleImg
:
false
,
dialogType
:
''
dialogType
:
''
}
}
},
},
created
(){
if
(
this
.
fileType
==
'all'
){
this
.
accept
=
'video/*, image/png, image/jpeg, image/gif, image/jpg, image/webp'
}
else
if
(
this
.
fileType
==
'video'
){
this
.
accept
=
'video/*'
}
else
{
this
.
accept
=
'image/png, image/jpeg, image/gif, image/jpg, image/webp'
}
},
computed
:
{
computed
:
{
},
},
...
@@ -112,12 +126,19 @@ export default {
...
@@ -112,12 +126,19 @@ export default {
handleFileChange
(
e
)
{
handleFileChange
(
e
)
{
var
file
=
e
.
srcElement
.
files
[
0
]
var
file
=
e
.
srcElement
.
files
[
0
]
if
(
this
.
fileType
==
'video'
&&
file
.
type
?.
indexOf
(
'video'
)
==-
1
)
{
this
.
$refs
.
fileRef
.
value
=
''
return
this
.
$message
.
error
(
'请上传mp4格式的视频'
)
}
if
(
this
.
fileType
==
'image'
&&
file
.
type
?.
indexOf
(
'image'
)
==-
1
)
{
this
.
$refs
.
fileRef
.
value
=
''
return
this
.
$message
.
error
(
'请上传格式为jpg、jpeg、png、webp、gif的图片'
)
}
if
(
file
.
type
?.
indexOf
(
'image'
)
>-
1
){
if
(
file
.
type
?.
indexOf
(
'image'
)
>-
1
){
this
.
uploadImg
(
e
)
this
.
uploadImg
(
e
)
}
else
{
}
else
{
this
.
uploadVideo
(
e
)
this
.
uploadVideo
(
e
)
}
}
},
},
uploadImg
(
e
)
{
uploadImg
(
e
)
{
var
file
=
e
.
srcElement
.
files
[
0
]
var
file
=
e
.
srcElement
.
files
[
0
]
...
@@ -127,10 +148,12 @@ export default {
...
@@ -127,10 +148,12 @@ export default {
const
imgFile
=
event
.
target
.
result
const
imgFile
=
event
.
target
.
result
const
arrBase64
=
imgFile
.
split
(
','
)
const
arrBase64
=
imgFile
.
split
(
','
)
const
base64
=
file
.
name
.
split
(
'.'
).
pop
()
+
'@'
+
arrBase64
[
1
]
const
base64
=
file
.
name
.
split
(
'.'
).
pop
()
+
'@'
+
arrBase64
[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
this
.
$apis
.
discover
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
formObj
[
this
.
attr
]
=
res
this
.
formObj
[
this
.
attr
]
=
res
console
.
log
(
this
.
formObj
,
res
)
this
.
$emit
(
'uploadSuccess'
,
{
attr
:
this
.
attr
,
url
:
res
})
this
.
$emit
(
'uploadSuccess'
,
{
attr
:
this
.
attr
,
url
:
res
})
this
.
$refs
.
fileRef
.
value
=
''
}).
catch
(
err
=>
{
this
.
$refs
.
fileRef
.
value
=
''
})
})
}
}
},
},
...
@@ -142,18 +165,23 @@ export default {
...
@@ -142,18 +165,23 @@ export default {
// this.$message.error('上传视频大小不能超过' + this.limitSize + 'MB!')
// this.$message.error('上传视频大小不能超过' + this.limitSize + 'MB!')
// return true
// return true
// }
// }
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.3)'
})
upload
.
init
().
then
(
res
=>
{
upload
.
init
().
then
(
res
=>
{
if
(
res
.
status
==
0
)
{
if
(
res
.
status
==
0
)
{
upload
upload
.
uploaded
(
file
)
.
uploaded
(
file
)
.
then
(
res
=>
{
.
then
(
res
=>
{
self
.
formObj
[
this
.
attr
]
=
res
.
video
.
url
self
.
formObj
[
this
.
attr
]
=
res
.
video
.
url
console
.
log
(
self
.
formObj
,
res
.
video
.
url
)
self
.
$emit
(
'uploadSuccess'
,
{
attr
:
this
.
attr
,
url
:
res
.
video
.
url
})
self
.
$emit
(
'uploadSuccess'
,
{
attr
:
this
.
attr
,
url
:
res
.
video
.
url
})
})
})
.
finally
(
end
=>
{
.
finally
(
end
=>
{
console
.
log
(
end
)
loading
.
close
()
self
.
$refs
.
fileRef
.
value
=
''
})
})
upload
.
uploadEvent
(
''
,
res
=>
{
upload
.
uploadEvent
(
''
,
res
=>
{
console
.
log
(
res
,
'视频上传完成'
)
console
.
log
(
res
,
'视频上传完成'
)
...
...
src/views/discoverManager/addProd.vue
View file @
4cd2dc7
...
@@ -18,14 +18,17 @@
...
@@ -18,14 +18,17 @@
<Upload
v-else
:default-style=
"
{width: '84px', height: '84px'}" :formObj="formObj" btnName="创建封面" attr="prodImg">
</Upload>
<Upload
v-else
:default-style=
"
{width: '84px', height: '84px'}" :formObj="formObj" btnName="创建封面" attr="prodImg">
</Upload>
</div>
</div>
<div
slot=
"mainImageSlot"
class=
"main-image-Slot"
>
<div
slot=
"mainImageSlot"
class=
"main-image-Slot"
>
<Upload
placement=
"right"
tip=
"图片&视频只能上传一个"
:formObj=
"formObj"
attr=
"imageUrl"
></Upload>
<Upload
placement=
"right"
tip=
"图片&视频只能上传一个"
fileType=
"all"
:formObj=
"formObj"
attr=
"imageUrl"
></Upload>
</div>
</div>
<div
slot=
"expansionDetailSlot"
class=
"expansion-detail-slot"
>
<div
slot=
"expansionDetailSlot"
class=
"expansion-detail-slot"
>
<div>
<div>
<div
:class=
"['tab-item',
{'active-tab': item.selected
}]" :style="{'padding': contentTypeObj.id
&&
contentTypeObj.id==item.id ? 0 : '0 20px'}" @dblclick.stop="editContentType(item)
" @click.stop="selectContentType(item)" v-for="item in contentTypeList" :key="item.id">
<div
:class=
"['tab-item',
{'active-tab': item.selected
, 'editing': contentTypeObj.id
&&
contentTypeObj.id==item.id}]
" @click.stop="selectContentType(item)" v-for="item in contentTypeList" :key="item.id">
<img
v-if=
"item.selected"
class=
"active-label"
@
click=
"showOperateDialog(1, item)"
:src=
"require('@/assets/active-label.png')"
/>
<img
v-if=
"item.selected"
class=
"active-label"
@
click=
"showOperateDialog(1, item)"
:src=
"require('@/assets/active-label.png')"
/>
<el-input
v-if=
"contentTypeObj.id && contentTypeObj.id==item.id"
v-focus
v-model=
"contentTypeObj.name"
@
blur=
"blurContentType"
type=
"text"
class=
"add-input"
></el-input>
<el-input
v-if=
"contentTypeObj.id && contentTypeObj.id==item.id"
v-focus
v-model=
"contentTypeObj.name"
@
blur=
"blurContentType"
type=
"text"
class=
"add-input"
></el-input>
<span
v-else
>
{{
item
.
name
}}
</span>
<template
v-else
>
<span
>
{{
item
.
name
}}
</span>
<i
class=
"el-icon-edit edit"
@
click
.
stop=
"editContentType(item)"
></i>
</
template
>
</div>
</div>
<div
v-if=
"!isEditType"
class=
"tab-item add-btn"
@
click=
"addContentType"
><i
class=
"el-icon-plus"
></i>
新建
</div>
<div
v-if=
"!isEditType"
class=
"tab-item add-btn"
@
click=
"addContentType"
><i
class=
"el-icon-plus"
></i>
新建
</div>
<el-input
v-else
v-focus
v-model=
"contentTypeObj.name"
@
blur=
"blurContentType"
type=
"text"
class=
"add-input"
></el-input>
<el-input
v-else
v-focus
v-model=
"contentTypeObj.name"
@
blur=
"blurContentType"
type=
"text"
class=
"add-input"
></el-input>
...
@@ -38,11 +41,11 @@
...
@@ -38,11 +41,11 @@
<Upload
tip=
"建议尺寸:最大5M,宽度750px"
btnName=
"上传详情图"
:formObj=
"selectedtypeList[curTypeIdx]"
attr=
"posterUrl"
@
delImage=
"delImage"
></Upload>
<Upload
tip=
"建议尺寸:最大5M,宽度750px"
btnName=
"上传详情图"
:formObj=
"selectedtypeList[curTypeIdx]"
attr=
"posterUrl"
@
delImage=
"delImage"
></Upload>
</div>
</div>
<div
slot=
"detailVideoSlot"
>
<div
slot=
"detailVideoSlot"
>
<Upload
btnName=
"上传详情视频"
:formObj=
"selectedtypeList[curTypeIdx]"
@
delImage=
"delImage"
attr=
"videoUrl"
></Upload>
<Upload
btnName=
"上传详情视频"
fileType=
"video"
:formObj=
"selectedtypeList[curTypeIdx]"
@
delImage=
"delImage"
attr=
"videoUrl"
></Upload>
</div>
</div>
<div
slot=
"mouseEventSlot"
class=
"link-slot"
>
<div
slot=
"mouseEventSlot"
class=
"link-slot"
>
<el-checkbox
@
change=
"showBox($event, 'mouseShow')"
@
click
.
stop=
"showBox(1, 'mouseShow')"
v-model=
"selectedtypeList[curTypeIdx].posterEventType"
>
长按跳链接
</el-checkbox>
<el-checkbox
@
change=
"showBox($event, 'mouseShow')"
@
click
.
stop=
"showBox(1, 'mouseShow')"
v-model=
"selectedtypeList[curTypeIdx].posterEventType"
>
长按跳链接
</el-checkbox>
<span
class=
"link-btn"
@
click=
"mouseShow = true"
>
链接
</span>
<span
class=
"link-btn"
ref=
"mouseNameRef"
@
click=
"mouseShow = true"
>
链接
</span>
<!-- 鼠标链接弹窗 -->
<!-- 鼠标链接弹窗 -->
<div
class=
"link-dialog"
ref=
"mouseRef"
v-show=
"mouseShow && selectedtypeList[curTypeIdx].posterEventType"
>
<div
class=
"link-dialog"
ref=
"mouseRef"
v-show=
"mouseShow && selectedtypeList[curTypeIdx].posterEventType"
>
<label
for=
""
>
链接地址:
</label>
<label
for=
""
>
链接地址:
</label>
...
@@ -51,8 +54,8 @@
...
@@ -51,8 +54,8 @@
</div>
</div>
<div
slot=
"buttonEventSlot"
class=
"link-slot"
>
<div
slot=
"buttonEventSlot"
class=
"link-slot"
>
<el-checkbox
@
change=
"showBox($event, 'btnShow')"
v-model=
"selectedtypeList[curTypeIdx].buttonEventType"
>
按钮跳链接
</el-checkbox>
<el-checkbox
@
change=
"showBox($event, 'btnShow')"
v-model=
"selectedtypeList[curTypeIdx].buttonEventType"
>
按钮跳链接
</el-checkbox>
<span
v-if=
"!selectedtypeList[curTypeIdx].buttonEventName"
@
click
.
stop=
"showBox(1, 'btnShow')"
class=
"link-btn"
>
链接
</span>
<span
ref=
"btnNameRef"
v-if=
"!selectedtypeList[curTypeIdx].buttonEventName"
@
click
.
stop=
"showBox(1, 'btnShow')"
class=
"link-btn"
>
链接
</span>
<span
v-else
class=
"link-btn"
@
click=
"btnShow = true
"
>
{{
selectedtypeList
[
curTypeIdx
].
buttonEventName
}}
</span>
<span
ref=
"btnNameRef"
v-else
class=
"link-btn"
@
click
.
stop=
"showBox(1, 'btnShow')
"
>
{{selectedtypeList[curTypeIdx].buttonEventName}}
</span>
<!-- 按钮链接弹窗 -->
<!-- 按钮链接弹窗 -->
<div
class=
"link-dialog button-link-dialog"
ref=
"btnRef"
v-show=
"btnShow && selectedtypeList[curTypeIdx].buttonEventType"
>
<div
class=
"link-dialog button-link-dialog"
ref=
"btnRef"
v-show=
"btnShow && selectedtypeList[curTypeIdx].buttonEventType"
>
<div>
<div>
...
@@ -101,7 +104,6 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -101,7 +104,6 @@ import glsxCombiForm from '@/components/glsx-combi-form'
},
},
data
()
{
data
()
{
return
{
return
{
timer
:
null
,
size
:
'small'
,
size
:
'small'
,
isEditType
:
false
,
isEditType
:
false
,
coverVisible
:
false
,
coverVisible
:
false
,
...
@@ -157,6 +159,32 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -157,6 +159,32 @@ import glsxCombiForm from '@/components/glsx-combi-form'
trigger
:
'change'
trigger
:
'change'
}
}
],
],
expansionDetail
:
[
{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
let
noProblemNum
=
0
,
len
=
this
.
selectedtypeList
.
length
for
(
let
i
=
0
;
i
<
len
;
i
++
){
const
item
=
this
.
selectedtypeList
[
i
]
if
(
!
item
.
posterUrl
)
{
callback
(
new
Error
(
`请上传
${
item
.
name
}
的详情图片`
))
}
else
if
(
item
.
posterEventType
&&
!
item
.
posterEventUrl
){
callback
(
new
Error
(
`请输入
${
item
.
name
}
图片鼠标事件的链接地址`
))
}
else
if
(
item
.
buttonEventType
&&
!
item
.
buttonEventUrl
){
callback
(
new
Error
(
`请输入
${
item
.
name
}
详情按钮事件的链接地址`
))
}
else
if
(
item
.
buttonEventType
&&
!
item
.
buttonEventName
){
callback
(
new
Error
(
`请输入
${
item
.
name
}
详情按钮事件的按钮名称`
))
}
else
{
noProblemNum
++
}
}
if
(
noProblemNum
==
len
){
callback
()
}
},
trigger
:
'change'
}
],
},
},
formObj
:{
formObj
:{
menuId
:
''
,
menuId
:
''
,
...
@@ -245,6 +273,17 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -245,6 +273,17 @@ import glsxCombiForm from '@/components/glsx-combi-form'
addHtml
:
'buttonEventSlot'
addHtml
:
'buttonEventSlot'
}
}
],
],
expansionRule
:
{
detailImage
:
[
{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
callback
()
},
trigger
:
'change'
}
],
},
curTypeIdx
:
0
,
curTypeIdx
:
0
,
contentTypeList
:
[],
contentTypeList
:
[],
selectedtypeList
:
[],
selectedtypeList
:
[],
...
@@ -273,8 +312,9 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -273,8 +312,9 @@ import glsxCombiForm from '@/components/glsx-combi-form'
},
},
methods
:
{
methods
:
{
eventListener
(
e
){
eventListener
(
e
){
if
(
!
this
.
$refs
?.
btnRef
?.
contains
(
e
.
target
))
this
.
btnShow
=
false
;
console
.
log
(
13
)
if
(
!
this
.
$refs
?.
mouseRef
?.
contains
(
e
.
target
))
this
.
mouseShow
=
false
;
if
(
!
this
.
$refs
?.
btnRef
?.
contains
(
e
.
target
)
&&
!
this
.
$refs
?.
btnNameRef
?.
contains
(
e
.
target
))
this
.
btnShow
=
false
;
if
(
!
this
.
$refs
?.
mouseRef
?.
contains
(
e
.
target
)
&&
!
this
.
$refs
?.
mouseNameRef
?.
contains
(
e
.
target
))
this
.
mouseShow
=
false
;
},
},
openCoverDialog
(){
openCoverDialog
(){
this
.
coverVisible
=
true
this
.
coverVisible
=
true
...
@@ -308,7 +348,7 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -308,7 +348,7 @@ import glsxCombiForm from '@/components/glsx-combi-form'
const
params
=
{
const
params
=
{
name
name
}
}
if
(
id
)
params
.
serialVersionUID
=
id
if
(
id
)
params
.
id
=
id
this
.
$apis
.
discover
.
updateContentTypeApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
discover
.
updateContentTypeApi
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
clearContentTypeInfo
()
this
.
clearContentTypeInfo
()
...
@@ -387,13 +427,6 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -387,13 +427,6 @@ import glsxCombiForm from '@/components/glsx-combi-form'
})
})
},
},
selectContentType
(
row
){
selectContentType
(
row
){
// if (this.timer) {
// clearTimeout(this.timer)
// }
// // 设置延时器 超过300ms为单击 300ms内点击则为双击事件
// this.timer = setTimeout(() => {
// },300)
const
targetIdx
=
this
.
selectedtypeList
.
findIndex
(
item
=>
item
.
typeId
==
row
.
id
)
const
targetIdx
=
this
.
selectedtypeList
.
findIndex
(
item
=>
item
.
typeId
==
row
.
id
)
if
(
targetIdx
>-
1
)
{
if
(
targetIdx
>-
1
)
{
row
.
selected
=
false
row
.
selected
=
false
...
@@ -417,11 +450,10 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -417,11 +450,10 @@ import glsxCombiForm from '@/components/glsx-combi-form'
}
}
},
},
editContentType
(
item
){
editContentType
(
item
){
if
(
this
.
timer
)
{
this
.
contentTypeObj
=
{
// 清除延时器
id
:
item
.
id
,
clearTimeout
(
this
.
timer
)
name
:
item
.
name
}
}
this
.
contentTypeObj
.
id
=
item
.
id
},
},
addContentType
(){
addContentType
(){
this
.
isEditType
=
true
this
.
isEditType
=
true
...
@@ -475,6 +507,11 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -475,6 +507,11 @@ import glsxCombiForm from '@/components/glsx-combi-form'
cursor
:
default
;
cursor
:
default
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
relative
;
position
:
relative
;
&:hover{
.edit{
display
:
inline-block
;
}
}
.active-label
{
.active-label
{
position
:
absolute
;
position
:
absolute
;
right
:
-1px
;
right
:
-1px
;
...
@@ -482,12 +519,24 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -482,12 +519,24 @@ import glsxCombiForm from '@/components/glsx-combi-form'
width
:
16px
;
width
:
16px
;
height
:
16px
;
height
:
16px
;
}
}
.edit
{
display
:
none
;
top
:
50%
;
transform
:
translateY
(
-50%
);
position
:
absolute
;
cursor
:
pointer
;
margin-left
:
2px
;
}
}
}
.active-tab
{
.active-tab
{
border
:
1px
solid
#5850FF
;
border
:
1px
solid
#5850FF
;
color
:
#5850FF
;
color
:
#5850FF
;
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.editing
{
border
:
none
;
padding
:
0
;
}
.add-btn
{
.add-btn
{
background-color
:
transparent
;
background-color
:
transparent
;
border
:
1px
dashed
#00000026
;
border
:
1px
dashed
#00000026
;
...
...
src/views/discoverManager/components/AddVideo/index.vue
View file @
4cd2dc7
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<span
class=
"module active"
>
{{
contentType
[
contentObj
.
type
]
}}
</span>
<span
class=
"module active"
>
{{
contentType
[
contentObj
.
type
]
}}
</span>
</div>
</div>
<div
slot=
"mainVideoSlot"
class=
"main-video-slot"
>
<div
slot=
"mainVideoSlot"
class=
"main-video-slot"
>
<Upload
:formObj=
"formObj"
btnName=
"上传视频"
attr=
"vedioUrl"
></Upload>
<Upload
fileType=
"video"
:formObj=
"formObj"
btnName=
"上传视频"
attr=
"vedioUrl"
></Upload>
<Upload
tip=
"建议尺寸:最大5M,138*84px"
:formObj=
"formObj"
btnName=
"上传视频封面"
attr=
"prodImg"
></Upload>
<Upload
tip=
"建议尺寸:最大5M,138*84px"
:formObj=
"formObj"
btnName=
"上传视频封面"
attr=
"prodImg"
></Upload>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
...
...
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