Showing
14 changed files
with
68 additions
and
68 deletions
@@ -7,13 +7,13 @@ let purviews = { | @@ -7,13 +7,13 @@ let purviews = { | ||
7 | name: '发布新商品', | 7 | name: '发布新商品', |
8 | path: '/product/create' | 8 | path: '/product/create' |
9 | }, | 9 | }, |
10 | - sales: { | 10 | + onsale: { |
11 | name: '在售商品', | 11 | name: '在售商品', |
12 | - path: '/product/sale' | 12 | + path: '/product/onsale' |
13 | }, | 13 | }, |
14 | - unstock: { | 14 | + offsale: { |
15 | name: '未上架商品', | 15 | name: '未上架商品', |
16 | - path: '/product/unstock' | 16 | + path: '/product/offsale' |
17 | }, | 17 | }, |
18 | vips: { | 18 | vips: { |
19 | name: 'VIP价格商品', | 19 | name: 'VIP价格商品', |
app/pages/home/dashboard/index.js
deleted
100644 → 0
app/pages/home/index.js
deleted
100644 → 0
app/pages/home/overview/index.js
deleted
100644 → 0
1 | import layout from './layout'; | 1 | import layout from './layout'; |
2 | 2 | ||
3 | -import home from './home'; | ||
4 | import product from './product'; | 3 | import product from './product'; |
5 | 4 | ||
6 | -let routers = [home, product]; | 5 | +let routers = [product]; |
7 | 6 | ||
8 | let childrenRoutes = [].concat(...routers); | 7 | let childrenRoutes = [].concat(...routers); |
9 | let routes = [{ | 8 | let routes = [{ |
1 | import create from './create'; | 1 | import create from './create'; |
2 | +import onsale from './onsale'; | ||
3 | +import offsale from './offsale'; | ||
4 | +import vips from './vips'; | ||
2 | 5 | ||
3 | -let routers = [create]; | 6 | +let routers = [create, onsale, offsale, vips]; |
4 | 7 | ||
5 | routers.forEach(router => { | 8 | routers.forEach(router => { |
6 | router.path = `/product${router.path}`; | 9 | router.path = `/product${router.path}`; |
1 | <template> | 1 | <template> |
2 | - <div class="content"> | ||
3 | - home | ||
4 | - <router-link to="dashboard">to dashboard</router-link> | 2 | + <div> |
3 | + offsale | ||
5 | </div> | 4 | </div> |
6 | </template> | 5 | </template> |
7 | 6 | ||
8 | <script> | 7 | <script> |
9 | - | ||
10 | -export default { | ||
11 | - name: 'overview', | ||
12 | - methods: { | ||
13 | - }, | 8 | + export default { |
14 | data() { | 9 | data() { |
15 | return { | 10 | return { |
16 | - }; | ||
17 | } | 11 | } |
18 | -}; | 12 | + } |
13 | + } | ||
19 | </script> | 14 | </script> |
20 | 15 | ||
21 | -<style lang="scss"> | ||
22 | -.title-time { | ||
23 | - margin-bottom: 10px; | 16 | +<style lang="scss" scoped> |
24 | 17 | ||
25 | - .ivu-date-picker { | ||
26 | - float: right; | ||
27 | - } | ||
28 | -} | ||
29 | </style> | 18 | </style> |
1 | <template> | 1 | <template> |
2 | - <div class="content"> | ||
3 | - dashboard | ||
4 | - <router-link to="/">to home</router-link> | ||
5 | - <router-link to="/login">to login</router-link> | ||
6 | - <button @click="link">home</button> | 2 | + <div> |
3 | + onsale | ||
7 | </div> | 4 | </div> |
8 | </template> | 5 | </template> |
9 | 6 | ||
10 | <script> | 7 | <script> |
11 | - | ||
12 | -export default { | ||
13 | - name: 'dashboard', | ||
14 | - methods: { | ||
15 | - link() { | ||
16 | - this.$router.push('/'); | ||
17 | - } | ||
18 | - }, | 8 | + export default { |
19 | data() { | 9 | data() { |
20 | return { | 10 | return { |
21 | - }; | ||
22 | } | 11 | } |
23 | -}; | 12 | + } |
13 | + } | ||
24 | </script> | 14 | </script> |
25 | 15 | ||
26 | -<style lang="scss"> | 16 | +<style lang="scss" scoped> |
27 | 17 | ||
28 | </style> | 18 | </style> |
app/pages/product/vips/index.js
0 → 100644
-
Please register or login to post a comment