export default defineAppConfig({
  pages: [
    'pages/plaza/index',
    'pages/nearby/index',
    'pages/publish/index',
    'pages/messages/index',
    'pages/profile/index',
    'pages/profile-edit/index',
    'pages/pet-edit/index',
    'pages/chat/index',
    'pages/contacts/index'
  ],
  window: {
    navigationStyle: 'custom',
    backgroundColor: '#14102b',
    backgroundTextStyle: 'dark'
  },
  tabBar: {
    custom: true,
    color: '#8a7aab',
    selectedColor: '#d8b4ff',
    backgroundColor: '#14102b',
    borderStyle: 'black',
    list: [
      { pagePath: 'pages/plaza/index', text: '广场' },
      { pagePath: 'pages/nearby/index', text: '附近' },
      { pagePath: 'pages/messages/index', text: '消息' },
      { pagePath: 'pages/profile/index', text: '我的' }
    ]
  },
  permission: {
    'scope.userLocation': {
      desc: '用于发现附近的毛孩子，以及在发布动态时标记位置'
    }
  },
  requiredPrivateInfos: ['chooseLocation', 'getLocation'],
  lazyCodeLoading: 'requiredComponents'
})
