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 feba6886
authored
Jan 09, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
a5755634
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
src/views/channel/add.vue
src/views/store/components/activity.vue
src/views/store/components/carChannel.vue
src/views/store/content.vue
src/views/channel/add.vue
View file @
feba688
...
@@ -203,8 +203,8 @@ export default {
...
@@ -203,8 +203,8 @@ export default {
background
:
#0a0e19
;
background
:
#0a0e19
;
}
}
.el-form-item__error
{
.el-form-item__error
{
margin-top
:
25px
;
//
margin-top
:
25px
;
margin-bottom
:
10px
;
//
margin-bottom
:
10px
;
}
}
.el-radio__input
{
.el-radio__input
{
margin-top
:
-160px
;
margin-top
:
-160px
;
...
...
src/views/store/components/activity.vue
View file @
feba688
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<el-form-item
label=
"频道卡片主标题:"
prop=
"topicTitle"
>
<el-form-item
label=
"频道卡片主标题:"
prop=
"topicTitle"
>
<el-input
v-model=
"activityForm.topicTitle"
maxlength=
"6"
></el-input>
<el-input
v-model=
"activityForm.topicTitle"
maxlength=
"6"
></el-input>
</el-form-item>
</el-form-item>
<template
v-if=
"channel
Id
== 3"
>
<template
v-if=
"channel
Type
== 3"
>
<el-form-item
label=
"卡片背景图:"
prop=
"backgroundType"
>
<el-form-item
label=
"卡片背景图:"
prop=
"backgroundType"
>
<el-radio-group
v-model=
"activityForm.backgroundType"
@
input=
"changeBackgroundType"
>
<el-radio-group
v-model=
"activityForm.backgroundType"
@
input=
"changeBackgroundType"
>
<el-radio
:label=
"1"
>
单个
</el-radio>
<el-radio
:label=
"1"
>
单个
</el-radio>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<glsx-preview
:picOptions=
"bgOptions"
limit=
"1"
:imageUrlArr=
"activityForm.backgroundImgArr"
@
change=
"changeChannelImg"
></glsx-preview>
<glsx-preview
:picOptions=
"bgOptions"
limit=
"1"
:imageUrlArr=
"activityForm.backgroundImgArr"
@
change=
"changeChannelImg"
></glsx-preview>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<
template
v-if=
"channel
Id
== 4"
>
<
template
v-if=
"channel
Type
== 4"
>
<el-form-item
label=
"卡片背景图:"
prop=
"backgroundImg"
>
<el-form-item
label=
"卡片背景图:"
prop=
"backgroundImg"
>
<glsx-preview
:picOptions=
"bgOptions"
limit=
"1"
:imageUrlArr=
"activityForm.backgroundImgArr"
@
change=
"changeChannelImg"
></glsx-preview>
<glsx-preview
:picOptions=
"bgOptions"
limit=
"1"
:imageUrlArr=
"activityForm.backgroundImgArr"
@
change=
"changeChannelImg"
></glsx-preview>
</el-form-item>
</el-form-item>
...
@@ -147,13 +147,17 @@ export default {
...
@@ -147,13 +147,17 @@ export default {
})
})
},
},
props
:
{
props
:
{
c
hannelId
:
{
merchantC
hannelId
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
},
},
topicId
:
{
topicId
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
},
channelType
:
{
type
:
String
,
default
:
''
}
}
},
},
watch
:
{
watch
:
{
...
@@ -245,7 +249,7 @@ export default {
...
@@ -245,7 +249,7 @@ export default {
}
}
let
contentList
=
[
let
contentList
=
[
{
{
pagePathType
:
this
.
activityForm
.
pagePathType
,
pagePathType
:
this
.
activityForm
.
pagePathType
,
pagePathContent
:
this
.
activityForm
.
pagePathContent
,
pagePathContent
:
this
.
activityForm
.
pagePathContent
,
promotion
:
this
.
activityForm
.
promotion
,
promotion
:
this
.
activityForm
.
promotion
,
mediaList
mediaList
...
@@ -254,7 +258,7 @@ export default {
...
@@ -254,7 +258,7 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
let
params
=
{
let
params
=
{
merchantChannelId
:
this
.
c
hannelId
,
merchantChannelId
:
this
.
merchantC
hannelId
,
topicTitle
:
this
.
activityForm
.
topicTitle
,
topicTitle
:
this
.
activityForm
.
topicTitle
,
contentList
,
contentList
,
backgroundImg
:
this
.
activityForm
.
backgroundImg
,
backgroundImg
:
this
.
activityForm
.
backgroundImg
,
...
@@ -267,7 +271,7 @@ export default {
...
@@ -267,7 +271,7 @@ export default {
success
:
res
=>
{
success
:
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
loading
=
false
this
.
loading
=
false
//
this.$router.go(-1)
this
.
$router
.
go
(
-
1
)
}
}
this
.
$message
({
this
.
$message
({
...
...
src/views/store/components/carChannel.vue
View file @
feba688
...
@@ -593,7 +593,7 @@ export default {
...
@@ -593,7 +593,7 @@ export default {
success
:
res
=>
{
success
:
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
loading
=
false
this
.
loading
=
false
//
this.$router.go(-1)
this
.
$router
.
go
(
-
1
)
}
}
this
.
$message
({
this
.
$message
({
...
...
src/views/store/content.vue
View file @
feba688
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<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"
>
新增内容
</p>
<component
:is=
"currentComponent"
ref=
"componentRef"
:
channelId=
"merchantChannelId"
:topicId=
"topicId
"
></component>
<component
:is=
"currentComponent"
ref=
"componentRef"
:
merchantChannelId=
"merchantChannelId"
:topicId=
"topicId"
:channelType=
"channelType
"
></component>
</div>
</div>
<GLFooter>
<GLFooter>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
...
...
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