Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
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
bp
op-web-service
Commits
01a616f8
Commit
01a616f8
authored
Aug 23, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
dbbffc0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
0 deletions
+100
-0
index.vue
src/pages/Marketing/Center/index.vue
+81
-0
index.js
src/router/Marketing/index.js
+17
-0
index.js
src/router/index.js
+2
-0
No files found.
src/pages/Marketing/Center/index.vue
0 → 100644
View file @
01a616f8
<
template
>
<layout>
<div
class=
"life-no"
>
<!--
<page
:totalNum=
"totalNum"
@
update=
"update"
/>
-->
</div>
</layout>
</
template
>
<
script
>
import
Layout
from
'@/layouts'
import
page
from
"@/components/Pagination"
// import { getLifeNoList as reqGetLifeNoList } from "../../service/life-no";
export
default
{
name
:
"MarketingCenter"
,
components
:
{
Layout
,
page
},
data
()
{
return
{
params
:
{
page
:
1
,
page_size
:
20
},
}
},
created
()
{
// this.getLifeNoListFn()
},
methods
:
{
//获取列表数据
getLifeNoListFn
()
{
let
{
name
,
type
}
=
this
.
life_account
let
{
page
,
page_size
}
=
this
.
params
let
params
=
{
page
,
page_size
,
life_account_name
:
name
,
life_account_type
:
type
}
reqGetLifeNoList
(
params
).
then
(
res
=>
{
this
.
totalNum
=
res
.
count
this
.
LifeNoList
=
res
.
data
})
},
//查询
onSearchSubmit
()
{
this
.
getLifeNoListFn
()
},
//重置
onReset
()
{
this
.
life_account
.
name
=
""
,
this
.
life_account
.
type
=
""
this
.
getLifeNoListFn
()
},
update
(
obj
)
{
Object
.
assign
(
this
.
params
,
obj
)
this
.
getLifeNoListFn
(
this
.
params
)
},
toLifeDetail
(
row
)
{
this
.
$router
.
push
({
name
:
'LifeNoDetail'
,
query
:
{
lifeId
:
row
.
life_account_id
}
});
},
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.life-no {
margin: 30px;
.search_life {
width: 280px;
}
}
</
style
>
src/router/Marketing/index.js
0 → 100644
View file @
01a616f8
/**
* 商品列表管理
*/
const
MarketingRouters
=
[
{
path
:
"/op/marketing"
,
redirect
:
"/op/marketing/center"
},
{
path
:
"/op/marketing/Center"
,
name
:
"MarketingCenter"
,
component
:
()
=>
import
(
/* webpackChunkName: "marketing" */
"@/pages/Marketing/Center"
)
},
];
export
default
MarketingRouters
;
src/router/index.js
View file @
01a616f8
...
...
@@ -15,6 +15,7 @@ import withdrawalRoutes from "./Withdrawal/index";
import
groupmealRouters
from
"./Groupmeal/index"
;
import
activityRouters
from
"./Activity/index"
;
import
Login
from
"@/pages/Login/index"
;
//登录
import
MarketingRouters
from
"./Marketing/index"
;
//营销中心
const
routes
=
[
{
...
...
@@ -111,6 +112,7 @@ const routes = [
// 活动管理路由
...
activityRouters
,
// 钱包审核
...
MarketingRouters
,
...
withdrawalRoutes
,
...
groupmealRouters
];
...
...
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