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
b0750ea9
Commit
b0750ea9
authored
Oct 22, 2020
by
chenxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: scan
parent
fe4c068e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
4 deletions
+92
-4
ecm.js
src/router/modules/ecm.js
+3
-3
scan-form.vue
src/views/ecm/scan-form.vue
+89
-1
No files found.
src/router/modules/ecm.js
View file @
b0750ea9
...
...
@@ -86,7 +86,7 @@ export const scan = {
},
{
path
:
'edit/:id'
,
name
:
'
智能营销
编辑'
,
name
:
'
营销计划
编辑'
,
component
:
()
=>
import
(
/* webpackChunkName: "scan" */
'../../views/ecm/scan-form.vue'
),
meta
:
{
type
:
'edit'
,
...
...
@@ -95,7 +95,7 @@ export const scan = {
},
{
path
:
'info/:id'
,
name
:
'
智能营销
详情'
,
name
:
'
营销计划
详情'
,
component
:
()
=>
import
(
/* webpackChunkName: "scan" */
'../../views/ecm/scan-form.vue'
),
meta
:
{
type
:
'info'
,
...
...
@@ -104,7 +104,7 @@ export const scan = {
},
{
path
:
'add'
,
name
:
'
智能营销
新增'
,
name
:
'
营销计划
新增'
,
component
:
()
=>
import
(
/* webpackChunkName: "scan" */
'../../views/ecm/scan-form.vue'
),
meta
:
{
type
:
'add'
,
...
...
src/views/ecm/scan-form.vue
View file @
b0750ea9
<
template
>
<div></div>
<div
class=
"dm-form__wrap scan-form"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"110px"
:rules=
"rules"
v-loading=
"loading"
element-loading-text=
"拼命加载中"
>
<h3
class=
"title"
>
计划内容设置
</h3>
<el-form-item
label=
"计划名称"
prop=
"ecmPlanName"
>
<dm-input
class=
"w400"
:maxlength=
"9"
v-model=
"form.ecmPlanName"
:disabled=
"!isAdd"
></dm-input>
</el-form-item>
<el-form-item
label=
"计划时间"
prop=
"ecmTime"
></el-form-item>
<el-form-item
label=
"数据对话"
>
<activity-select
:actId
.
sync=
"form.marketingActivityId"
:readOnly=
"!isAdd"
></activity-select>
</el-form-item>
<h3
class=
"title"
>
营销次数配置
<el-tooltip
class=
"item"
effect=
"dark"
content=
"设置本营销计划对同个会员的触发次数"
open-delay=
"500"
placement=
"top-start"
>
<i
class=
"ml10 iconfont icon-xinxixianshi cursor fz14 gray"
></i>
</el-tooltip>
</h3>
<el-form-item
label=
"营销次数配置"
prop=
"marketingTimesType"
>
<el-select
:disabled=
"!isAdd"
v-model=
"form.marketingTimesType"
class=
"w150 vertical-middle"
>
<el-option
v-for=
"(v, i) in marketingTimesTypeOptions"
:key=
"i"
:value=
"v.value"
:label=
"v.label"
></el-option>
</el-select>
<span
class=
"vertical-middle"
v-if=
"form.marketingTimesType !== -1"
><el-input-number
:disabled=
"!isAdd"
controls-position=
"right"
class=
"w150"
:min=
"1"
v-model=
"form.marketingTimes"
></el-input-number>
次
</span>
<span
class=
"pl20 fz13 gray"
>
* 该营销计划
{{
marketingTimesTips
}}
</span>
</el-form-item>
<h3
class=
"title"
>
扫码营销设置
</h3>
<h3
class=
"title"
>
适用人群
</h3>
<h3
class=
"title"
>
营销事件
</h3>
</el-form>
</div>
</
template
>
<
script
>
import
activitySelect
from
'@/components/activity-select/index.vue'
;
export
default
{
name
:
'scan-form'
,
components
:
{
activitySelect
},
data
()
{
return
{
ecmPlanId
:
''
,
// 必传,
loading
:
false
,
form
:
{
memberType
:
0
,
ecmPlanName
:
''
,
effectType
:
0
,
effectTime
:
0
,
effectAction
:
'subscribe'
,
marketingActivityId
:
''
,
sceneSettingName
:
''
,
expireType
:
0
,
cardId
:
''
,
mediaId
:
''
,
imageTextId
:
''
,
textContent
:
''
,
title
:
''
,
describe
:
''
,
lateDays
:
''
,
brithday_day
:
''
,
brithday_type
:
1
,
attention_day
:
''
,
lastCost_day
:
''
,
memberSearchDTO
:
''
,
memberGroupIds
:
''
,
beginDate
:
''
,
endDate
:
''
,
cardNoticeType
:
0
,
templateNoticeFlag
:
0
,
// 判断模板消息能否使用
templateUseEnable
:
1
,
marketingTimesType
:
0
,
marketingTimes
:
1
,
gradeIds
:
[],
//消费触发
lowest_cost
:
''
,
max_cost
:
''
,
lowest_cost_count
:
''
,
max_cost_count
:
''
,
// store_mode: 0,
order_store
:
''
},
rules
:
{
ecmPlanName
:
{
type
:
'string'
,
required
:
true
,
message
:
'计划名称不能为空'
,
trigger
:
'blur'
}
},
marketingTimesTypeOptions
:
[{
value
:
0
,
label
:
'总共触发'
},
{
value
:
1
,
label
:
'每天触发'
},
{
value
:
2
,
label
:
'每周触发'
},
{
value
:
3
,
label
:
'每月触发'
},
{
value
:
4
,
label
:
'每年触发'
},
{
value
:
-
1
,
label
:
'无限次触发'
}],
// eslint-disable-line
isEdit
:
this
.
$route
.
meta
.
type
===
'edit'
,
isAdd
:
this
.
$route
.
meta
.
type
===
'add'
,
isInfo
:
this
.
$route
.
meta
.
type
===
'info'
...
...
@@ -19,3 +95,15 @@ export default {
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.scan-form
{
.title
{
font-size
:
16px
;
font-weight
:
500
;
color
:
#303133
;
line-height
:
22px
;
margin-bottom
:
23px
;
}
}
</
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