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
bc63bf66
Commit
bc63bf66
authored
Feb 14, 2022
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 扫码营销增加字段区分
parent
6c5f9ea5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
index.vue
src/views/ecm/marketing-event/index.vue
+4
-3
scan-form.js
src/views/ecm/scan-form.js
+1
-1
scan-form.vue
src/views/ecm/scan-form.vue
+1
-1
scan-list.vue
src/views/ecm/scan-list.vue
+1
-1
No files found.
src/views/ecm/marketing-event/index.vue
View file @
bc63bf66
...
...
@@ -159,7 +159,8 @@ export default {
},
useQfxx
:
Boolean
,
showDeleteTooltip
:
Boolean
,
consumType
:
1
// 1 单笔订单金额触发,2 累计订单金额触发
consumType
:
1
,
// 1 单笔订单金额触发,2 累计订单金额触发
scence
:
String
},
data
()
{
return
{
...
...
@@ -475,7 +476,7 @@ export default {
params
=
{
...
params
,
...
val
};
}
// 接口请求 保存
saveUpdateMarketingType
({
marketingType
:
JSON
.
stringify
(
params
)
})
saveUpdateMarketingType
({
marketingType
:
JSON
.
stringify
(
params
)
,
type
:
this
.
scence
})
.
then
(
res
=>
{
this
.
getMarketingList
();
})
...
...
@@ -503,7 +504,7 @@ export default {
// 删除操作
delItem
(
item
)
{
console
.
log
(
item
);
deleteMarketingType
({
ecmMarketingTypeRelationId
:
item
.
item
.
ecmMarketingTypeRelationId
,
ecmPlanId
:
this
.
ecmPlanId
})
deleteMarketingType
({
ecmMarketingTypeRelationId
:
item
.
item
.
ecmMarketingTypeRelationId
,
ecmPlanId
:
this
.
ecmPlanId
,
type
:
this
.
scence
})
.
then
(
res
=>
{
if
(
res
.
errorCode
===
0
)
{
this
.
getMarketingList
();
...
...
src/views/ecm/scan-form.js
View file @
bc63bf66
...
...
@@ -497,7 +497,7 @@ export default {
};
params
.
marketingTemplate
=
JSON
.
stringify
(
marketingTemplate
);
}
params
.
type
=
'scan'
;
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
saveEcmInfo
(
params
);
...
...
src/views/ecm/scan-form.vue
View file @
bc63bf66
...
...
@@ -63,7 +63,7 @@
<h3
class=
"title mt46"
>
营销事件
</h3>
<div>
<!-- 只有实时才是单图文 -->
<marketing-event
style=
"margin-top:0;"
show-out-coupon-icon
:readOnly=
"isInfo"
ref=
"marketingEvent"
@
has-card=
"hasCard"
v-if=
"ecmPlanId"
:singleFlag=
"form.effectType === 0"
:integralMultiple=
"form.effectAction === 'consume'"
:ecmPlanId=
"ecmPlanId"
:isSupportVar=
"form.effectType === 0"
:code=
"code"
:enabledMessageState=
"enabledMessageState"
:cardLimitType=
"-1"
></marketing-event>
<marketing-event
style=
"margin-top:0;"
show-out-coupon-icon
:readOnly=
"isInfo"
ref=
"marketingEvent"
@
has-card=
"hasCard"
v-if=
"ecmPlanId"
:singleFlag=
"form.effectType === 0"
:integralMultiple=
"form.effectAction === 'consume'"
:ecmPlanId=
"ecmPlanId"
:isSupportVar=
"form.effectType === 0"
:code=
"code"
:enabledMessageState=
"enabledMessageState"
:cardLimitType=
"-1"
scence=
"scan"
></marketing-event>
<!-- 只有存在卡券的情况下出现卡券通知方式 -->
<section
v-if=
"currentCard.comName"
>
<h3
class=
"title mt46"
>
卡券通知方式配置
</h3>
...
...
src/views/ecm/scan-list.vue
View file @
bc63bf66
...
...
@@ -158,7 +158,7 @@ export default {
// 删除
async
delData
(
row
)
{
try
{
let
res
=
await
deleteEcm
({
ecmPlanId
:
row
.
ecmPlanId
});
let
res
=
await
deleteEcm
({
ecmPlanId
:
row
.
ecmPlanId
,
type
:
'scan'
});
if
(
res
.
errorCode
===
0
)
{
this
.
$tips
({
type
:
'success'
,
message
:
'删除成功!'
});
if
(
this
.
tableList
.
length
===
1
&&
this
.
listParams
.
currentPage
!==
1
)
{
...
...
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