Skip to content

Commit

Permalink
菜单添加营销功能
Browse files Browse the repository at this point in the history
  • Loading branch information
zhh committed Nov 7, 2018
1 parent c66fe33 commit efc924e
Show file tree
Hide file tree
Showing 13 changed files with 124 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/icons/svg/sms-ad.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icons/svg/sms-coupon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icons/svg/sms-hot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icons/svg/sms-new.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icons/svg/sms-subject.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icons/svg/sms.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,46 @@ export const constantRouterMap = [
}
]
},
{
path:'/sms',
component: Layout,
redirect: '/sms/coupon',
name: 'sms',
meta: {title: '营销', icon: 'sms'},
children: [
{
path: 'coupon',
name: 'coupon',
component: () => import('@/views/sms/coupon/index'),
meta: {title: '优惠券列表', icon: 'sms-coupon'}
},{
path: 'brand',
name: 'homeBrand',
component: () => import('@/views/sms/brand/index'),
meta: {title: '品牌推荐', icon: 'product-brand'}
},{
path: 'new',
name: 'homeNew',
component: () => import('@/views/sms/new/index'),
meta: {title: '新品推荐', icon: 'sms-new'}
},{
path: 'hot',
name: 'homeHot',
component: () => import('@/views/sms/hot/index'),
meta: {title: '人气推荐', icon: 'sms-hot'}
},{
path: 'subject',
name: 'homeSubject',
component: () => import('@/views/sms/subject/index'),
meta: {title: '专题推荐', icon: 'sms-subject'}
},{
path: 'advertise',
name: 'homeAdvertise',
component: () => import('@/views/sms/advertise/index'),
meta: {title: '广告列表', icon: 'sms-ad'}
}
]
},
{path: '*', redirect: '/404', hidden: true}
]

Expand Down
13 changes: 13 additions & 0 deletions src/views/sms/advertise/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template
<div> {{msg}}</div>
</template>
<script>
export default {
data() {
return {msg: '首页广告列表'}
}
}
</script>
<style></style>


13 changes: 13 additions & 0 deletions src/views/sms/brand/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template
<div> {{msg}}</div>
</template>
<script>
export default {
data() {
return {msg: '首页品牌推荐'}
}
}
</script>
<style></style>


13 changes: 13 additions & 0 deletions src/views/sms/coupon/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template
<div> {{msg}}</div>
</template>
<script>
export default {
data() {
return {msg: '优惠券列表'}
}
}
</script>
<style></style>


13 changes: 13 additions & 0 deletions src/views/sms/hot/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template
<div> {{msg}}</div>
</template>
<script>
export default {
data() {
return {msg: '首页人气推荐'}
}
}
</script>
<style></style>


13 changes: 13 additions & 0 deletions src/views/sms/new/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template
<div> {{msg}}</div>
</template>
<script>
export default {
data() {
return {msg: '首页新品推荐'}
}
}
</script>
<style></style>


13 changes: 13 additions & 0 deletions src/views/sms/subject/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template
<div> {{msg}}</div>
</template>
<script>
export default {
data() {
return {msg: '首页专题推荐'}
}
}
</script>
<style></style>


0 comments on commit efc924e

Please sign in to comment.