// mall 积分商城
import mall from '../../views/mall/index';

import couponList from '../../views/mall/coupon/list';
import couponExchange from '../../views/mall/coupon/exchange';
import couponInfo from '../../views/mall/coupon/info.vue';

import giftList from '../../views/mall/gift/list';
import giftExchange from '../../views/mall/gift/exchange';
import giftInfo from '../../views/mall/gift/info.vue';

import goodsList from '../../views/mall/goods/list';


export default {
    path: 'mall',
    name: '积分商城',
    component: mall,
    redirect: 'mall/coupon',
    meta: {},
    children: [
        {
          path: 'coupon',
          name: '优惠券',
          component: couponList,
          meta: {
            menu:'coupon'
          }
        },
        {
          path: 'coupon/exchange/:id',
          name: '优惠券兑换记录',
          component: couponExchange,
          meta: {
            menu:'coupon'
          }
        },
        {
          path: 'coupon/info',
          name: '新增优惠券',
          component: couponInfo,
          meta: {
            type:'add',
            menu:'coupon'
          }
        },
        {
          path: 'coupon/info/:id',
          name: '编辑优惠券',
          component: couponInfo,
          meta: {
            type:'edit',
            menu:'coupon'
          }
        },
        {
          path: 'coupon/queryinfo/:id',
          name: '优惠券详情',
          component: couponInfo,
          meta: {
            type:'info',
            menu:'coupon'
          }
        },
        {
          path: 'gift',
          name: '礼品',
          component: giftList,
          meta: {
            menu:'gift'
          }
        },
        {
          path: 'gift/exchange/:id',
          name: '礼品兑换记录',
          component: giftExchange,
          meta: {
            menu:'gift'
          }
        },
        {
          path: 'gift/wxexchange/:id',
          name: '微信兑换券兑换记录',
          component: giftExchange,
          meta: {
            menu:'gift',
            type:'wx'
          }
        },
        {
          path: 'gift/info',
          name: '新增礼品',
          component: giftInfo,
          meta: {
            type:'add',
            menu:'gift'
          }
        },
        {
          path: 'gift/info/:id',
          name: '编辑礼品',
          component: giftInfo,
          meta: {
            type:'edit',
            menu:'gift'
          }
        },
        {
          path: 'gift/queryinfo/:id',
          name: '礼品详情',
          component: giftInfo,
          meta: {
            type:'info',
            menu:'gift'
          }
        },


        {
          path: 'goods',
          name: '待发货',
          component: goodsList,
          meta: {
            menu:'goods'
          }
        },
    ]
};
