Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
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 c55243bc
authored
Jan 14, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
7af7c269
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
28 deletions
src/views/channel/add.vue
src/views/channel/index.vue
src/views/store/components/activity.vue
src/views/store/components/carChannel.vue
src/views/store/components/membrane.vue
src/views/store/components/selectGiftDialog.vue
src/views/store/content.vue
src/views/store/edit.vue
src/views/store/index.vue
src/views/channel/add.vue
View file @
c55243b
...
...
@@ -3,7 +3,7 @@
<div
class=
"add-container"
>
<div
class=
"title"
>
{{
this
.
channelForm
.
channelName
}}
编辑
</div>
<div
class=
"channel-content gl-form-page"
>
<el-form
ref=
"ruleForm"
:model=
"channelForm"
label-width=
"154px"
:rules=
"rules"
>
<el-form
ref=
"ruleForm"
:model=
"channelForm"
label-width=
"154px"
size=
"small"
:rules=
"rules"
>
<el-form-item
label=
"频道名称:"
prop=
"channelName"
>
<el-input
v-model=
"channelForm.channelName"
:disabled=
"isDisabled"
maxlength=
"4"
></el-input>
</el-form-item>
...
...
@@ -23,7 +23,7 @@
</div>
</el-form-item>
</span>
<el-form-item
label=
"频道banner:"
prop=
"channelImg"
>
<el-form-item
label=
"频道banner:"
prop=
"channelImg"
style=
"margin-top:15px;"
>
<glsx-preview
:picOptions=
"picOptions"
:imageUrlArr=
"channelForm.channelImgArr"
@
change=
"changeChannelImg"
></glsx-preview>
<div
class=
"el-form-item__error"
v-if=
"channelImgFlag"
>
请上传频道banner
</div>
</el-form-item>
...
...
src/views/channel/index.vue
View file @
c55243b
...
...
@@ -68,14 +68,16 @@ export default {
tableColumns
:
[
{
label
:
'频道名称'
,
prop
:
'channelName
'
,
prop
:
'channelName'
,
formatter
:
cellValue
=>
{
return
cellValue
.
channelName
||
'--'
}
},
{
label
:
'频道宣传语'
,
prop
:
'promotion '
,
prop
:
'promotion'
,
width
:
300
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
promotion
||
'--'
}
...
...
src/views/store/components/activity.vue
View file @
c55243b
<
template
>
<div
class=
"activity-content gl-form-page"
>
<el-form
ref=
"ruleForm"
:model=
"activityForm"
label-width=
"154px"
:rules=
"rules"
>
<el-form
ref=
"ruleForm"
:model=
"activityForm"
label-width=
"154px"
size=
"small"
:rules=
"rules"
>
<el-form-item
label=
"频道卡片主标题:"
prop=
"topicTitle"
>
<el-input
v-model=
"activityForm.topicTitle"
maxlength=
"4"
></el-input>
</el-form-item>
...
...
src/views/store/components/carChannel.vue
View file @
c55243b
...
...
@@ -26,7 +26,7 @@
<!-- 具体内容 -->
<div
slot=
"concreteContent"
class=
"concrete-content"
>
<div
class=
"gl-form-page"
>
<el-form
ref=
"ruleForm"
:model=
"editForm"
:rules=
"rules"
>
<el-form
ref=
"ruleForm"
:model=
"editForm"
size=
"small"
:rules=
"rules"
>
<span
v-for=
"(item, index) in editForm.contentList"
:key=
"index"
class=
"line-item"
>
<div
class=
"delect-box"
@
click=
"delectContent(index)"
>
<img
class=
"icon-dele"
src=
"@/assets/channel/dele.png"
/>
...
...
@@ -91,7 +91,7 @@
<el-radio
:label=
"2"
>
上传图片
</el-radio>
</el-radio-group>
<div
class=
"gl-form-page mediaType-content"
>
<el-form
ref=
"ruleForm"
:model=
"editForm"
:rules=
"rules"
>
<el-form
ref=
"ruleForm"
:model=
"editForm"
size=
"small"
:rules=
"rules"
>
<span
v-if=
"editForm.mediaType == 1"
>
<el-form-item
label=
"选择视频:"
:prop=
"'contentList.' + 0 + '.mediaUrl'"
:rules=
"rules.mediaCover"
>
<el-select
v-model=
"editForm.contentList[0].mediaUrl"
placeholder=
"请选择视频"
@
change=
"changeVideo(0)"
>
...
...
@@ -911,7 +911,7 @@ export default {
line-height
:
1
;
padding-top
:
4px
;
position
:
absolute
;
bottom
:
-
30
px
;
bottom
:
-
26
px
;
left
:
154px
;
}
}
...
...
@@ -942,7 +942,7 @@ export default {
.publicPraise-box
{
margin-top
:
-7px
;
/deep/
.el-form-item__label
{
color
:
#f
ff
;
color
:
#f
1f1f1
;
}
}
.dele-publicPraise
{
...
...
src/views/store/components/membrane.vue
View file @
c55243b
<
template
>
<div
class=
"membrane-content gl-form-page"
>
<el-form
ref=
"ruleForm"
:model=
"membraneForm"
label-width=
"154px"
:rules=
"rules"
>
<el-form
ref=
"ruleForm"
:model=
"membraneForm"
label-width=
"154px"
size=
"small"
:rules=
"rules"
>
<el-form-item
label=
"上传类型:"
prop=
"mediaType"
>
<el-radio-group
v-model=
"membraneForm.mediaType"
@
input=
"changeMediaType"
>
<el-radio
:label=
"1"
>
视频
</el-radio>
...
...
src/views/store/components/selectGiftDialog.vue
View file @
c55243b
<!-- 选择礼包弹窗 -->
<
template
>
<GLDialog
class=
"muti-gift"
bigTitle=
"选择
礼包内容
"
mode=
"big"
:visible
.
sync=
"isSelectGiftVisible"
:before-close=
"handleGiftClose"
@
onOk=
"handleGiftConfirm"
@
onCancel=
"handleGiftClose"
v-loading=
"loading"
>
<GLDialog
class=
"muti-gift"
bigTitle=
"选择
券
"
mode=
"big"
:visible
.
sync=
"isSelectGiftVisible"
:before-close=
"handleGiftClose"
@
onOk=
"handleGiftConfirm"
@
onCancel=
"handleGiftClose"
v-loading=
"loading"
>
<div
class=
"flex-default"
>
<div
class=
"gift-table"
>
<el-tabs
class=
"gift-tabs"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
...
...
@@ -165,7 +165,7 @@ export default {
},
{
label
:
'剩余库存'
,
prop
:
'
stock
'
prop
:
'
residueAmount
'
}
]
}
...
...
src/views/store/content.vue
View file @
c55243b
<
template
>
<div
class=
"content-wrap"
>
<div
class=
"container edit-container"
style=
"min-height: 520px !important"
>
<p
class=
"edit-title"
id=
"basic"
>
新增内容
</p>
<p
class=
"edit-title"
id=
"basic"
>
{{
contentTitle
}}
</p>
<component
:is=
"currentComponent"
ref=
"componentRef"
:merchantChannelId=
"merchantChannelId"
:topicId=
"topicId"
:channelType=
"channelType"
></component>
</div>
<GLFooter>
...
...
@@ -26,6 +26,7 @@ export default {
},
data
()
{
return
{
contentTitle
:
''
,
merchantChannelId
:
this
.
$route
.
query
.
merchantChannelId
?
this
.
$route
.
query
.
merchantChannelId
:
''
,
//门店频道id
topicId
:
this
.
$route
.
query
.
topicId
?
this
.
$route
.
query
.
topicId
:
''
,
//频道主题ID
channelType
:
this
.
$route
.
query
.
channelType
?
this
.
$route
.
query
.
channelType
:
''
,
//频道类型
...
...
@@ -34,6 +35,8 @@ export default {
}
},
created
()
{
let
{
$title
}
=
this
.
$route
.
query
this
.
contentTitle
=
$title
?
$title
:
'新增内容'
//判断显示模块
this
.
judgeModule
()
//获取视频
...
...
src/views/store/edit.vue
View file @
c55243b
...
...
@@ -27,7 +27,7 @@
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.contentType == 1"
@
click=
"handleConfig(scope.scope)"
>
{{ scope.scope.status == 0 ? '待配置' : '编辑' }}
</el-button>
<
template
v-else
>
<el-button
type=
"text"
v-if=
"scope.scope.status == 1
&&
scope.scope.topStatus == 0"
@
click=
"handleTop(scope.scope)"
>
置顶
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 1
&&
scope.scope.topStatus == 0"
@
click=
"handleTop(scope.scope)"
>
置顶
</el-button>
<el-button
type=
"text"
@
click=
"handleAddContent(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 1"
@
click=
"handleOut(scope.scope, '下架')"
>
下架
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 2"
@
click=
"handleOut(scope.scope, '上架')"
>
上架
</el-button>
...
...
@@ -63,7 +63,7 @@ export default {
searchFormData
:
[],
formData
:
[
{
label
:
'频道卡片主
主
题'
,
label
:
'频道卡片主
标
题'
,
name
:
'topicTitle'
,
type
:
'input'
,
filter
:
'1'
...
...
@@ -120,7 +120,7 @@ export default {
label
:
'宣传文案'
,
prop
:
'promotion'
,
line
:
1
,
minW
idth
:
200
,
w
idth
:
200
,
formatter
:
cellValue
=>
{
return
cellValue
.
contentList
[
0
].
promotion
},
...
...
@@ -141,7 +141,7 @@ export default {
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
150
,
line
:
1
,
line
:
1
,
filter
:
'3,4'
,
formatter
:
cellValue
=>
{
return
cellValue
.
contentList
[
0
].
activityName
...
...
@@ -280,19 +280,19 @@ export default {
res
.
forEach
(
item
=>
{
this
.
tabPaneList
.
push
({
label
:
item
.
channelName
,
name
:
item
.
channelType
,
name
:
item
.
channelType
+
''
,
merchantChannelId
:
item
.
id
})
})
this
.
SET_MERCHANT_ID
({
id
:
this
.
merchantId
})
this
.
SET_CHANNEL_STYLE
({
channelStyle
:
res
[
0
].
channelStyle
})
!
this
.
channelType
&&
this
.
SET_CHANNEL_TYPE
({
channelType
:
res
[
0
].
channelType
})
this
.
activeName
=
res
[
0
].
channelType
this
.
activeName
=
res
[
0
].
channelType
+
''
this
.
merchantChannelId
=
res
[
0
].
id
this
.
tabPaneText
=
res
[
0
].
channelName
this
.
isFlag
=
true
if
(
this
.
channelType
)
{
this
.
activeName
=
this
.
channelType
this
.
activeName
=
this
.
channelType
+
''
this
.
handleClick
()
}
})
...
...
@@ -300,14 +300,14 @@ export default {
//新增编辑内容
handleAddContent
(
val
)
{
if
(
val
)
{
this
.
$router
.
push
(
`/store/content?merchantChannelId=
${
this
.
merchantChannelId
}
&topicId=
${
val
.
topicId
}
&channelType=
${
this
.
activeName
}
`
)
this
.
$router
.
push
(
`/store/content?merchantChannelId=
${
this
.
merchantChannelId
}
&topicId=
${
val
.
topicId
}
&channelType=
${
this
.
activeName
}
&$title=编辑内容
`
)
}
else
{
this
.
$router
.
push
(
`/store/content?merchantChannelId=
${
this
.
merchantChannelId
}
&channelType=
${
this
.
activeName
}
`
)
this
.
$router
.
push
(
`/store/content?merchantChannelId=
${
this
.
merchantChannelId
}
&channelType=
${
this
.
activeName
}
&$title=新增内容
`
)
}
},
//膜类待配置
handleConfig
(
val
)
{
this
.
$router
.
push
(
`/store/content?topicId=
${
val
.
topicId
}
&channelType=-1`
)
this
.
$router
.
push
(
`/store/content?topicId=
${
val
.
topicId
}
&channelType=-1
&$title=新增配置
`
)
},
handleClick
()
{
this
.
SET_CHANNEL_TYPE
({
channelType
:
this
.
activeName
})
...
...
src/views/store/index.vue
View file @
c55243b
...
...
@@ -149,11 +149,9 @@ export default {
tableColumns
:
[
{
label
:
'门店名称'
,
prop
:
'merchantName '
,
// width: '200',
formatter
:
cellValue
=>
{
return
cellValue
.
merchantName
||
'-'
}
prop
:
'merchantName'
,
width
:
'250'
,
line
:
1
},
{
label
:
'频道个数'
,
...
...
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