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 ae088a70
authored
Aug 09, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'sass+v4.25.1' of
http://192.168.3.233:8090/saas/scrm-micro-discove…
…r into xuyl_v3.13.1_backup
2 parents
3dc75146
e006b8b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
src/views/channel/add.vue
src/views/channel/add.vue
View file @
ae088a7
...
@@ -35,6 +35,13 @@
...
@@ -35,6 +35,13 @@
<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>
<div
class=
"text-tip"
>
建议尺寸:750*448
</div>
<div
class=
"text-tip"
>
建议尺寸:750*448
</div>
<template
v-if=
"channelForm.channelType == 6"
>
<el-form-item
label=
"门店频道banner图:"
prop=
"storeBannerImg"
style=
"margin-top: 15px"
>
<glsx-preview
:picOptions=
"merchantPicOptions"
:imageUrlArr=
"channelForm.storeBannerImgArr"
@
change=
"changeChannelImg"
></glsx-preview>
<div
class=
"el-form-item__error"
v-if=
"channelImgFlag"
>
请上传门店频道banner
</div>
</el-form-item>
<div
class=
"text-tip"
>
建议尺寸:750*264
</div>
</
template
>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
@@ -74,9 +81,11 @@ export default {
...
@@ -74,9 +81,11 @@ export default {
publicityImgArr
:
[],
publicityImgArr
:
[],
publicityImg
:
''
,
publicityImg
:
''
,
channelImg
:
''
,
channelImg
:
''
,
storeBannerImg
:
''
,
channelChildName
:
''
,
channelChildName
:
''
,
sort
:
''
,
sort
:
''
,
channelImgArr
:
[]
channelImgArr
:
[],
storeBannerImgArr
:
[]
},
},
channelImgbgArr
:
[
'banner1'
,
'banner2'
],
channelImgbgArr
:
[
'banner1'
,
'banner2'
],
channelOtherImgbgArr
:
[
'membrane'
,
'crowd'
,
'activity'
],
channelOtherImgbgArr
:
[
'membrane'
,
'crowd'
,
'activity'
],
...
@@ -87,6 +96,12 @@ export default {
...
@@ -87,6 +96,12 @@ export default {
key
:
'channelImg'
,
key
:
'channelImg'
,
isClose
:
true
isClose
:
true
},
},
merchantPicOptions
:
{
width
:
'174px'
,
height
:
'104px'
,
key
:
'storeBannerImg'
,
isClose
:
true
},
shareOptions
:
{
shareOptions
:
{
width
:
'120px'
,
width
:
'120px'
,
height
:
'90px'
,
height
:
'90px'
,
...
@@ -107,6 +122,13 @@ export default {
...
@@ -107,6 +122,13 @@ export default {
promotion
:
[{
required
:
true
,
message
:
'请输入频道分享文案'
,
trigger
:
'blur'
}],
promotion
:
[{
required
:
true
,
message
:
'请输入频道分享文案'
,
trigger
:
'blur'
}],
channelChildName
:
[{
required
:
true
,
message
:
'请输入频道子名称'
,
trigger
:
'change'
}],
channelChildName
:
[{
required
:
true
,
message
:
'请输入频道子名称'
,
trigger
:
'change'
}],
sort
:
[{
required
:
true
,
message
:
'请输入频道顺序'
,
trigger
:
'change'
}],
sort
:
[{
required
:
true
,
message
:
'请输入频道顺序'
,
trigger
:
'change'
}],
storeBannerImg
:
[{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
channelForm
.
channelType
==
6
&&
!
this
.
channelForm
.
storeBannerImg
){
callback
(
new
Error
(
'请上传门店频道banner图'
))
}
else
{
callback
()
}
},
trigger
:
'change'
}]
}
}
}
}
},
},
...
@@ -135,10 +157,11 @@ export default {
...
@@ -135,10 +157,11 @@ export default {
this
.
id
?
(
params
.
id
=
this
.
id
)
:
this
.
merchantChannelId
?
(
params
.
merchantChannelId
=
this
.
merchantChannelId
)
:
''
this
.
id
?
(
params
.
id
=
this
.
id
)
:
this
.
merchantChannelId
?
(
params
.
merchantChannelId
=
this
.
merchantChannelId
)
:
''
this
.
$apis
.
channel
[
apis
](
params
).
then
(
res
=>
{
this
.
$apis
.
channel
[
apis
](
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
channelForm
=
{
...
res
.
data
,
posterImgArr
:
[],
publicityImgArr
:
[],
channelImgArr
:
[]
}
this
.
channelForm
=
{
...
res
.
data
,
posterImgArr
:
[],
publicityImgArr
:
[],
channelImgArr
:
[]
,
storeBannerImgArr
:[]
}
this
.
channelForm
.
posterImgArr
.
push
(
res
.
data
.
posterImg
)
//海报
this
.
channelForm
.
posterImgArr
.
push
(
res
.
data
.
posterImg
)
//海报
this
.
channelForm
.
publicityImgArr
.
push
(
res
.
data
.
publicityImg
)
//频道分享预览图
this
.
channelForm
.
publicityImgArr
.
push
(
res
.
data
.
publicityImg
)
//频道分享预览图
this
.
channelForm
.
channelImgArr
.
push
(
res
.
data
.
channelImg
)
//频道banner
this
.
channelForm
.
channelImgArr
.
push
(
res
.
data
.
channelImg
)
//频道banner
this
.
channelForm
.
storeBannerImgArr
.
push
(
res
.
data
.
storeBannerImg
)
//门店频道banner图
if
(
!
res
.
data
.
channelImg
)
this
.
diffChannelStyle
()
if
(
!
res
.
data
.
channelImg
)
this
.
diffChannelStyle
()
}
}
})
})
...
@@ -171,6 +194,7 @@ export default {
...
@@ -171,6 +194,7 @@ export default {
publicityImg
:
this
.
channelForm
.
publicityImg
,
publicityImg
:
this
.
channelForm
.
publicityImg
,
posterImg
:
this
.
channelForm
.
posterImg
posterImg
:
this
.
channelForm
.
posterImg
}
}
if
(
this
.
channelForm
.
channelType
==
6
)
params
.
storeBannerImg
=
this
.
channelForm
.
storeBannerImg
if
(
this
.
channelForm
.
channelType
==
1
)
params
.
channelStyle
=
this
.
channelForm
.
channelStyle
if
(
this
.
channelForm
.
channelType
==
1
)
params
.
channelStyle
=
this
.
channelForm
.
channelStyle
let
apis
=
this
.
id
?
'updateChannel'
:
this
.
merchantChannelId
?
'updateMerchantChannel'
:
''
let
apis
=
this
.
id
?
'updateChannel'
:
this
.
merchantChannelId
?
'updateMerchantChannel'
:
''
this
.
id
?
(
params
.
id
=
this
.
id
)
:
this
.
merchantChannelId
?
(
params
.
merchantChannelId
=
this
.
merchantChannelId
)
:
''
this
.
id
?
(
params
.
id
=
this
.
id
)
:
this
.
merchantChannelId
?
(
params
.
merchantChannelId
=
this
.
merchantChannelId
)
:
''
...
...
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