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 43866653
authored
May 31, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
观看人数限制数字
1 parent
4cd2dc78
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
9 deletions
src/views/discoverManager/addProd.vue
src/views/discoverManager/components/AddVideo/index.vue
src/views/discoverManager/components/Menu/index.vue
src/views/discoverManager/index.vue
src/views/discoverManager/addProd.vue
View file @
4386665
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
<div
slot=
"mainImageSlot"
class=
"main-image-Slot"
>
<div
slot=
"mainImageSlot"
class=
"main-image-Slot"
>
<Upload
placement=
"right"
tip=
"图片&视频只能上传一个"
fileType=
"all"
:formObj=
"formObj"
attr=
"imageUrl"
></Upload>
<Upload
placement=
"right"
tip=
"图片&视频只能上传一个"
fileType=
"all"
:formObj=
"formObj"
attr=
"imageUrl"
></Upload>
</div>
</div>
<div
slot=
"viewSlot"
class=
"view-slot"
>
<el-input
placeholder=
"请输入观看人数"
v-model=
"formObj.view"
onkeyup=
"value=value.replace(/^(0+)|[^\d]+/g,'')"
type=
"text"
></el-input>
</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, 'editing': contentTypeObj.id
&&
contentTypeObj.id==item.id}]" @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">
...
@@ -239,8 +242,7 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -239,8 +242,7 @@ import glsxCombiForm from '@/components/glsx-combi-form'
{
{
label
:
'观看人数'
,
label
:
'观看人数'
,
name
:
'view'
,
name
:
'view'
,
type
:
'input'
,
addHtml
:
'viewSlot'
isDisabled
:
false
,
},
},
{
{
label
:
'展开详情'
,
label
:
'展开详情'
,
...
@@ -379,7 +381,7 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -379,7 +381,7 @@ import glsxCombiForm from '@/components/glsx-combi-form'
if
(
res
.
mediaType
==
2
){
if
(
res
.
mediaType
==
2
){
this
.
formObj
.
imageUrl
=
res
.
vedioUrl
this
.
formObj
.
imageUrl
=
res
.
vedioUrl
}
}
res
.
detailList
.
forEach
(
item
=>
{
res
.
detailList
?
.
forEach
(
item
=>
{
const
target
=
this
.
contentTypeList
.
find
(
ele
=>
ele
.
id
==
item
.
typeId
)
const
target
=
this
.
contentTypeList
.
find
(
ele
=>
ele
.
id
==
item
.
typeId
)
if
(
target
){
if
(
target
){
target
.
selected
=
true
target
.
selected
=
true
...
@@ -491,6 +493,11 @@ import glsxCombiForm from '@/components/glsx-combi-form'
...
@@ -491,6 +493,11 @@ import glsxCombiForm from '@/components/glsx-combi-form'
color
:
#5850FF
;
color
:
#5850FF
;
}
}
}
}
.view-slot
{
/deep/
.el-input{
width
:
136px
;
}
}
.expansion-detail-slot
{
.expansion-detail-slot
{
.tab-item
{
.tab-item
{
display
:
inline-block
;
display
:
inline-block
;
...
...
src/views/discoverManager/components/AddVideo/index.vue
View file @
4386665
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
<Upload
fileType=
"video"
: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>
<div
slot=
"viewSlot"
class=
"view-slot"
>
<el-input
placeholder=
"请输入观看人数"
v-model=
"formObj.view"
onkeyup=
"value=value.replace(/^(0+)|[^\d]+/g,'')"
type=
"text"
></el-input>
</div>
</glsx-combi-form>
</glsx-combi-form>
</GLDialog>
</GLDialog>
</
template
>
</
template
>
...
@@ -114,7 +117,7 @@ export default {
...
@@ -114,7 +117,7 @@ export default {
{
{
label
:
'观看人数'
,
label
:
'观看人数'
,
name
:
'view'
,
name
:
'view'
,
type
:
'inpu
t'
addHtml
:
'viewSlo
t'
},
},
],
],
rules
:
{
rules
:
{
...
@@ -234,4 +237,10 @@ export default {
...
@@ -234,4 +237,10 @@ export default {
}
}
}
}
}
}
.view-slot
{
/deep/
.el-input{
width
:
136px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/discoverManager/components/Menu/index.vue
View file @
4386665
...
@@ -198,7 +198,8 @@
...
@@ -198,7 +198,8 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.menu
{
.menu
{
padding
:
18px
4px
18px
16px
;
padding
:
18px
4px
18px
16px
;
width
:
250px
;
width
:
260px
;
box-sizing
:
border-box
;
.menu-dialog-body{
.menu-dialog-body{
height
:
150px
;
height
:
150px
;
display
:
flex
;
display
:
flex
;
...
...
src/views/discoverManager/index.vue
View file @
4386665
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
ref=
"tableRef"
:pageConf=
"pageConf"
:searchForm=
"searchObj"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
ref=
"tableRef"
:pageConf=
"pageConf"
:searchForm=
"searchObj"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"coverImageSlot"
slot-scope=
"scope"
>
<div
slot=
"coverImageSlot"
slot-scope=
"scope"
>
<el-image
<el-image
style=
"width: 100px; height: 100px
"
class=
"cover-img
"
:src=
"scope.scope.prodImg"
:src=
"scope.scope.prodImg"
:preview-src-list=
"[scope.scope.prodImg]"
>
:preview-src-list=
"[scope.scope.prodImg]"
>
</el-image>
</el-image>
...
@@ -276,7 +276,7 @@ export default {
...
@@ -276,7 +276,7 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.ctnr
{
.ctnr
{
display
:
flex
;
position
:
relative
;
.search-wrap{
.search-wrap{
/deep/
.el-form-item
{
/deep/
.el-form-item
{
&,
.search-item{
&,
.search-item{
...
@@ -318,14 +318,19 @@ export default {
...
@@ -318,14 +318,19 @@ export default {
}
}
}
}
}
}
.cover-img
{
height
:
36px
;
width
:
36px
;
}
.list
{
.list
{
flex
:
1
;
background-color
:
#fff
;
background-color
:
#fff
;
padding
:
20px
;
padding
:
20px
;
margin-left
:
276px
;
}
}
.menu
{
.menu
{
background-color
:
#fff
;
background-color
:
#fff
;
margin-right
:
20px
;
position
:
absolute
;
height
:
-webkit-fill-available
;
}
}
}
}
</
style
>
</
style
>
...
...
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