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
Show 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 @@
...
@@ -3,7 +3,7 @@
<div
class=
"add-container"
>
<div
class=
"add-container"
>
<div
class=
"title"
>
{{
this
.
channelForm
.
channelName
}}
编辑
</div>
<div
class=
"title"
>
{{
this
.
channelForm
.
channelName
}}
编辑
</div>
<div
class=
"channel-content gl-form-page"
>
<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-form-item
label=
"频道名称:"
prop=
"channelName"
>
<el-input
v-model=
"channelForm.channelName"
:disabled=
"isDisabled"
maxlength=
"4"
></el-input>
<el-input
v-model=
"channelForm.channelName"
:disabled=
"isDisabled"
maxlength=
"4"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</div>
</div>
</el-form-item>
</el-form-item>
</span>
</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>
<glsx-preview
:picOptions=
"picOptions"
:imageUrlArr=
"channelForm.channelImgArr"
@
change=
"changeChannelImg"
></glsx-preview>
<div
class=
"el-form-item__error"
v-if=
"channelImgFlag"
>
请上传频道banner
</div>
<div
class=
"el-form-item__error"
v-if=
"channelImgFlag"
>
请上传频道banner
</div>
</el-form-item>
</el-form-item>
...
...
src/views/channel/index.vue
View file @
c55243b
...
@@ -68,14 +68,16 @@ export default {
...
@@ -68,14 +68,16 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'频道名称'
,
label
:
'频道名称'
,
prop
:
'channelName
'
,
prop
:
'channelName'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
channelName
||
'--'
return
cellValue
.
channelName
||
'--'
}
}
},
},
{
{
label
:
'频道宣传语'
,
label
:
'频道宣传语'
,
prop
:
'promotion '
,
prop
:
'promotion'
,
width
:
300
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
promotion
||
'--'
return
cellValue
.
promotion
||
'--'
}
}
...
...
src/views/store/components/activity.vue
View file @
c55243b
<
template
>
<
template
>
<div
class=
"activity-content gl-form-page"
>
<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-form-item
label=
"频道卡片主标题:"
prop=
"topicTitle"
>
<el-input
v-model=
"activityForm.topicTitle"
maxlength=
"4"
></el-input>
<el-input
v-model=
"activityForm.topicTitle"
maxlength=
"4"
></el-input>
</el-form-item>
</el-form-item>
...
...
src/views/store/components/carChannel.vue
View file @
c55243b
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<!-- 具体内容 -->
<!-- 具体内容 -->
<div
slot=
"concreteContent"
class=
"concrete-content"
>
<div
slot=
"concreteContent"
class=
"concrete-content"
>
<div
class=
"gl-form-page"
>
<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"
>
<span
v-for=
"(item, index) in editForm.contentList"
:key=
"index"
class=
"line-item"
>
<div
class=
"delect-box"
@
click=
"delectContent(index)"
>
<div
class=
"delect-box"
@
click=
"delectContent(index)"
>
<img
class=
"icon-dele"
src=
"@/assets/channel/dele.png"
/>
<img
class=
"icon-dele"
src=
"@/assets/channel/dele.png"
/>
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<el-radio
:label=
"2"
>
上传图片
</el-radio>
<el-radio
:label=
"2"
>
上传图片
</el-radio>
</el-radio-group>
</el-radio-group>
<div
class=
"gl-form-page mediaType-content"
>
<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"
>
<span
v-if=
"editForm.mediaType == 1"
>
<el-form-item
label=
"选择视频:"
:prop=
"'contentList.' + 0 + '.mediaUrl'"
:rules=
"rules.mediaCover"
>
<el-form-item
label=
"选择视频:"
:prop=
"'contentList.' + 0 + '.mediaUrl'"
:rules=
"rules.mediaCover"
>
<el-select
v-model=
"editForm.contentList[0].mediaUrl"
placeholder=
"请选择视频"
@
change=
"changeVideo(0)"
>
<el-select
v-model=
"editForm.contentList[0].mediaUrl"
placeholder=
"请选择视频"
@
change=
"changeVideo(0)"
>
...
@@ -911,7 +911,7 @@ export default {
...
@@ -911,7 +911,7 @@ export default {
line-height
:
1
;
line-height
:
1
;
padding-top
:
4px
;
padding-top
:
4px
;
position
:
absolute
;
position
:
absolute
;
bottom
:
-
30
px
;
bottom
:
-
26
px
;
left
:
154px
;
left
:
154px
;
}
}
}
}
...
@@ -942,7 +942,7 @@ export default {
...
@@ -942,7 +942,7 @@ export default {
.publicPraise-box
{
.publicPraise-box
{
margin-top
:
-7px
;
margin-top
:
-7px
;
/deep/
.el-form-item__label
{
/deep/
.el-form-item__label
{
color
:
#f
ff
;
color
:
#f
1f1f1
;
}
}
}
}
.dele-publicPraise
{
.dele-publicPraise
{
...
...
src/views/store/components/membrane.vue
View file @
c55243b
<
template
>
<
template
>
<div
class=
"membrane-content gl-form-page"
>
<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-form-item
label=
"上传类型:"
prop=
"mediaType"
>
<el-radio-group
v-model=
"membraneForm.mediaType"
@
input=
"changeMediaType"
>
<el-radio-group
v-model=
"membraneForm.mediaType"
@
input=
"changeMediaType"
>
<el-radio
:label=
"1"
>
视频
</el-radio>
<el-radio
:label=
"1"
>
视频
</el-radio>
...
...
src/views/store/components/selectGiftDialog.vue
View file @
c55243b
<!-- 选择礼包弹窗 -->
<!-- 选择礼包弹窗 -->
<
template
>
<
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=
"flex-default"
>
<div
class=
"gift-table"
>
<div
class=
"gift-table"
>
<el-tabs
class=
"gift-tabs"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tabs
class=
"gift-tabs"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
...
@@ -165,7 +165,7 @@ export default {
...
@@ -165,7 +165,7 @@ export default {
},
},
{
{
label
:
'剩余库存'
,
label
:
'剩余库存'
,
prop
:
'
stock
'
prop
:
'
residueAmount
'
}
}
]
]
}
}
...
...
src/views/store/content.vue
View file @
c55243b
<
template
>
<
template
>
<div
class=
"content-wrap"
>
<div
class=
"content-wrap"
>
<div
class=
"container edit-container"
style=
"min-height: 520px !important"
>
<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>
<component
:is=
"currentComponent"
ref=
"componentRef"
:merchantChannelId=
"merchantChannelId"
:topicId=
"topicId"
:channelType=
"channelType"
></component>
</div>
</div>
<GLFooter>
<GLFooter>
...
@@ -26,6 +26,7 @@ export default {
...
@@ -26,6 +26,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
contentTitle
:
''
,
merchantChannelId
:
this
.
$route
.
query
.
merchantChannelId
?
this
.
$route
.
query
.
merchantChannelId
:
''
,
//门店频道id
merchantChannelId
:
this
.
$route
.
query
.
merchantChannelId
?
this
.
$route
.
query
.
merchantChannelId
:
''
,
//门店频道id
topicId
:
this
.
$route
.
query
.
topicId
?
this
.
$route
.
query
.
topicId
:
''
,
//频道主题ID
topicId
:
this
.
$route
.
query
.
topicId
?
this
.
$route
.
query
.
topicId
:
''
,
//频道主题ID
channelType
:
this
.
$route
.
query
.
channelType
?
this
.
$route
.
query
.
channelType
:
''
,
//频道类型
channelType
:
this
.
$route
.
query
.
channelType
?
this
.
$route
.
query
.
channelType
:
''
,
//频道类型
...
@@ -34,6 +35,8 @@ export default {
...
@@ -34,6 +35,8 @@ export default {
}
}
},
},
created
()
{
created
()
{
let
{
$title
}
=
this
.
$route
.
query
this
.
contentTitle
=
$title
?
$title
:
'新增内容'
//判断显示模块
//判断显示模块
this
.
judgeModule
()
this
.
judgeModule
()
//获取视频
//获取视频
...
...
src/views/store/edit.vue
View file @
c55243b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<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>
<el-button
type=
"text"
v-if=
"scope.scope.contentType == 1"
@
click=
"handleConfig(scope.scope)"
>
{{ scope.scope.status == 0 ? '待配置' : '编辑' }}
</el-button>
<
template
v-else
>
<
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"
@
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 == 1"
@
click=
"handleOut(scope.scope, '下架')"
>
下架
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 2"
@
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 {
...
@@ -63,7 +63,7 @@ export default {
searchFormData
:
[],
searchFormData
:
[],
formData
:
[
formData
:
[
{
{
label
:
'频道卡片主
主
题'
,
label
:
'频道卡片主
标
题'
,
name
:
'topicTitle'
,
name
:
'topicTitle'
,
type
:
'input'
,
type
:
'input'
,
filter
:
'1'
filter
:
'1'
...
@@ -120,7 +120,7 @@ export default {
...
@@ -120,7 +120,7 @@ export default {
label
:
'宣传文案'
,
label
:
'宣传文案'
,
prop
:
'promotion'
,
prop
:
'promotion'
,
line
:
1
,
line
:
1
,
minW
idth
:
200
,
w
idth
:
200
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
contentList
[
0
].
promotion
return
cellValue
.
contentList
[
0
].
promotion
},
},
...
@@ -141,7 +141,7 @@ export default {
...
@@ -141,7 +141,7 @@ export default {
label
:
'活动名称'
,
label
:
'活动名称'
,
prop
:
'activityName'
,
prop
:
'activityName'
,
width
:
150
,
width
:
150
,
line
:
1
,
line
:
1
,
filter
:
'3,4'
,
filter
:
'3,4'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
contentList
[
0
].
activityName
return
cellValue
.
contentList
[
0
].
activityName
...
@@ -280,19 +280,19 @@ export default {
...
@@ -280,19 +280,19 @@ export default {
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
this
.
tabPaneList
.
push
({
this
.
tabPaneList
.
push
({
label
:
item
.
channelName
,
label
:
item
.
channelName
,
name
:
item
.
channelType
,
name
:
item
.
channelType
+
''
,
merchantChannelId
:
item
.
id
merchantChannelId
:
item
.
id
})
})
})
})
this
.
SET_MERCHANT_ID
({
id
:
this
.
merchantId
})
this
.
SET_MERCHANT_ID
({
id
:
this
.
merchantId
})
this
.
SET_CHANNEL_STYLE
({
channelStyle
:
res
[
0
].
channelStyle
})
this
.
SET_CHANNEL_STYLE
({
channelStyle
:
res
[
0
].
channelStyle
})
!
this
.
channelType
&&
this
.
SET_CHANNEL_TYPE
({
channelType
:
res
[
0
].
channelType
})
!
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
.
merchantChannelId
=
res
[
0
].
id
this
.
tabPaneText
=
res
[
0
].
channelName
this
.
tabPaneText
=
res
[
0
].
channelName
this
.
isFlag
=
true
this
.
isFlag
=
true
if
(
this
.
channelType
)
{
if
(
this
.
channelType
)
{
this
.
activeName
=
this
.
channelType
this
.
activeName
=
this
.
channelType
+
''
this
.
handleClick
()
this
.
handleClick
()
}
}
})
})
...
@@ -300,14 +300,14 @@ export default {
...
@@ -300,14 +300,14 @@ export default {
//新增编辑内容
//新增编辑内容
handleAddContent
(
val
)
{
handleAddContent
(
val
)
{
if
(
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
{
}
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
)
{
handleConfig
(
val
)
{
this
.
$router
.
push
(
`/store/content?topicId=
${
val
.
topicId
}
&channelType=-1`
)
this
.
$router
.
push
(
`/store/content?topicId=
${
val
.
topicId
}
&channelType=-1
&$title=新增配置
`
)
},
},
handleClick
()
{
handleClick
()
{
this
.
SET_CHANNEL_TYPE
({
channelType
:
this
.
activeName
})
this
.
SET_CHANNEL_TYPE
({
channelType
:
this
.
activeName
})
...
...
src/views/store/index.vue
View file @
c55243b
...
@@ -149,11 +149,9 @@ export default {
...
@@ -149,11 +149,9 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'门店名称'
,
label
:
'门店名称'
,
prop
:
'merchantName '
,
prop
:
'merchantName'
,
// width: '200',
width
:
'250'
,
formatter
:
cellValue
=>
{
line
:
1
return
cellValue
.
merchantName
||
'-'
}
},
},
{
{
label
:
'频道个数'
,
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