import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  pages: [
    { path: 'pages/index', type: 'home' },
    { path: 'pages/promote/index' },
    { path: 'pages/agent/index' },
    { path: 'pages/me/index' },
    { path: 'pages/help/index' },
    { path: 'pages/help/detail' },
    { path: 'pages/help/guide' },
    { path: 'pages/register/index' },
    { path: 'pages/historyQuery/index' },
    { path: 'pages/report/index' },
    { path: 'pages/service/index' },
    { path: 'pages/agentSystemGuide/index' },
    { path: 'pages/userAgreement/index' },
    { path: 'pages/privacyPolicy/index' },
    { path: 'pages/agentManageAgreement/index' },
    { path: 'pages/teamList/index' },
    { path: 'pages/agentUpgrade/index' },
    { path: 'pages/promoteDetails/index' },
    { path: 'pages/rewardsDetails/index' },
  ],
  globalStyle: {
    backgroundColor: '@bgColor',
    backgroundColorBottom: '@bgColorBottom',
    backgroundColorTop: '@bgColorTop',
    backgroundTextStyle: '@bgTxtStyle',
    navigationBarBackgroundColor: '#000000',
    navigationBarTextStyle: '@navTxtStyle',
    navigationBarTitleText: '全能查',
    navigationStyle: 'custom',
  },
  tabBar: {
    color: '#999',
    selectedColor: '#1989fa',
    backgroundColor: '#fff',
    borderStyle: 'black',
    list: [
      {
        pagePath: 'pages/index',
        text: '首页',
        iconPath: 'static/homelayout/index.png',
        selectedIconPath: 'static/homelayout/index_active.png',
      },
      {
        pagePath: 'pages/promote/index',
        text: '推广',
        iconPath: 'static/homelayout/promote.png',
        selectedIconPath: 'static/homelayout/promote_active.png',
      },
      {
        pagePath: 'pages/agent/index',
        text: '数据',
        iconPath: 'static/homelayout/promote.png',
        selectedIconPath: 'static/homelayout/promote_active.png',
      },
      {
        pagePath: 'pages/me/index',
        text: '我的',
        iconPath: 'static/homelayout/me.png',
        selectedIconPath: 'static/homelayout/me_active.png',
      },
    ],
  },
  subPackages: [],
})
