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
a043b976
Commit
a043b976
authored
Nov 25, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 黑名添加调整
parent
256de1a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
29 deletions
+48
-29
addTemp.vue
src/views/message/addTemp.vue
+2
-2
blackList.vue
src/views/message/blackList.vue
+4
-3
form.vue
src/views/message/form.vue
+42
-24
No files found.
src/views/message/addTemp.vue
View file @
a043b976
...
...
@@ -30,7 +30,7 @@
<el-button
v-show=
"!showMoreFlag"
type=
"text"
@
click=
"showMoreFlag = true"
style=
"margin-left: 5px"
>
查看更多
<i
class=
"iconfont icon-zhankai- arrow_icon"
/></el-button>
</p>
<p
v-show=
"showMoreFlag"
>
不允许发送如邀请注册、关注注册、邀请成为会员、拉新、注册拉新、推广拉新、股票、移民、面试招聘、彩票、返利、抽奖、贷款、催款、征信、投资理财、赌博、中奖、毒品、党政、法律维权、众筹、慈善捐款、宗教、迷信、殡葬、刷单、空包网、一元夺宝、大富翁游戏、游戏、寻宝、一元秒杀、A 货、医疗、整形、美容、会所、酒吧、足浴、暴力、恐吓、色情、皮草、助考、装修、建材、家私、商标注册、加群、加 Q 、加微信、相亲、交友、信用卡提额、返现返利、代开发票、邀请好评、酒类、教育、房产、金融、红包、奖池、积分推广、积分兑换、直播推广、召回、抖音直播、领取礼品、关注公众号、到店领取、免费领取、会展推广、APP下载等内容
。
禁止发送股票、移民、面试招聘、彩票、返利、抽奖、贷款、催款、征信、投资理财、赌博、中奖、毒品、党政、法律维权、众筹、慈善捐款、宗教、迷信、殡葬、刷单、空包网、一元夺宝、一元秒杀、A 货、医疗、整形、美容、会所、酒吧、足浴、暴力、恐吓、色情、皮草、助考、装修(含建材和家私)、商标注册、加群、加 QQ 或者加微信、相亲交友、贩卖个人信息、宣传短信通道、游戏推广、会展推广、网站推广、优惠券类推广、卡类推广、保险推广、信用卡提额、返现返利、代开发票、邀请好评、酒类、用户拉新以及用户召回等类型的短信
。
<el-button
v-show=
"showMoreFlag"
type=
"text"
@
click=
"showMoreFlag = false"
style=
"margin-left: 5px"
>
收起
</el-button>
</p>
</div>
...
...
@@ -46,7 +46,7 @@
<el-button
v-show=
"!showMoreFlag"
type=
"text"
@
click=
"showMoreFlag = true"
style=
"margin-left: 5px"
>
查看更多
<i
class=
"iconfont icon-zhankai- arrow_icon"
/></el-button>
</p>
<p
v-show=
"showMoreFlag"
>
不允许发送如邀请注册、关注注册、邀请成为会员、拉新、注册拉新、推广拉新、股票、移民、面试招聘、彩票、返利、抽奖、贷款、催款、征信、投资理财、赌博、中奖、毒品、党政、法律维权、众筹、慈善捐款、宗教、迷信、殡葬、刷单、空包网、一元夺宝、大富翁游戏、游戏、寻宝、一元秒杀、A 货、医疗、整形、美容、会所、酒吧、足浴、暴力、恐吓、色情、皮草、助考、装修、建材、家私、商标注册、加群、加 Q 、加微信、相亲、交友、信用卡提额、返现返利、代开发票、邀请好评、酒类、教育、房产、金融、红包、奖池、积分推广、积分兑换、直播推广、召回、抖音直播、领取礼品、关注公众号、到店领取、免费领取、会展推广、APP下载等内容
。
禁止发送股票、移民、面试招聘、彩票、返利、抽奖、贷款、催款、征信、投资理财、赌博、中奖、毒品、党政、法律维权、众筹、慈善捐款、宗教、迷信、殡葬、刷单、空包网、一元夺宝、一元秒杀、A 货、医疗、整形、美容、会所、酒吧、足浴、暴力、恐吓、色情、皮草、助考、装修(含建材和家私)、商标注册、加群、加 QQ 或者加微信、相亲交友、贩卖个人信息、宣传短信通道、游戏推广、会展推广、网站推广、优惠券类推广、卡类推广、保险推广、信用卡提额、返现返利、代开发票、邀请好评、酒类、用户拉新以及用户召回等类型的短信
。
<el-button
v-show=
"showMoreFlag"
type=
"text"
@
click=
"showMoreFlag = false"
style=
"margin-left: 5px"
>
收起
</el-button>
</p>
</div>
...
...
src/views/message/blackList.vue
View file @
a043b976
...
...
@@ -28,7 +28,7 @@
<el-dialog
:visible
.
sync=
"dialogData.visible"
:title=
"dialogTitle"
width=
"600px"
@
close=
"resetDialog"
>
<el-form
v-if=
"!isExiteErrorPhone"
ref=
"form"
:model=
"dialogData.form"
:rules=
"dialogData.form.rules"
label-width=
"110px"
>
<el-form-item
label=
"黑名单内容:"
prop=
"phoneList"
>
<el-input
type=
"textarea"
v-model=
"dialogData.form.phoneList"
placeholder=
"回车换行,一行输入一个手机号码,最多可以添加1000个号码"
:
maxlength=
"1000"
:
rows=
"4"
show-word-limit
class=
"w410"
resize=
"none"
/>
<el-input
type=
"textarea"
v-model=
"dialogData.form.phoneList"
placeholder=
"回车换行,一行输入一个手机号码,最多可以添加1000个号码"
:rows=
"4"
show-word-limit
class=
"w410"
resize=
"none"
/>
</el-form-item>
<el-form-item
label=
"填写添加原因:"
prop=
"reasonType"
>
<el-radio-group
v-model=
"dialogData.form.reasonType"
>
...
...
@@ -134,8 +134,8 @@ export default {
currentPage
,
pageSize
,
phoneNumber
:
phone
,
startTime
:
formatDateTimeByType
(
time
[
0
],
'yyyy-MM-dd-HH-mm-ss'
,
true
).
y
||
''
,
endTime
:
formatDateTimeByType
(
time
[
1
],
'yyyy-MM-dd-HH-mm-ss'
,
true
).
y
||
''
startTime
:
Array
.
isArray
(
time
)
&&
time
[
0
]
?
formatDateTimeByType
(
time
[
0
],
'yyyy-MM-dd-HH-mm-ss'
,
true
).
y
:
''
,
endTime
:
Array
.
isArray
(
time
)
&&
time
[
1
]
?
formatDateTimeByType
(
time
[
1
],
'yyyy-MM-dd-HH-mm-ss'
,
true
).
y
:
''
};
const
result
=
await
getBlackList
(
para
);
this
.
tableData
.
data
=
result
.
result
.
result
||
[];
...
...
@@ -180,6 +180,7 @@ export default {
const
arr
=
this
.
dialogData
.
form
.
phoneList
.
split
(
'
\
n'
);
this
.
dialogData
.
form
.
errorPhoneList
=
arr
.
filter
(
el
=>
el
.
trim
()
&&
!
reg
.
test
(
el
.
trim
()));
const
result
=
arr
.
filter
(
el
=>
reg
.
test
(
el
.
trim
())).
map
(
el
=>
el
.
trim
());
if
(
result
.
length
>
1000
)
result
.
length
=
1000
;
return
result
.
toString
();
},
resetDialog
()
{
...
...
src/views/message/form.vue
View file @
a043b976
<
template
>
<el-form
v-loading=
"loading"
label-width=
"110px"
>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
群发客户
</h3>
<el-form
v-loading=
"loading"
>
<section
class=
"dm-form__wrap"
style=
"padding-bottom: 50px"
>
<div
class=
"pt10 pb20"
>
<span
class=
"dm-input_label"
>
选择客户:
</span>
<span
class=
"dm-input_label"
>
选择
群发
客户:
</span>
<el-radio
v-model=
"info.memberType"
:label=
"0"
>
客户筛选
</el-radio>
<el-radio
v-model=
"info.memberType"
:label=
"1"
>
指定客户
...
...
@@ -22,12 +21,7 @@
</div>
<vue-gic-confirm-people
v-if=
"info.memberType === 1"
idType=
"memberId"
sendType=
"message"
@
get-data=
"getConfirmData"
></vue-gic-confirm-people>
<vue-gic-member-group
v-if=
"info.memberType === 2"
:defaltSelected=
"defaltSelected"
:height=
"500"
:projectName=
"projectName"
:headerList=
"headerList"
@
handleDataTransferred=
"handleDataTransferred"
@
handleDataLeft=
"handleDataLeft"
></vue-gic-member-group>
</section>
<section
class=
"dm-form__wrap"
>
<h3
class=
"dm-title__label"
>
短信模板设置
</h3>
<div
class=
"mb20"
>
<div
class=
"mb20"
style=
"margin-top: 40px"
>
<span
class=
"dm-input_label"
>
短信类型:
</span>
<el-radio-group
v-model=
"smsType"
@
change=
"info.gicSmsTemplateId = ''"
>
<el-radio
:label=
"1"
>
营销短信
</el-radio>
...
...
@@ -37,9 +31,19 @@
<div
class=
"border-radius2"
style=
"padding:15px;"
>
<sms-temp
pbSize=
"pb15"
:activeId
.
sync=
"info.gicSmsTemplateId"
:type=
"smsType"
></sms-temp>
</div>
</section>
<section
class=
"dm-form__wrap"
style=
"padding-bottom: 60px"
>
<h3
class=
"dm-title__label"
>
场景设置
</h3>
<div
class=
"mb20"
style=
"margin-top: 40px;"
>
<p
class=
"mb10"
>
发送时间
<span
v-show=
"smsType && info.sendType"
style=
"color:#909399;font-size:12px;margin-left: 10px"
>
因运营商限制,营销短信发送时间为每日8:00-22:00,尽量避免夜间发送,减少用户投诉。
</span>
</p>
<el-radio-group
v-model=
"info.sendType"
style=
"padding-left: 68px"
>
<el-radio
class=
"radio"
v-for=
"(v, i) in sendTypeOptions"
:key=
"i"
:label=
"v.value"
>
{{
v
.
label
}}
</el-radio>
</el-radio-group>
<div
class=
"timerpicker"
>
<el-date-picker
class=
"w250"
v-if=
"info.sendType"
v-model=
"info.sendTime"
type=
"date"
placeholder=
"选择日期"
align=
"right"
:picker-options=
"pickerOptions"
></el-date-picker>
<el-time-picker
class=
"w250"
v-if=
"info.sendType && info.sendTime"
v-model=
"info.sendHourTime"
placeholder=
"选择时间"
:picker-options=
"pickerHourOptions"
></el-time-picker>
</div>
</div>
<el-form-item
label=
"数据对话"
>
<template
slot=
"label"
>
<span>
数据对话
</span>
...
...
@@ -49,14 +53,7 @@
</
template
>
<dm-activity-select
:actId
.
sync=
"info.marketingActivityId"
:readOnly=
"isEdit || isInfo"
></dm-activity-select>
</el-form-item>
<el-form-item
label=
"发送时间"
>
<el-select
class=
"w250"
v-model=
"info.sendType"
>
<el-option
v-for=
"(v, i) in sendTypeOptions"
:key=
"i"
:value=
"v.value"
:label=
"v.label"
></el-option>
</el-select>
<el-date-picker
class=
"w250"
v-if=
"info.sendType"
v-model=
"info.sendTime"
type=
"date"
placeholder=
"选择日期"
align=
"right"
:picker-options=
"pickerOptions"
></el-date-picker>
<el-time-picker
class=
"w250"
v-if=
"info.sendType && info.sendTime"
v-model=
"info.sendHourTime"
placeholder=
"选择时间"
:picker-options=
"pickerHourOptions"
></el-time-picker>
</el-form-item>
<span
v-show=
"smsType && info.sendType"
style=
"color:#909399;font-size:12px;padding-left:110px"
>
因运营商限制,营销短信发送时间为每日8:00-22:00,尽量避免夜间发送,减少用户投诉。
</span>
<!-- <span v-show="smsType && info.sendType" style="color:#909399;font-size:12px;padding-left:110px">因运营商限制,营销短信发送时间为每日8:00-22:00,尽量避免夜间发送,减少用户投诉。</span> -->
</section>
<div
class=
"btn-wrap_fixed"
:class=
"{ on: asideShow }"
>
<el-button
type=
"primary"
@
click=
"sendSms"
>
提 交
</el-button>
...
...
@@ -75,7 +72,10 @@ export default {
data
()
{
return
{
loading
:
false
,
sendTypeOptions
:
[{
value
:
0
,
label
:
'立即发送'
},
{
value
:
1
,
label
:
'定时发送'
}],
// eslint-disable-line
sendTypeOptions
:
[
{
value
:
0
,
label
:
'立即发送'
},
{
value
:
1
,
label
:
'定时发送'
}
],
// eslint-disable-line
smsTempList
:
[],
pickerOptions
:
{
disabledDate
(
val
)
{
...
...
@@ -83,7 +83,7 @@ export default {
}
},
pickerHourOptions
:
{
selectableRange
:
[
'8:0
0:00 - 22:00:00
'
]
selectableRange
:
[
'8:0
1:00 - 21:59:59
'
]
},
// 人群筛选器可传参数
sceneValue
:
'member'
,
// 场景值
...
...
@@ -125,7 +125,12 @@ export default {
}
},
created
()
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'短信营销'
,
path
:
''
},
{
name
:
'短信群发'
,
path
:
'/message/record'
},
{
name
:
'新建群发'
,
path
:
''
}]);
// eslint-disable-line
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[
{
name
:
'营销管理'
,
path
:
''
},
{
name
:
'短信营销'
,
path
:
''
},
{
name
:
'短信群发'
,
path
:
'/message/record'
},
{
name
:
'新建群发'
,
path
:
''
}
]);
// eslint-disable-line
},
methods
:
{
//提交表单验证人数 人员筛选和会员分组 需要
...
...
@@ -350,4 +355,17 @@ export default {
line-height
:
40px
;
padding
:
0
10px
;
}
.radio
{
display
:
block
;
margin-top
:
10px
;
&:nth-child(2)
{
margin-left
:
0
;
margin-top
:
20px
;
}
}
.timerpicker
{
display
:
inline-block
;
position
:
relative
;
top
:
20px
;
}
</
style
>
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