2023-02-20 18:11:50 +08:00

409 lines
12 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------
import BasicLayout from '@/components/main';
import setting from '@/setting'
let roterPre = setting.roterPre;
const pre = 'marketing_';
export default {
path: roterPre+'/marketing',
name: 'marketing',
header: 'marketing',
redirect: {
name: `${pre}storeCoupon`,
},
component: BasicLayout,
children: [
{
path: 'store_combination/index',
name: `${pre}combinalist`,
meta: {
auth: ['marketing-store_combination'],
title: '拼团商品',
keepAlive: true,
},
component: () => import('@/pages/marketing/storeCombination/index'),
},
{
path: 'store_combination/combina_list',
name: `${pre}combinaList`,
meta: {
auth: ['marketing-store_combination-combina_list'],
title: '拼团列表',
},
component: () => import('@/pages/marketing/storeCombination/combinaList'),
},
{
path: 'store_combination/create/:id?/:copy?',
name: `${pre}storeCombinationCreate`,
meta: {
auth: ['marketing-store_combination-create'],
title: '添加拼团',
},
component: () => import('@/pages/marketing/storeCombination/create'),
},
{
path: 'store_combination/statistics/:id?',
name: `${pre}storeCombinationStatistics`,
meta: {
title: '拼团统计',
},
component: () => import('@/pages/marketing/storeCombination/statistics'),
},
{
path: 'store_coupon/index',
name: `${pre}storeCoupon`,
meta: {
auth: ['marketing-store_coupon'],
title: '优惠券模板',
},
component: () => import('@/pages/marketing/storeCoupon/index'),
},
{
path: 'store_coupon_issue/index',
name: `${pre}storeCouponIssue`,
meta: {
auth: ['marketing-store_coupon_issue'],
title: '优惠券列表',
keepAlive: true,
},
component: () => import('@/pages/marketing/storeCouponIssue/index'),
},
{
path: 'store_coupon_issue/create/:id?',
name: `${pre}storeCouponCreate`,
meta: {
auth: ['marketing-store_coupon_issue-create'],
title: '添加优惠券',
},
component: () => import('@/pages/marketing/storeCouponIssue/create'),
},
{
path: 'store_coupon_user/index',
name: `${pre}storeCouponUser`,
meta: {
auth: ['marketing-store_coupon_user'],
title: '用户领取记录',
},
component: () => import('@/pages/marketing/storeCouponUser/index'),
},
{
path: 'coupon/system_config/:type?/:tab_id?',
name: `${pre}coupon`,
meta: {
auth: ['admin-order-storeOrder-index'],
title: '优惠券配置',
},
component: () => import('@/pages/setting/setSystem/index'),
},
{
path: 'store_bargain/index',
name: `${pre}storeBargain`,
meta: {
auth: ['marketing-store_bargain'],
title: '砍价商品',
keepAlive: true,
},
component: () => import('@/pages/marketing/storeBargain/index'),
},
{
path: 'store_bargain/bargain_list',
name: `${pre}bargainList`,
meta: {
auth: ['marketing-store_bargain-bargain_list'],
title: '砍价列表',
},
component: () => import('@/pages/marketing/storeBargain/bargainList'),
},
{
path: 'store_bargain/create/:id?/:copy?',
name: `${pre}bargainCreate`,
meta: {
auth: ['marketing-store_bargain-create'],
title: '添加砍价',
},
component: () => import('@/pages/marketing/storeBargain/create'),
},
{
path: 'store_bargain/statistics/:id?',
name: `${pre}storeBargainStatistics`,
meta: {
title: '砍价统计',
},
component: () => import('@/pages/marketing/storeBargain/statistics'),
},
{
path: 'store_seckill/index',
name: `${pre}storeSeckill`,
meta: {
auth: ['marketing-store_seckill'],
title: '秒杀商品',
keepAlive: true,
},
component: () => import('@/pages/marketing/storeSeckill/index'),
},
{
path: 'store_seckill_data/index/:id',
name: `${pre}storeSeckillData`,
meta: {
auth: ['marketing-store_seckill-data'],
title: '秒杀配置',
},
component: () => import('@/pages/system/group/list'),
},
{
path: 'store_seckill/create/:id?/:copy?',
name: `${pre}storeSeckillCreate`,
meta: {
auth: ['marketing-store_seckill-create'],
title: '添加秒杀',
},
component: () => import('@/pages/marketing/storeSeckill/create'),
},
{
path: 'store_seckill/statistics/:id?',
name: `${pre}storeSeckillStatistics`,
meta: {
title: '秒杀统计',
},
component: () => import('@/pages/marketing/storeSeckill/statistics'),
},
{
path: `integral/system_config/:type?/:tab_id?`,
name: `${pre}integral`,
meta: {
auth: ['marketing-integral-system_config'],
title: '积分配置',
},
component: () => import('@/pages/setting/setSystem/index'),
},
{
path: 'store_integral/index',
name: `${pre}storeIntegral`,
meta: {
auth: ['marketing-store_integral'],
title: '积分商品',
keepAlive: true,
},
component: () => import('@/pages/marketing/storeIntegral/index'),
},
{
path: 'store_integral/create/:id?/:copy?',
name: `${pre}storeIntegralCreate`,
meta: {
auth: ['marketing-store_integral-create'],
title: '添加积分商品',
},
component: () => import('@/pages/marketing/storeIntegral/create'),
},
{
path: 'store_integral/add_store_integral',
name: `${pre}addStoreIntegral`,
meta: {
auth: ['marketing-store_integral-create'],
title: '批量添加积分商品',
},
component: () => import('@/pages/marketing/storeIntegral/addStoreIntegral'),
},
{
path: 'store_integral/order_list',
name: `${pre}storeIntegralOrder`,
meta: {
auth: ['marketing-store_integral-order'],
title: '兑换订单',
},
component: () => import('@/pages/marketing/storeIntegralOrder/index'),
},
{
path: 'user_point/index',
name: `${pre}userPoint`,
meta: {
auth: ['marketing-user_point'],
title: '积分日志',
},
component: () => import('@/pages/marketing/userPoint/index'),
},
{
path: 'live/live_room',
name: `${pre}live_room`,
meta: {
auth: true,
title: '直播间管理',
},
component: () => import('@/pages/marketing/live/index'),
},
{
path: 'live/add_live_room',
name: `${pre}add_live_room`,
meta: {
auth: true,
title: '直播间管理',
},
component: () => import('@/pages/marketing/live/creat_live'),
},
{
path: 'live/live_goods',
name: `${pre}live_goods`,
meta: {
auth: true,
title: '直播间商品管理',
},
component: () => import('@/pages/marketing/live/live_goods'),
},
{
path: 'live/add_live_goods',
name: `${pre}add_live_goods`,
meta: {
auth: true,
title: '直播间商品管理',
},
component: () => import('@/pages/marketing/live/add_goods'),
},
{
path: 'live/anchor',
name: `${pre}anchor`,
meta: {
auth: true,
title: '主播管理',
},
component: () => import('@/pages/marketing/live/anchor'),
},
{
path: 'presell/index',
name: `${pre}storePresell`,
meta: {
auth: ['marketing-presell'],
title: '预售商品',
},
component: () => import('@/pages/marketing/storePresell/index'),
},
{
path: 'presell/presell_list',
name: `${pre}presellList`,
meta: {
auth: ['marketing-presell-presell_list'],
title: '预售列表',
},
component: () => import('@/pages/marketing/storePresell/presellList'),
},
{
path: 'presell/create/:id?/:copy?',
name: `${pre}storePresellCreate`,
meta: {
auth: ['marketing-presell-create'],
title: '添加预售',
},
component: () => import('@/pages/marketing/storePresell/create'),
},
{
path: 'lottery/index',
name: `${pre}lottery`,
meta: {
auth: true,
title: '抽奖列表',
},
component: () => import('@/pages/marketing/lottery/index'),
},
{
path: 'lottery/create',
name: `${pre}create`,
meta: {
auth: true,
title: '创建抽奖',
},
component: () => import('@/pages/marketing/lottery/create'),
},
{
path: 'lottery/recording_list',
name: `${pre}recording_list`,
meta: {
auth: true,
title: '抽奖记录',
},
component: () => import('@/pages/marketing/lottery/recordingList'),
},
{
path: 'channel_code/channelCodeIndex',
name: `${pre}channel_code`,
meta: {
auth: true,
title: '公众号渠道码',
keepAlive: true,
},
component: () => import('@/pages/marketing/channelCode/channelCodeIndex'),
},
{
path: 'channel_code/create',
name: `${pre}create_code`,
meta: {
auth: ['marketing-channel_code-create'],
title: '新建渠道码',
},
component: () => import('@/pages/marketing/channelCode/createCode'),
},
{
path: 'channel_code/code_statistic',
name: `${pre}code_statistic`,
meta: {
auth: ['marketing-channel_code-statistic'],
title: '二维码统计',
},
component: () => import('@/pages/marketing/channelCode/codeStatistic'),
},
{
path: 'point_record',
name: `${pre}point_record`,
meta: {
auth: ['marketing-point_record-index'],
title: '积分记录',
},
component: () => import('@/pages/marketing/point_record/index'),
},
{
path: 'point_statistic',
name: `${pre}point_statistic`,
meta: {
auth: ['marketing-point_statistic-index'],
title: '积分统计',
},
component: () => import('@/pages/marketing/point_statistic/index'),
},
{
path: 'recharge',
name: `${pre}recharge`,
meta: {
auth: ['marketing-recharge-index'],
title: '充值配置',
},
component: () => import('@/pages/marketing/recharge/index'),
},
{
path: 'sign',
name: `${pre}sign`,
meta: {
auth: ['marketing-sign-index'],
title: '签到配置',
},
component: () => import('@/pages/marketing/sign/index'),
},
{
path: `member/system_config/:type?/:tab_id?`,
name: `${pre}member`,
meta: {
auth: ['marketing-member-system_config'],
title: '会员配置',
},
component: () => import('@/pages/setting/setSystem/index'),
},
],
};