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
1c12dd31
Commit
1c12dd31
authored
Mar 02, 2020
by
chenxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: card 微盟code
parent
c1dd3e65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
form.js
src/views/card/form.js
+7
-3
No files found.
src/views/card/form.js
View file @
1c12dd31
...
...
@@ -122,7 +122,7 @@ export default {
wmShopIds
:
[],
// 保存过的店铺id不能重复选择
countFlag
:
0
,
// 微盟店铺 0不能使用 1只能添加1条 2能添加多条
weimobShopList
:
[],
// 微盟店铺list
weimobDemoCodeList
:
[]
// 保存的微盟店铺以及对应的微盟券号 {pid:xxxx,card:xxxx,loading:false, cardList: [], save: false, name: ''}
weimobDemoCodeList
:
[
{
pid
:
''
,
card
:
''
,
loading
:
false
,
cardList
:
[],
save
:
false
,
cardName
:
''
}
]
// 保存的微盟店铺以及对应的微盟券号 {pid:xxxx,card:xxxx,loading:false, cardList: [], save: false, name: ''}
};
},
watch
:
{
...
...
@@ -295,10 +295,15 @@ export default {
}
// 微盟券号 -- 复制不赋值
if
(
card
.
cardApplyChannel
.
indexOf
(
'WMmicroMall'
)
!==
-
1
&&
card
.
weimobDemoCode
&&
this
.
isAdd
&&
this
.
isInfo
)
{
if
(
card
.
cardApplyChannel
.
indexOf
(
'WMmicroMall'
)
!==
-
1
&&
card
.
weimobDemoCode
&&
(
this
.
isAdd
||
this
.
isInfo
||
this
.
isEdit
))
{
console
.
log
(
card
.
weimobDemoCode
);
this
.
weimobDemoCodeList
=
JSON
.
parse
(
card
.
weimobDemoCode
).
map
(
v
=>
{
return
{
pid
:
v
.
pid
,
card
:
v
.
card
,
loading
:
false
,
cardList
:
[{
cardTemplateId
:
v
.
card
,
name
:
v
.
name
}],
save
:
true
,
name
:
v
.
name
};
});
if
(
!
this
.
weimobDemoCodeList
.
length
)
{
// 如果可以保存微盟券号但是微盟券号为[]
this
.
addWmShop
();
}
}
// 微盟适用商品
...
...
@@ -771,7 +776,6 @@ export default {
// 获取微盟店铺列表
getListEntepriseWeimobShop
()
{
listEntepriseWeimobShop
().
then
(
res
=>
{
this
.
weimobDemoCodeList
=
[{
pid
:
''
,
card
:
''
,
loading
:
false
,
cardList
:
[],
save
:
false
,
cardName
:
''
}];
this
.
countFlag
=
res
.
result
.
countFlag
||
0
;
this
.
weimobShopList
=
res
.
result
.
dataList
||
[];
});
...
...
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