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
0fd2717a
Commit
0fd2717a
authored
Jul 15, 2021
by
陈羽
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/弹窗推广'
parents
afa3ac6f
d740f0d3
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
14 deletions
+14
-14
pop.js
src/router/modules/pop.js
+7
-7
card.png
src/views/popup/assets/img/card.png
+0
-0
delete_icon.png
src/views/popup/assets/img/delete_icon.png
+0
-0
popPreviewBg.png
src/views/popup/assets/img/popPreviewBg.png
+0
-0
stock_icon.png
src/views/popup/assets/img/stock_icon.png
+0
-0
form.vue
src/views/popup/form.vue
+4
-4
index.vue
src/views/popup/index.vue
+1
-1
list.vue
src/views/popup/list.vue
+2
-2
No files found.
src/router/modules/pop.js
View file @
0fd2717a
// 弹窗
export
default
{
path
:
'pop'
,
path
:
'pop
up
'
,
name
:
'弹窗推广'
,
component
:
()
=>
import
(
/* webpackChunkName: "pop
" */
'../../views/po
p/index.vue'
),
redirect
:
'/pop/list'
,
component
:
()
=>
import
(
/* webpackChunkName: "pop
up" */
'../../views/popu
p/index.vue'
),
redirect
:
'/pop
up
/list'
,
children
:
[
{
path
:
'list'
,
name
:
'计划列表'
,
component
:
()
=>
import
(
/* webpackChunkName: "pop
" */
'../../views/po
p/list.vue'
),
component
:
()
=>
import
(
/* webpackChunkName: "pop
up" */
'../../views/popu
p/list.vue'
),
meta
:
{
path
:
'/pop/list'
path
:
'/pop
up
/list'
}
},
{
path
:
'add'
,
name
:
'新建计划'
,
component
:
()
=>
import
(
/* webpackChunkName: "pop
" */
'../../views/po
p/form.vue'
)
component
:
()
=>
import
(
/* webpackChunkName: "pop
up" */
'../../views/popu
p/form.vue'
)
},
{
path
:
'edit'
,
name
:
'编辑计划'
,
component
:
()
=>
import
(
/* webpackChunkName: "pop
" */
'../../views/po
p/form.vue'
)
component
:
()
=>
import
(
/* webpackChunkName: "pop
up" */
'../../views/popu
p/form.vue'
)
}
]
};
src/views/pop/assets/img/card.png
→
src/views/pop
up
/assets/img/card.png
View file @
0fd2717a
File moved
src/views/pop/assets/img/delete_icon.png
→
src/views/pop
up
/assets/img/delete_icon.png
View file @
0fd2717a
File moved
src/views/pop/assets/img/popPreviewBg.png
→
src/views/pop
up
/assets/img/popPreviewBg.png
View file @
0fd2717a
File moved
src/views/pop/assets/img/stock_icon.png
→
src/views/pop
up
/assets/img/stock_icon.png
View file @
0fd2717a
File moved
src/views/pop/form.vue
→
src/views/pop
up
/form.vue
View file @
0fd2717a
...
...
@@ -109,7 +109,7 @@
</div>
</div>
<el-form-item
label=
"定向人群:"
:prop=
"`popupMemberGroupList_${elIndex}`"
>
<vue-gic-member-group
:defaltSelected=
"pop.popupMemberGroupList"
:projectName=
"projectName"
:headerList=
"headerList"
:readonly=
"pop.activeStatus == 2"
@
handleDataTransferred=
"data => handleDataTransferred(data, elIndex)"
@
handleDataLeft=
"(selectedData, selectionToRemove) => handleDataLeft(selectedData, selectionToRemove, elIndex)"
></vue-gic-member-group>
<vue-gic-member-group
:
max-limit=
"10"
:
defaltSelected=
"pop.popupMemberGroupList"
:projectName=
"projectName"
:headerList=
"headerList"
:readonly=
"pop.activeStatus == 2"
@
handleDataTransferred=
"data => handleDataTransferred(data, elIndex)"
@
handleDataLeft=
"(selectedData, selectionToRemove) => handleDataLeft(selectedData, selectionToRemove, elIndex)"
></vue-gic-member-group>
</el-form-item>
<div
class=
"sort"
>
<el-popover
placement=
"bottom"
width=
"400"
trigger=
"click"
popper-class=
"pop_sort_popover"
:disabled=
"pop.activeStatus == 2"
>
...
...
@@ -348,7 +348,7 @@ export default {
},
created
()
{
const
path
=
this
.
$route
.
path
;
if
(
path
==
'/pop/edit'
)
{
if
(
path
==
'/pop
up
/edit'
)
{
this
.
getDetail
();
}
this
.
getPopupLinkList
();
...
...
@@ -464,8 +464,8 @@ export default {
if
(
item
.
popupMemberGroupList
&&
!
item
.
popupMemberGroupList
.
length
)
{
callback
(
new
Error
(
'请选择定向人群'
));
}
if
(
item
.
popupMemberGroupList
&&
item
.
popupMemberGroupList
.
length
>
3
)
{
callback
(
new
Error
(
'会员分组数量不能超过
3
个'
));
if
(
item
.
popupMemberGroupList
&&
item
.
popupMemberGroupList
.
length
>
10
)
{
callback
(
new
Error
(
'会员分组数量不能超过
10
个'
));
}
callback
();
},
...
...
src/views/pop/index.vue
→
src/views/pop
up
/index.vue
View file @
0fd2717a
...
...
@@ -7,7 +7,7 @@
export
default
{
name
:
'pop'
,
created
()
{
this
.
$store
.
commit
(
'mutations.breadcrumb'
,
[{
name
:
'营销管理'
},
{
name
:
'弹窗推广'
,
path
:
'/pop
'
},
{
name
:
'弹窗推广'
,
path
:
'/po
p/list'
}]);
this
.
$store
.
commit
(
'mutations.breadcrumb'
,
[{
name
:
'营销管理'
},
{
name
:
'弹窗推广'
,
path
:
'/pop
up'
},
{
name
:
'弹窗推广'
,
path
:
'/popu
p/list'
}]);
this
.
$store
.
commit
(
'aside_handler'
,
false
);
this
.
$nextTick
(
_
=>
{
this
.
$store
.
commit
(
'aside_handler'
,
true
);
...
...
src/views/pop/list.vue
→
src/views/pop
up
/list.vue
View file @
0fd2717a
...
...
@@ -177,9 +177,9 @@ export default {
},
goForm
(
group
,
type
)
{
if
(
type
===
'add'
)
{
this
.
$router
.
push
(
`/pop/add`
);
this
.
$router
.
push
(
`/pop
up
/add`
);
}
else
{
this
.
$router
.
push
(
`/pop/edit?id=
${
group
.
id
}
`
);
this
.
$router
.
push
(
`/pop
up
/edit?id=
${
group
.
id
}
`
);
}
},
delGroup
(
group
)
{
...
...
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