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

const AppleAccount: AppRouteRecordRaw = {
  path: '/appleAccountInfo',
  name: 'appleAccountInfo',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '苹果账户',
    requiresAuth: true,
    icon: 'icon-safe',
    order: 1
  },
  children: [
    {
      path: 'appleAccount',
      name: 'appleAccount',
      component: () => import('@/views/apple-card-info/card-info/index.vue'),
      meta: {
        locale: '苹果账户',
        requiresAuth: true,
        roles: ['*']
      }
    },
    {
      path: 'appleAccountWalletHistory',
      name: 'appleAccountWalletHistory',
      component: () =>
        import('@/views/apple-card-info/apple-card-info-history/index.vue'),
      meta: {
        locale: '订单记录',
        requiresAuth: true,
        roles: ['*']
      }
    },
    {
      path: 'selfRechargeOrder',
      name: 'appleselfRechargeOrder',
      component: () =>
        import('@/views/apple-card-info/recharge-history/index.vue'),
      meta: {
        locale: '充值记录',
        requiresAuth: true
      }
    }
    // {
    //   path: 'orderSummary',
    //   name: 'appleOrderSummary',
    //   component: () =>
    //     import('@/views/apple-card-info/order-summary/index.vue'),
    //   meta: {
    //     locale: '每日汇总',
    //     requiresAuth: true
    //   }
    // }
  ]
};

export default AppleAccount;
