import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';

const JDAccount: AppRouteRecordRaw = {
  path: '/Jd',
  name: 'jdMgt',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '京东管理',
    requiresAuth: true,
    icon: 'icon-safe',
    order: 1
  },
  children: [
    {
      path: 'account',
      name: 'jdAccount',
      component: () => import('@/views/card-jd-info/account/index.vue'),
      meta: {
        locale: '京东账户',
        requiresAuth: true,
        roles: ['*']
      }
    },
    {
      path: 'order',
      name: 'jdOrder',
      component: () => import('@/views/card-jd-info/order/index.vue'),
      meta: {
        locale: '京东订单',
        requiresAuth: true,
        roles: ['*']
      }
    }
    // {
    //   path: 'orderSummary',
    //   name: 'jdOrderSummary',
    //   component: () => import('@/views/card-jd-info/order-summary/index.vue'),
    //   meta: {
    //     locale: '订单记录',
    //     requiresAuth: true,
    //     roles: ['*']
    //   }
    // }
  ]
};

export default JDAccount;
