export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/index/login', // 登录页

    /**
     * 用户侧
     */
    'pages/residents/code', // 进出码
    'pages/residents/report', // 体温上报
    'pages/residents/reportHistory', // 体温上报-历史上报

    /**
     * 扫码跳转
     */
    'pages/scan/entrance', // 门禁码扫码跳转页
  ],
  window: {
    backgroundTextStyle: 'dark',
    navigationBarBackgroundColor: '#000',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'white'
  },
  "tabBar": {
    "selectedColor": "#FF8966",
    "list": [
      {
        "pagePath": "pages/index/index",
        "text": "首页",
        "iconPath": "image/icon/_home.png",
        "selectedIconPath": "image/icon/home.png"
      },
      {
        "pagePath": "pages/residents/code",
        "text": "进出码",
        "iconPath": "image/icon/_code.png",
        "selectedIconPath": "image/icon/code.png"
      },
      {
        "pagePath": "pages/residents/report",
        "text": "体温上报",
        "iconPath": "image/icon/_report.png",
        "selectedIconPath": "image/icon/report.png"
      },
      // {
      //   "pagePath": "pages/apply/apply",
      //   "text": "申请",
      //   "iconPath": "image/icon/_apply.png",
      //   "selectedIconPath": "image/icon/apply.png"
      // },
      // {
      //   "pagePath": "pages/person/person",
      //   "text": "我的",
      //   "selectedColor": "#FF8966",
      //   "iconPath": "image/icon/_person.png",
      //   "selectedIconPath": "image/icon/person.png"
      // }
    ]
  },
  "lazyCodeLoading": "requiredComponents",
  "permission": {
    "scope.userLocation": {
      "desc": "你的位置信息将用于体温上报"
    }
  },
  "requiredPrivateInfos": [
    "chooseLocation"
  ]
})
