const LAYOUT = () => import("@/layout/app/index.vue");

export const systemRoutes = [
  {
    path: "/",
    name: "main",
    redirect: "wallet",
    component: LAYOUT,
    children: [
      {
        path: "/im",
        name: "im",
        meta: {
          title: "router.Social",
          keepAlive: false,
          navbar: false,
          tabbar: true,
        }, // 社交
        component: () => import("@/views/im/index.vue"),
      },
      {
        path: "/transaction",
        name: "transaction",
        meta: {
          title: "router.Transaction",
          keepAlive: false,
          navbar: true,
          tabbar: true,
        }, // 交易
        component: () => import("@/views/transaction/index.vue"),
      },
      {
        path: "/wallet",
        name: "wallet",
        meta: {
          title: "router.Wallet",
          keepAlive: true,
          navbar: false,
          tabbar: true,
        }, // 钱包
        component: () => import("@/views/wallet/index.vue"), 
      },
      {
        path: "/dapp",
        name: "dapp",
        meta: {
          title: "router.Dapp",
          keepAlive: true,
          navbar: false,
          tabbar: true,
        }, // DAPP
        component: () => import("@/views/dapp/index.vue"),
      },
      {
        path: "/me",
        name: "me",
        meta: {
          title: "router.Me",
          keepAlive: true,
          navbar: false,
          tabbar: true,
        }, // 我的
        component: () => import("@/views/me/index.vue"),
      },
      {
        path: "personalInformation",
        name: "personalInformation",
        meta: {
          title: "router.PersonalInformation",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, // 个人资料
        component: () => import("@/views/me/personalInformation/index.vue"),
      },
      {
        path: "walletManagement",
        name: "walletManagement",
        meta: {
          title: "router.WalletManagement",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, // 钱包管理
        component: () => import("@/views/me/walletManagement/index.vue"),
      },
      {
        path: "nodeDividend",
        name: "nodeDividend",
        meta: {
          title: "router.receiptOfRecord",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, // 节点分红
        component: () => import("@/views/me/nodeDividend/index.vue"),
      },
      {
        path: "walletDetail",
        name: "walletDetail",
        meta: {
          title: "router.walletDetail",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, // 钱包详情
        component: () => import("@/views/wallet/walletDetail/index.vue"),
      },
      {
        path: "transferDetail",
        name: "transferDetail",
        meta: {
          title: "router.transfer",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
          to: "wallet",
        }, // 转账详情
        component: () => import("@/views/wallet/transferDetail/index.vue"),
      },
      {
        path: "transferAddressManagement",
        name: "transferAddressManagement",
        meta: {
          title: "router.addressBook",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
          to: "transferDetail",
        }, // 地址管理
        component: () => import("@/views/me/addressManagement/index.vue"),
      },
      {
        path: "meAddressManagement",
        name: "meAddressManagement",
        meta: {
          title: "router.addressBook",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
          to: "me",
        }, // 地址管理
        component: () => import("@/views/me/addressManagement/index.vue"),
      },
      {
        path: "addAddress",
        name: "addAddress",
        meta: {
          title: "router.addAddress",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, // 添加地址
        component: () => import("@/views/me/addAddress/index.vue"),
      },
      {
        path: "proceeds",
        name: "proceeds",
        meta: {
          title: "router.collectionPayment",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, // 收款
        component: () => import("@/views/wallet/proceeds/index.vue"),
      },
      {
        path: "exchange",
        name: "exchange",
        meta: {
          title: "router.exchange",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, // 元宝兑换
        component: () => import("@/views/wallet/ybExchange/index.vue"),
      },
      {
        path: "jysExchange",
        name: "jysExchange",
        meta: {
          title: "router.Transaction",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, // 交易所
        component: () => import("@/views/transaction/jys/index.vue"),
      },
      {
        path: "aboutUs",
        name: "aboutUs",
        meta: {
          title: "router.AboutUs",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, // 關於我們
        component: () => import("@/views/settings/aboutUs/index.vue"),
      },

      {
        path: "systemSettings",
        name: "systemSettings",
        meta: {
          title: "router.SystemSettings",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  系統設置
        component: () => import("@/views/settings/systemSettings/index.vue"),
      },
      {
        path: "languageSettings",
        name: "languageSettings",
        meta: {
          title: "router.LanguageSettings",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  系統設置
        component: () => import("@/views/settings/languageSettings/index.vue"),
      },
      {
        path: "administratorSettings",
        name: "administratorSettings",
        meta: {
          title: "router.AdministratorSettings",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  管理员设置
        component: () => import("@/views/me/administratorSettings/index.vue"),
      },
      {
        path: "download",
        name: "download",
        meta: {
          title: "router.Download",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  下载链接
        component: () => import("@/views/me/download/index.vue"),
      },
      {
        path: "chat",
        name: "chat",
        meta: {
          title: "router.Social",
          keepAlive: false,
          navbar: false,
          leftArrow: true,
        }, //  chat界面
        component: () => import("@/views/im/chat/index.vue"),
      },
      {
        path: "detail",
        name: "detail",
        meta: {
          title: "router.ChatMessage",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  chat详情
        component: () => import("@/views/im/detail/index.vue"),
      },
      {
        path: "qrcode",
        name: "qrcode",
        meta: {
          title: "router.GroupQRCode",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  二维码详情
        component: () => import("@/views/im/detail/qrcode/index.vue"),
      },
      {
        path: "chatLog",
        name: "chatLog",
        meta: {
          title: "router.ChatMessage",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  聊天记录
        component: () => import("@/views/im/detail/chatLog/index.vue"),
      },
      {
        path: "addMember",
        name: "addMember",
        meta: {
          title: "router.AddMember",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  添加成员
        component: () => import("@/views/im/detail/addMember/index.vue"),
      },
      {
        path: "createGroupChat",
        name: "createGroupChat",
        meta: {
          title: "router.CreateGroupChat",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  创建群聊
        component: () => import("@/views/im/detail/addMember/index.vue"),
      },
      {
        path: "deleteMember",
        name: "deleteMember",
        meta: {
          title: "router.SelectMembers",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  移出成员
        component: () => import("@/views/im/detail/deleteMember/index.vue"),
      },
      {
        path: "checkMember",
        name: "checkMember",
        meta: {
          title: "router.GroupMembers",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  查看成员
        component: () => import("@/views/im/detail/checkMember/index.vue"),
      },
      {
        path: "contact",
        name: "contact",
        meta: {
          title: "router.ContactList",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  通讯录
        component: () => import("@/views/im/contactList/index.vue"),
      },
      {
        path: "invitation",
        name: "invitation",
        meta: {
          title: "router.NewInvitation",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  新邀请
        component: () => import("@/views/im/contactList/invitation/index.vue"),
      },
      {
        path: "group",
        name: "group",
        meta: {
          title: "router.GroupChatList",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  群聊列表
        component: () => import("@/views/im/contactList/groupList/index.vue"),
      },
      {
        path: "record",
        name: "record",
        meta: {
          title: "router.ReleaseRecord",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  发布记录
        component: () => import("@/views/im/releaseRecord/index.vue"),
      },
      {
        path: "personal",
        name: "personal",
        meta: {
          title: "router.PersonalInformation",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  个人信息
        component: () => import("@/views/im/personal/index.vue"),
      },
      {
        path: "search",
        name: "search",
        meta: {
          title: "router.Search",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  搜索页面
        component: () => import("@/views/im/search/index.vue"),
      },
      {
        path: "whitelist",
        name: "whitelist",
        meta: {
          title: "router.WhiteSettings",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  白名单设置页面
        component: () => import("@/views/me/whitelist/index.vue"),
      },
      {
        path: "publish",
        name: "publish",
        meta: {
          title: "router.Publish",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  朋友圈发布页面
        component: () => import("@/views/im/publish/index.vue"),
      },
      {
        path: "chatSearch",
        name: "chatSearch",
        meta: {
          title: "router.Search",
          keepAlive: false,
          navbar: true,
          leftArrow: true,
        }, //  聊天搜索或者朋友圈搜索页面
        component: () => import("@/views/im/chatSearch/index.vue"),
      },
      {
        path: "/videoPlayer",
        name: "videoPlayer",
        meta: {
          title: "",
          keepAlive: false,
          navbar: false,
          leftArrow: true,
        }, //  聊天搜索或者朋友圈搜索页面
        component: () => import("@/views/im/videoPlayer/index.vue"),
      },
    ],
  },
];
