export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/personal/index',
    'pages/profile/index',
    'pages/dashboard/index',
    'pages/visiteor-detail/index',
    'pages/dislike-messages/index',
    'pages/message-editor/index',
    'pages/chat-messages/index',
    'pages/chat-session-messages/index',
    'pages/contact/index',
    'pages/knowledge/index',
    'pages/knowledge-item/index',
    'pages/editor-knowledge-item/index',
    'pages/editor-correction-item/index',
    'pages/agent/index',
    'pages/agent-avatars/index',
    'pages/agent-avatar-confirm/index',
    'pages/editor-pages/editor-greeting-questions/index',
    'pages/voice/index',
    'pages/chat/index',
    'pages/agent-gen/index',
    'pages/editor-contact/index',
    'pages/contact-us/index',
    'pages/privacy/index',
    'pages/account/index',
    'pages/agreement/index',

    'pages/test/index',
    'pages/component-library/index',
    'pages/editor-pages/editor-name/index',

    'pages/editor-pages/editor-phone/index',
    'pages/editor-pages/editor-tel/index',
    'pages/editor-pages/editor-email/index',
    'pages/editor-pages/editor-address/index',
    'pages/editor-pages/editor-qrcode/index',
    'pages/editor-pages/editor-ent-name/index',
    'pages/editor-pages/editor-position/index',



    'pages/editor-pages/editor-channels/index',


    'pages/editor-pages/editor-media/index',


    'pages/editor-pages/editor-link/index',
    'pages/editor-pages/editor-mini-program/index',
    'pages/editor-pages/editor-link-social/index',
    'pages/editor-pages/editor-link-contact/index',
    'pages/editor-pages/editor-textarea/index',
    'pages/editor-pages/editor-title/index',

    'pages/webview/index',

  ],
  tabBar: {
    color: '#828282',
    selectedColor: '#000000',
    backgroundColor: '#FFFFFF',
    list: [

      {
        pagePath: 'pages/index/index',
        selectedIconPath: 'images/tabbar/agent-actived.png',
        iconPath: 'images/tabbar/agent.png',
        text: '智能体'
      },
      {
        pagePath: 'pages/contact/index',
        selectedIconPath: 'images/tabbar/contacts-actived.png',
        iconPath: 'images/tabbar/contacts.png',
        text: '联系人'
      },
      {
        pagePath: 'pages/dashboard/index',
        selectedIconPath: 'images/tabbar/data-actived.png',
        iconPath: 'images/tabbar/data.png',
        text: '数据'
      },
      {
        pagePath: 'pages/knowledge/index',
        selectedIconPath: 'images/tabbar/knowledge-actived.png',
        iconPath: 'images/tabbar/knowledge.png',
        text: '知识库'
      },
      {
        pagePath: 'pages/personal/index',
        selectedIconPath: 'images/tabbar/personal-actived.png',
        iconPath: 'images/tabbar/personal.png',
        text: '我的'
      }
    ]
  },
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#f5f5f2',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black',
    backgroundColor: '#f5f5f2',
    disableShareAppMessage: true,
    disableShareTimeline: true
  },
  permission: {
    'scope.userLocation': {
      desc: '你的位置信息将用于小程序使用'
    }
  },
  requiredPrivateInfos: [
    'getLocation',
    'chooseAddress',
    'chooseLocation'
  ]
})
