export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/kefu/kefu',
    'pages/user/user',
    'pages/ai/index',
    'pages/page/index'
  ],
  "subpackages": [
    {
      "root": "passport",
      "pages": [
        "login",
        "register",
        "forget",
        "setting",
        "agreement",
        "sms-login"
      ]
    },
    {
      "root": "user",
      "pages": [
        "company/company",
        "profile/profile",
        "setting/setting",
        "userVerify/index",
        "userVerify/admin"
      ]
    },
    {
      "root": "article",
      "pages": [
        "index",
        "detail"
      ]
    },
    {
      "root": "photo",
      "pages": [
        "index",
        "detail"
      ]
    },
    {
      "root": "honor",
      "pages": [
        "index",
        "detail",
        "list"
      ]
    },
    {
      "root": "expert",
      "pages": [
        "index",
        "detail"
      ]
    },
    {
      "root": "zzjy",
      "pages": [
        "index",
        "detail"
      ]
    },
  ],
  window: {
    backgroundTextStyle: 'dark',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: '红色文化宣传',
    navigationBarTextStyle: 'black'
  },
  tabBar: {
    custom: false, // H5模式下暂时禁用自定义TabBar
    color: "#8a8a8a",
    selectedColor: "#d81e06",
    backgroundColor: "#ffffff",
    list: [
      {
        pagePath: "pages/index/index",
        iconPath: "assets/tabbar/home.png",
        selectedIconPath: "assets/tabbar/home-active.png",
        text: "首页",
      },
      {
        pagePath: "pages/ai/index",
        iconPath: "assets/tabbar/order.png",
        selectedIconPath: "assets/tabbar/order-active.png",
        text: "AI问答",
      },
      {
        pagePath: "pages/user/user",
        iconPath: "assets/tabbar/user.png",
        selectedIconPath: "assets/tabbar/user-active.png",
        text: "我的",
      },
    ],
  },
  requiredPrivateInfos: [
  ],
  permission: {
    "scope.userLocation": {
      "desc": "你的位置信息将用于小程序位置接口的效果展示"
    }
  }
})
