69 lines
1.6 KiB
TypeScript
69 lines
1.6 KiB
TypeScript
import { RouteConfig } from 'vue-router'
|
|
import Layout from '@/layout/index.vue'
|
|
|
|
const marketingRoutes: RouteConfig = {
|
|
path: '/marketing',
|
|
component: Layout,
|
|
meta: {
|
|
title: 'marketing',
|
|
icon: 'sell',
|
|
alwaysShow: true
|
|
},
|
|
children: [
|
|
{
|
|
path: 'coupon',
|
|
component: () => import('@/views/marketing/coupon.vue'),
|
|
name: 'CouponSetting',
|
|
meta: {
|
|
title: 'marketing_coupon',
|
|
permissions: ['coupon:read'],
|
|
icon: 'coupon'
|
|
}
|
|
},
|
|
{
|
|
path: 'edit_coupon',
|
|
component: () => import('@/views/marketing/coupon_edit.vue'),
|
|
name: 'CouponDetail',
|
|
meta: {
|
|
title: 'marketing_coupon_info',
|
|
permissions: ['coupon:read'],
|
|
icon: 'coupon',
|
|
hidden: true
|
|
}
|
|
},
|
|
{
|
|
path: 'edit_coupon/:id',
|
|
component: () => import('@/views/marketing/coupon_edit.vue'),
|
|
name: 'CouponDetail',
|
|
meta: {
|
|
title: 'marketing_coupon_info',
|
|
permissions: ['coupon:read'],
|
|
icon: 'coupon',
|
|
hidden: true
|
|
}
|
|
},
|
|
{
|
|
path: 'promo',
|
|
component: () => import('@/views/marketing/promo.vue'),
|
|
name: 'PromoSetting',
|
|
meta: {
|
|
title: 'marketing_promo',
|
|
permissions: ['promo:read'],
|
|
icon: 'promo'
|
|
}
|
|
},
|
|
{
|
|
path: 'points',
|
|
component: () => import('@/views/marketing/points.vue'),
|
|
name: 'PointsSetting',
|
|
meta: {
|
|
title: 'marketing_points',
|
|
permissions: ['points:read'],
|
|
icon: 'points'
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
export default marketingRoutes
|