Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
e9e50e87
Commit
e9e50e87
authored
Jun 16, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 群发失败短信
parent
562edf11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
73 deletions
+41
-73
item-qfxx.vue
src/views/ecm/marketing-event/components/item-qfxx.vue
+4
-0
lib-qfxx.vue
src/views/ecm/marketing-event/components/lib-qfxx.vue
+37
-73
No files found.
src/views/ecm/marketing-event/components/item-qfxx.vue
View file @
e9e50e87
...
...
@@ -11,6 +11,10 @@
<span
v-html=
"el"
></span>
</span>
</p>
<p
style=
"margin-top:12px;color:#606266"
>
<span>
群发失败设置:
</span>
<span
v-if=
"item.qfxx.telFlag"
>
话务
</span><span
v-if=
"item.qfxx.smsFlag && item.qfxx.telFlag"
>
/
</span><span
v-if=
"item.qfxx.smsFlag"
>
短信
</span>
</p>
</div>
</template>
...
...
src/views/ecm/marketing-event/components/lib-qfxx.vue
View file @
e9e50e87
...
...
@@ -49,7 +49,7 @@
</div>
</el-form-item>
<el-form-item
class=
"is-required"
label=
"群发失败设置"
>
<el-radio-group
v-model=
"form.failSetting"
>
<el-radio-group
:disabled=
"readOnly"
v-model=
"form.failSetting"
>
<el-radio
:label=
"1"
style=
"margin-right:0"
>
开启
</el-radio>
<el-radio
:label=
"0"
style=
"margin-left:20px"
>
不开启
</el-radio>
</el-radio-group>
...
...
@@ -59,7 +59,7 @@
<div
class=
"task-wrapper"
style=
"margin-top:16px;padding-top:14px;"
>
<el-row
style=
"margin-bottom:12px"
type=
"flex"
align=
"middle"
justify=
"space-between"
>
<el-checkbox
label=
"话务"
style=
"margin-bottom:0"
:value=
"form.telFlag"
:true-label=
"1"
:false-label=
"0"
:disabled=
"readOnly"
@
change=
"onChangeTelTask"
></el-checkbox>
<el-button
v-if=
"form.teltask"
type=
"text"
@
click=
"onEditTelTask"
>
编辑
</el-button>
<el-button
v-if=
"form.teltask
&& !readOnly
"
type=
"text"
@
click=
"onEditTelTask"
>
编辑
</el-button>
</el-row>
<div
style=
"margin-bottom:14px"
v-if=
"form.teltask"
>
<div
class=
"clearfix"
>
...
...
@@ -69,69 +69,20 @@
<div
style=
"margin-top:12px;color:#606266"
>
{{
form
.
teltask
.
content
}}
</div>
</div>
</div>
<div
class=
"task-wrapper"
>
<el-checkbox
label=
"短信"
v-model=
"form.smsFlag"
:true-label=
"1"
:false-label=
"0"
:disabled=
"readOnly"
></el-checkbox>
<el-row
class=
"sms"
type=
"flex"
>
<div
class=
"sms-label"
>
短信内容
</div>
<div
class=
"sms-template-wrapper"
>
<div
class=
"sms-template-header"
>
<el-button
type=
"text"
@
click=
"openDialog('smsTemplate')"
:disabled=
"readOnly"
>
选择模板
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
type=
"text"
@
click=
"openDialog('transferLink')"
:disabled=
"readOnly"
>
插入小程序链接
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
type=
"text"
@
click=
"openDialog('reduceLink')"
:disabled=
"readOnly"
>
压缩网址
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-popover
v-model=
"showPopover"
placement=
"top"
trigger=
"click"
width=
"600"
:offset=
"248"
>
<div
style=
"padding:8px;position:relative"
>
<i
class=
"el-icon-close popover-close"
@
click=
"showPopover = false"
></i>
<div
class=
"messsage-template-title"
>
模板示例
</div>
<div
class=
"messsage-template-description"
>
模板示列如下,其中{数字}为可插入的变量值,参照表如下:注意考虑变量值的文本长度,以免超出67字/条的文本上限。
</div>
<div
class=
"messsage-template-content"
>
<ul>
<li>
{1}=姓名
</li>
<li>
{2}=姓名+先生/女士
</li>
<li>
{3}=生日日期
</li>
<li>
{4}=生日天数
</li>
<li>
{5}=关注日期
</li>
<li>
{6}=关注天数
</li>
<li>
{7}=主门店品牌名称
</li>
<li>
{8}=主门店名称
</li>
<li>
{9}=主门店电话
</li>
<li>
{10}=专属导购姓名
</li>
<li>
{11}=专属导购手机号
</li>
<li>
{12}=开卡日期
</li>
<li>
{13}=开卡天数
</li>
<li>
{14}=开卡门店名称
</li>
</ul>
<ul>
<li>
{15}=会员卡号
</li>
<li>
{16}=会员等级名称
</li>
<li>
{17}=主门店地址
</li>
<li>
{18}=会员等级剩余有效天数
</li>
<li>
{19}=积分余额
</li>
<li>
{20}=30天内将过期积分额度
</li>
<li>
{21}=储值余额
</li>
<li>
{22}=消费总额
</li>
<li>
{23}=消费次数
</li>
<li>
{24}=最近消费日期
</li>
<li>
{25}=最近消费间隔
</li>
<li>
{26}=最高单笔消费
</li>
<li>
{27}=最近消费门店名称
</li>
<li>
{28}=最近消费品牌名称
</li>
</ul>
</div>
</div>
<el-button
type=
"text"
slot=
"reference"
>
查看变量
</el-button>
</el-popover>
</div>
<el-input
class=
"sms-template"
v-model=
"form.smsContent"
placeholder=
"亲爱的
{2},{3}是你的生日,祝你生日快乐,心想事成!" type="textarea" :rows="4" resize="none" show-word-limit :maxlength="450" :readonly="readOnly">
</el-input>
</div>
<div
class=
"task-wrapper"
style=
"margin-top:16px;padding-top:14px;"
>
<el-row
style=
"margin-bottom:12px"
type=
"flex"
align=
"middle"
justify=
"space-between"
>
<el-checkbox
label=
"短信"
style=
"margin-bottom:0"
:value=
"form.smsFlag"
:true-label=
"1"
:false-label=
"0"
:disabled=
"readOnly"
@
change=
"onChangeSms"
></el-checkbox>
<el-button
v-if=
"form.gicSmsTemplateId && !readOnly"
type=
"text"
@
click=
"openDialog('smsTemplate')"
>
重新选择
</el-button>
</el-row>
<div
style=
"margin-bottom:14px"
v-if=
"form.gicSmsTemplateId"
>
<div
class=
"teltask-title"
style=
"font-size:16px;color:#303133"
>
{{
sms
.
title
}}
</div>
<div
style=
"margin-top:12px;color:#606266"
>
{{
sms
.
content
}}
</div>
</div>
</div>
</
template
>
</el-form-item>
</el-form>
<
template
slot=
"footer"
>
<
template
v-if=
"!readOnly"
slot=
"footer"
>
<el-button
style=
"width:74px"
@
click=
"close"
>
取消
</el-button>
<el-button
style=
"width:74px"
type=
"primary"
@
click=
"addItem"
>
确定
</el-button>
</
template
>
...
...
@@ -180,7 +131,7 @@ export default {
title
:
''
,
expireDays
:
0
,
failSetting
:
''
,
smsContent
:
''
,
gicSmsTemplateId
:
''
,
telFlag
:
0
,
smsFlag
:
0
,
teltask
:
null
...
...
@@ -198,7 +149,8 @@ export default {
materialVisible
:
false
,
showPopover
:
false
,
telTaskItem
:
{},
teltaskDialogShow
:
false
teltaskDialogShow
:
false
,
sms
:
{}
};
},
created
()
{
...
...
@@ -206,15 +158,12 @@ export default {
},
methods
:
{
onInsertTemplate
(
item
)
{
if
(
item
.
type
==
1
)
{
this
.
form
.
smsContent
=
item
.
value
.
originalContent
;
}
else
if
(
item
.
type
==
2
)
{
if
(
this
.
form
.
smsContent
)
{
this
.
form
.
smsContent
=
`
${
this
.
form
.
smsContent
}
${
item
.
value
}
`
;
}
else
{
this
.
form
.
smsContent
=
item
.
value
;
}
}
console
.
log
(
item
);
this
.
sms
=
{
title
:
item
.
value
.
title
,
content
:
item
.
value
.
originalContent
};
this
.
form
.
gicSmsTemplateId
=
item
.
value
.
gicSmsTemplateId
;
this
.
form
.
smsFlag
=
1
;
},
openDialog
(
type
)
{
...
...
@@ -235,7 +184,7 @@ export default {
title
:
''
,
expireDays
:
0
,
failSetting
:
''
,
smsContent
:
''
,
gicSmsTemplateId
:
''
,
telFlag
:
0
,
smsFlag
:
0
,
teltask
:
null
...
...
@@ -259,6 +208,9 @@ export default {
if
(
this
.
form
.
failSetting
===
''
)
{
return
this
.
$message
.
warning
(
'请选择是否开启群发消息失败设置'
);
}
if
(
this
.
form
.
smsFlag
==
0
&&
this
.
form
.
telFlag
==
0
)
{
return
this
.
$message
.
warning
(
'请至少设置一种群发失败方式'
);
}
if
(
qfxx
.
failSetting
==
0
)
{
qfxx
.
telFlag
=
0
;
qfxx
.
smsFlag
=
0
;
...
...
@@ -267,7 +219,7 @@ export default {
delete
qfxx
.
teltask
;
}
if
(
qfxx
.
smsFlag
==
0
)
{
delete
qfxx
.
smsContent
;
delete
qfxx
.
gicSmsTemplateId
;
}
delete
qfxx
.
title
;
qfxx
.
chatContent
=
JSON
.
stringify
(
this
.
materials
.
map
(
el
=>
({
relation_id
:
el
.
relation_id
})));
...
...
@@ -315,6 +267,13 @@ export default {
this
.
form
.
telFlag
=
val
;
}
},
onChangeSms
(
val
)
{
if
(
val
&&
!
this
.
form
.
gicSmsTemplateId
)
{
this
.
openDialog
(
'smsTemplate'
);
}
else
{
this
.
form
.
smsFlag
=
val
;
}
},
onEditTelTask
()
{
this
.
telTaskItem
=
{
ecmMarketingTypeRelationId
:
1
,
// 有值时为编辑, 兼容已有话务组件
...
...
@@ -354,6 +313,11 @@ export default {
this
.
materials
=
JSON
.
parse
(
this
.
item
.
qfxx
.
chatContent
||
'[]'
);
}
this
.
form
.
title
=
this
.
item
.
title
;
this
.
sms
=
{
content
:
this
.
item
.
qfxx
.
smsContent
,
title
:
this
.
item
.
qfxx
.
smsTitle
};
console
.
log
(
this
.
sms
);
this
.
ecmMarketingTypeRelationId
=
this
.
item
.
ecmMarketingTypeRelationId
;
}
else
{
this
.
isEdit
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment