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
9eb7e78c
Commit
9eb7e78c
authored
Sep 06, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/8月-奥莱定制' into dev
parents
adbe32fc
96dc312e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
6 deletions
+18
-6
marketing.js
src/store/modules/marketing.js
+5
-0
limiting.js
src/utils/limiting.js
+1
-0
list.vue
src/views/card/list.vue
+4
-2
lib-card.vue
src/views/ecm/marketing-event/components/lib-card.vue
+4
-2
lib-card.vue
src/views/sign/components/lib-card.vue
+4
-2
No files found.
src/store/modules/marketing.js
View file @
9eb7e78c
...
...
@@ -6,6 +6,7 @@ const state = {
limitCodeList
:
[],
isLimit
:
false
,
// 是否正在限流
all
:
0
,
storeCardAuth
:
false
,
// 商户是否开通商场抵金券功能
cartData
:
[],
total
:
0
,
leftMenu
:
[],
...
...
@@ -29,6 +30,7 @@ const getters = {
},
allCartData
:
state
=>
state
.
cartData
,
getStoreCardAuth
:
state
=>
state
.
storeCardAuth
,
total
:
state
=>
{
state
.
total
=
0
;
...
...
@@ -97,6 +99,9 @@ const mutations = {
state
.
isShowSelf
=
Boolean
(
showFlag
);
state
.
openFlag
=
Boolean
(
openFlag
);
},
updateStoreCardAuth
(
state
,
auth
)
{
state
.
storeCardAuth
=
auth
;
},
updateLimitCodeList
(
state
,
limitCodeList
)
{
state
.
limitCodeList
=
limitCodeList
;
},
...
...
src/utils/limiting.js
View file @
9eb7e78c
...
...
@@ -12,6 +12,7 @@ export default config => {
store
.
commit
(
'updateSuperAdmin'
,
result
.
superAdmin
);
store
.
commit
(
'updateDepartAuth'
,
result
.
departAuth
);
store
.
commit
(
'updateUserId'
,
result
.
userId
);
store
.
commit
(
'updateStoreCardAuth'
,
result
.
enterpriseDTO
.
brandType
==
2
);
});
const
getCouponEnable
=
requests
(
'/api-marketing/opt-coupon-enable'
,
{
requestProject
:
'marketing'
}).
then
(
data
=>
{
store
.
commit
(
'updateAppletEnable'
,
data
.
result
||
false
);
// result: true,能改 false不能
...
...
src/views/card/list.vue
View file @
9eb7e78c
...
...
@@ -60,8 +60,7 @@ export default {
{
value
:
''
,
label
:
'全部卡券类型'
},
{
value
:
0
,
label
:
'抵金券'
},
{
value
:
1
,
label
:
'折扣券'
},
{
value
:
2
,
label
:
'兑换券'
},
{
value
:
3
,
label
:
'商场抵金券'
}
{
value
:
2
,
label
:
'兑换券'
}
],
sortFlag
:
false
,
adjustStock
:
false
,
...
...
@@ -88,6 +87,9 @@ export default {
next
();
},
activated
()
{
if
(
this
.
$store
.
getters
.
getStoreCardAuth
)
{
this
.
cardTypeOptions
.
push
({
value
:
3
,
label
:
'商场抵金券'
});
}
console
.
log
(
'activated'
);
window
.
scrollTo
(
0
,
0
);
if
(
this
.
$route
.
meta
.
refresh
)
{
...
...
src/views/ecm/marketing-event/components/lib-card.vue
View file @
9eb7e78c
...
...
@@ -103,8 +103,7 @@ export default {
{
value
:
null
,
label
:
'全部'
},
{
value
:
0
,
label
:
'抵金券'
},
{
value
:
1
,
label
:
'折扣券'
},
{
value
:
2
,
label
:
'兑换券'
},
{
value
:
3
,
label
:
'商场抵金券'
}
{
value
:
2
,
label
:
'兑换券'
}
],
listParams
:
{
searchParam
:
''
,
...
...
@@ -121,6 +120,9 @@ export default {
};
},
created
()
{
if
(
this
.
$store
.
getters
.
getStoreCardAuth
)
{
this
.
cardTypesList
.
push
({
value
:
3
,
label
:
'商场抵金券'
});
}
this
.
getCardList
();
},
methods
:
{
...
...
src/views/sign/components/lib-card.vue
View file @
9eb7e78c
...
...
@@ -101,8 +101,7 @@ export default {
{
value
:
null
,
label
:
'全部'
},
{
value
:
0
,
label
:
'抵金券'
},
{
value
:
1
,
label
:
'折扣券'
},
{
value
:
2
,
label
:
'兑换券'
},
{
value
:
3
,
label
:
'商场抵金券'
}
{
value
:
2
,
label
:
'兑换券'
}
],
listParams
:
{
searchParam
:
''
,
...
...
@@ -120,6 +119,9 @@ export default {
};
},
created
()
{
if
(
this
.
$store
.
getters
.
getStoreCardAuth
)
{
this
.
cardTypesList
.
push
({
value
:
3
,
label
:
'商场抵金券'
});
}
this
.
getCardList
();
},
methods
:
{
...
...
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