Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-scene
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 63d67d4b
authored
Jan 04, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
e5ca3e02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
13 deletions
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/Model.vue
src/views/journeyConfig/components/CollapseItem.vue
View file @
63d67d4
...
@@ -104,6 +104,10 @@
...
@@ -104,6 +104,10 @@
<img
class=
"icon"
src=
"@/assets/gift.png"
/>
<img
class=
"icon"
src=
"@/assets/gift.png"
/>
{{ tpl.attContent.marketingName }}
{{ tpl.attContent.marketingName }}
</div>
</div>
<div
v-if=
"tpl.attType == 6"
class=
"mini-program flex"
>
<img
class=
"icon"
src=
"@/assets/gift.png"
/>
{{ JSON.parse(tpl.attContent).fileName }}
</div>
<video
class=
"tpl-video"
type=
"video/mp4"
v-if=
"tpl.attType == 3"
width=
"100%"
height=
"100%"
:src=
"tpl.attContent"
></video>
<video
class=
"tpl-video"
type=
"video/mp4"
v-if=
"tpl.attType == 3"
width=
"100%"
height=
"100%"
:src=
"tpl.attContent"
></video>
</div>
</div>
</div>
</div>
...
@@ -288,7 +292,6 @@ export default {
...
@@ -288,7 +292,6 @@ export default {
methods
:
{
methods
:
{
//获取已选择标签
//获取已选择标签
handleTagSelect
(
data
)
{
handleTagSelect
(
data
)
{
console
.
log
(
data
)
let
dataTag
=
[],
let
dataTag
=
[],
options
options
data
.
forEach
(
group
=>
{
data
.
forEach
(
group
=>
{
...
@@ -303,7 +306,6 @@ export default {
...
@@ -303,7 +306,6 @@ export default {
})
})
})
})
})
})
console
.
log
(
dataTag
)
options
=
{
options
=
{
dataTag
,
dataTag
,
taskParam
:
''
taskParam
:
''
...
@@ -334,7 +336,6 @@ export default {
...
@@ -334,7 +336,6 @@ export default {
if
(
dataTag
.
length
>
0
)
{
if
(
dataTag
.
length
>
0
)
{
this
.
recursionTreeTag
(
selectItem
,
dataTag
)
this
.
recursionTreeTag
(
selectItem
,
dataTag
)
}
}
// return selectItem
},
},
//设置条件
//设置条件
setCriteria
(
item
)
{
setCriteria
(
item
)
{
...
@@ -366,7 +367,8 @@ export default {
...
@@ -366,7 +367,8 @@ export default {
dataTag
dataTag
}
}
this
.
$apis
.
journeyConfig
.
updateParam
({
nodeId
,
data
}).
then
(
res
=>
{
this
.
$apis
.
journeyConfig
.
updateParam
({
nodeId
,
data
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
)
if
(
res
==
'success'
)
{
this
.
$parent
.
getDetail
()
this
.
$parent
.
getDetail
()
this
.
tplVisible
=
false
this
.
tplVisible
=
false
}
}
...
...
src/views/journeyConfig/components/Model.vue
View file @
63d67d4
...
@@ -44,6 +44,15 @@
...
@@ -44,6 +44,15 @@
</GLDialog>
</GLDialog>
</template>
</template>
<
script
>
<
script
>
const
ATT_TYPE
=
{
TEXT
:
1
,
IMAGE
:
2
,
VEDIO
:
3
,
URL
:
4
,
MINIPROGRAM
:
5
,
FILE
:
6
,
ACTIVITY
:
7
}
export
default
{
export
default
{
props
:
{
props
:
{
tplVisible
:
Boolean
,
tplVisible
:
Boolean
,
...
@@ -80,6 +89,7 @@ export default {
...
@@ -80,6 +89,7 @@ export default {
{
{
name
:
'图片'
,
name
:
'图片'
,
funcName
:
''
,
funcName
:
''
,
togetherItem
:
[
ATT_TYPE
.
TEXT
],
type
:
'img'
,
type
:
'img'
,
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// limitSize: 10, //限制图片大小
// limitSize: 10, //限制图片大小
...
@@ -93,6 +103,7 @@ export default {
...
@@ -93,6 +103,7 @@ export default {
name
:
'活动'
,
name
:
'活动'
,
type
:
'activity'
,
type
:
'activity'
,
funName
:
'activity'
,
funName
:
'activity'
,
togetherItem
:
[
ATT_TYPE
.
TEXT
],
funParams
:
[
funParams
:
[
{
{
itemName
:
'权益卡试用'
,
itemName
:
'权益卡试用'
,
...
@@ -162,6 +173,8 @@ export default {
...
@@ -162,6 +173,8 @@ export default {
name
:
'素材'
,
name
:
'素材'
,
type
:
'material'
,
type
:
'material'
,
funName
:
'material'
,
funName
:
'material'
,
togetherItem
:
[
ATT_TYPE
.
TEXT
],
fileType
:
true
,
groupListApi
:
this
.
$apis
.
welcomeword
.
getGroupListApi
,
groupListApi
:
this
.
$apis
.
welcomeword
.
getGroupListApi
,
materialListApi
:
this
.
$apis
.
welcomeword
.
getMaterialListApi
materialListApi
:
this
.
$apis
.
welcomeword
.
getMaterialListApi
// pdfNo: 1
// pdfNo: 1
...
@@ -171,6 +184,7 @@ export default {
...
@@ -171,6 +184,7 @@ export default {
name
:
'视频'
,
name
:
'视频'
,
funcName
:
''
,
funcName
:
''
,
type
:
'video'
,
type
:
'video'
,
togetherItem
:
[
ATT_TYPE
.
TEXT
],
// limitSize: 10, //限制视频大小
// limitSize: 10, //限制视频大小
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
limitNum
:
1
,
//限制视频数量
limitNum
:
1
,
//限制视频数量
...
@@ -219,16 +233,17 @@ export default {
...
@@ -219,16 +233,17 @@ export default {
},
},
methods
:
{
methods
:
{
renderParameter
(
options
)
{
renderParameter
(
options
)
{
let
{
marketingId
,
marketingT
ype
}
=
options
let
{
id
,
t
ype
}
=
options
let
obj
=
{
let
obj
=
{
3
:
`{"appId":"wxe10067a63c1856ac","title":"送您一张专属权益服务卡","page":"packageShopmall/packageEquity/pages/freecard/freecard?id=
${
marketingId
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png"}`
,
3
:
`{"appId":"wxe10067a63c1856ac","title":"送您一张专属权益服务卡","page":"packageShopmall/packageEquity/pages/freecard/freecard?id=
${
id
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png"}`
,
4
:
`{"appId":"wxe10067a63c1856ac","title":"专属权益服务套餐","page":"packageShopmall/packageEquity/pages/package/package?id=
${
marketingId
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png"}`
,
4
:
`{"appId":"wxe10067a63c1856ac","title":"专属权益服务套餐","page":"packageShopmall/packageEquity/pages/package/package?id=
${
id
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png"}`
,
2
:
`{"appId":"wxe10067a63c1856ac","title":"送您一张商城优惠券","page":"packageShopmall/packageMall/pages/coupon/coupon?couponId=
${
marketingId
}
&merchantId=&{1}&issueDate={3}&nodeId={2}&sopId={3},"pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png"}`
,
2
:
`{"appId":"wxe10067a63c1856ac","title":"送您一张商城优惠券","page":"packageShopmall/packageMall/pages/coupon/coupon?couponId=
${
id
}
&merchantId=&{1}&issueDate={3}&nodeId={2}&sopId={3},"pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png"}`
,
5
:
`{"appId":"wxe10067a63c1856ac","title":"您有一个秒杀活动可参加","page":"packageShopmall/packageMall/pages/detail/detail?isActivity=true&id=
${
marketingId
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png"}`
,
5
:
`{"appId":"wxe10067a63c1856ac","title":"您有一个秒杀活动可参加","page":"packageShopmall/packageMall/pages/detail/detail?isActivity=true&id=
${
id
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png"}`
,
8
:
`{"appId":"wxe10067a63c1856ac","title":"您有一个众筹活动可参加","page":"pages/crowdfunding/index/index?isActivity=true&id=
${
marketingId
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png"}`
,
8
:
`{"appId":"wxe10067a63c1856ac","title":"您有一个众筹活动可参加","page":"pages/crowdfunding/index/index?isActivity=true&id=
${
id
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png"}`
,
7
:
`{"appId":"wxe10067a63c1856ac","title":"您有一个新资讯,请及时查看","page":"packageMine/pages/questionnaire/questionnaire?id=
${
marketingId
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png"}`
7
:
`{"appId":"wxe10067a63c1856ac","title":"您有一个新资讯,请及时查看","page":"packageMine/pages/questionnaire/questionnaire?id=
${
id
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png"}`
,
6
:
`{"appId":"wxe10067a63c1856ac","title":"您有一个新资讯,请及时查看","page":"pages/psdView/psdView?id=
${
id
}
&merchantId={1}&nodeId={2}&sopId={3}","pic_url":"http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png"}`
}
}
return
obj
[
marketingT
ype
]
return
obj
[
t
ype
]
},
},
changeEdit
(
taskType
)
{
changeEdit
(
taskType
)
{
if
(
taskType
==
7
||
taskType
==
5
)
{
if
(
taskType
==
7
||
taskType
==
5
)
{
...
@@ -244,6 +259,7 @@ export default {
...
@@ -244,6 +259,7 @@ export default {
name
:
'活动'
,
name
:
'活动'
,
type
:
'activity'
,
type
:
'activity'
,
funName
:
'activity'
,
funName
:
'activity'
,
togetherItem
:
[
ATT_TYPE
.
TEXT
],
funParams
:
[
funParams
:
[
{
{
itemName
:
'权益卡试用'
,
itemName
:
'权益卡试用'
,
...
@@ -313,6 +329,8 @@ export default {
...
@@ -313,6 +329,8 @@ export default {
name
:
'素材'
,
name
:
'素材'
,
type
:
'material'
,
type
:
'material'
,
funName
:
'material'
,
funName
:
'material'
,
togetherItem
:
[
ATT_TYPE
.
TEXT
],
fileType
:
true
,
groupListApi
:
this
.
$apis
.
welcomeword
.
getGroupListApi
,
groupListApi
:
this
.
$apis
.
welcomeword
.
getGroupListApi
,
materialListApi
:
this
.
$apis
.
welcomeword
.
getMaterialListApi
materialListApi
:
this
.
$apis
.
welcomeword
.
getMaterialListApi
// pdfNo: 1
// pdfNo: 1
...
@@ -339,13 +357,25 @@ export default {
...
@@ -339,13 +357,25 @@ export default {
})
})
},
},
previewForm
(
val
)
{
previewForm
(
val
)
{
console
.
log
(
val
)
const
value
=
this
.
$common
.
utils
.
deepClone
(
val
)
const
value
=
this
.
$common
.
utils
.
deepClone
(
val
)
if
(
value
[
0
]
&&
!
value
[
0
].
attContent
)
value
.
splice
(
0
,
1
)
if
(
value
[
0
]
&&
!
value
[
0
].
attContent
)
value
.
splice
(
0
,
1
)
this
.
tplForm
.
attContentList
=
this
.
$common
.
utils
.
deepClone
(
value
)
this
.
tplForm
.
attContentList
=
this
.
$common
.
utils
.
deepClone
(
value
)
value
.
forEach
(
activity
=>
{
value
.
forEach
(
activity
=>
{
let
opts
if
(
activity
.
attType
==
7
)
{
if
(
activity
.
attType
==
7
)
{
activity
.
attType
=
4
activity
.
attType
=
4
activity
.
attContent
=
this
.
renderParameter
(
activity
.
attContent
)
opts
=
{
type
:
activity
.
attContent
.
marketingType
,
id
:
activity
.
attContent
.
marketingId
}
activity
.
attContent
=
this
.
renderParameter
(
opts
)
}
else
if
(
activity
.
attType
==
6
)
{
opts
=
{
type
:
activity
.
attType
,
id
:
JSON
.
parse
(
activity
.
attContent
).
objectId
}
activity
.
attContent
=
this
.
renderParameter
(
opts
)
}
}
})
})
this
.
tplForm
.
attachments
=
value
this
.
tplForm
.
attachments
=
value
...
...
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