Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 9869661f
authored
Oct 18, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
39f115a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
src/views/homeSet/index.vue
src/views/homeSet/index.vue
View file @
9869661
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<div
v-show=
"subItem.bannerType != '0'"
class=
"link-block"
>
<div
v-show=
"subItem.bannerType != '0'"
class=
"link-block"
>
<div
v-show=
"(subItem.bannerType == '1') || (subItem.bannerType == '2') || (subItem.bannerType == '3')"
>
<div
v-show=
"(subItem.bannerType == '1') || (subItem.bannerType == '2') || (subItem.bannerType == '3')"
>
<span
class=
"label"
>
{{
subItem
.
bannerType
==
'1'
?
'商品'
:
subItem
.
bannerType
==
'2'
?
'图文'
:
'视频'
}}
名称:
</span>
<span
class=
"label"
>
{{
subItem
.
bannerType
==
'1'
?
'商品'
:
subItem
.
bannerType
==
'2'
?
'图文'
:
'视频'
}}
名称:
</span>
<el-input
:size=
"size"
style=
"width: 200px;"
v-model
.
trim=
"subItem.title"
placeholder=
"请输入内容"
clearable
></el-input><br>
<el-input
:size=
"size"
style=
"width: 200px;"
maxlength=
"20"
v-model
.
trim=
"subItem.title"
placeholder=
"请输入内容"
clearable
></el-input><br>
<span
class=
"label"
>
<span
class=
"label"
>
选择
{{
subItem
.
bannerType
==
'1'
?
'商品'
:
subItem
.
bannerType
==
'2'
?
'图文'
:
'视频'
}}
:
选择
{{
subItem
.
bannerType
==
'1'
?
'商品'
:
subItem
.
bannerType
==
'2'
?
'图文'
:
'视频'
}}
:
</span>
</span>
...
@@ -829,6 +829,7 @@ export default {
...
@@ -829,6 +829,7 @@ export default {
handleConfirm
()
{
handleConfirm
()
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
params
.
bannerList
=
[]
params
.
bannerList
=
[]
let
flag
=
true
this
.
editForm
.
bannerList
.
forEach
((
item
,
idx
)
=>
{
this
.
editForm
.
bannerList
.
forEach
((
item
,
idx
)
=>
{
params
.
bannerList
.
push
({
params
.
bannerList
.
push
({
bannerImg
:
item
.
bannerImg
,
bannerImg
:
item
.
bannerImg
,
...
@@ -839,6 +840,9 @@ export default {
...
@@ -839,6 +840,9 @@ export default {
source
:
item
.
source
||
1
source
:
item
.
source
||
1
})
})
params
.
bannerList
[
idx
].
title
=
item
.
title
params
.
bannerList
[
idx
].
title
=
item
.
title
if
(
!
item
.
title
&&
item
.
bannerType
==
2
)
{
flag
=
false
}
if
(
item
.
bannerType
==
'1'
&&
item
.
goodsId
)
{
if
(
item
.
bannerType
==
'1'
&&
item
.
goodsId
)
{
params
.
bannerList
[
idx
].
goodsId
=
item
.
goodsId
params
.
bannerList
[
idx
].
goodsId
=
item
.
goodsId
params
.
bannerList
[
idx
].
goods
=
{
params
.
bannerList
[
idx
].
goods
=
{
...
@@ -857,6 +861,10 @@ export default {
...
@@ -857,6 +861,10 @@ export default {
params
.
bannerList
[
idx
].
bannerType
=
0
params
.
bannerList
[
idx
].
bannerType
=
0
}
}
})
})
if
(
!
flag
)
return
this
.
$message
({
message
:
'请输入图文名称'
,
type
:
'error'
})
// banner管理配置门店
// banner管理配置门店
params
.
bannerMerchantList
=
[]
params
.
bannerMerchantList
=
[]
if
(
this
.
editForm
.
bannerToSubMerchant
==
'Y'
)
{
if
(
this
.
editForm
.
bannerToSubMerchant
==
'Y'
)
{
...
...
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