export default defineAppConfig({
  pages: [
    "pages/Index/index",
    "pages/User/index",
    "pages/Authentication/index",
    "pages/Law/index",
    "pages/Success/index",
    "pages/Article/index",
    "pages/CommonProblem/index",
    "pages/userFingerpost/userFingerpost",
    "pages/rank/rank",
    "pages/rank/myGood/myGood",
  ],

  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black",
  },
  lazyCodeLoading: "requiredComponents",
  requiredPrivateInfos: ["getLocation"],
  permission: {
    "scope.userLocation": {
      desc: "您的位置信息将用于定位服务",
    },
  },
  plugins: {
    QCloudAIVoice: {
      version: "2.3.2", //请于文档顶部【版本更新能力】中获取最新版本号
      provider: "wx3e17776051baf153",
    },
  },

  subpackages: [
    {
      root: "pages/ServiceLocation",
      pages: ["Map/index", "TypeList/index"],
    },
    {
      root: "pages/Approve",
      pages: ["Apply/index", "ApplyDesc/index"],
    },

    {
      root: "pages/Feedback",
      pages: ["Record/index", "RecordDetail/index", "Report/index"],
    },
    {
      root: "pages/kitchenWaste",
      pages: [
        "index",
        "pages/record/index",
        "pages/addCollection/index",
        "pages/contracted/index",
        "pages/addMerchants/index",
      ],
    },
    {
      root: "pages/Event",
      pages: [
        "index",//事件列表
        "view/cameraComp/index",//拍照页
        "view/miniAiIdentify/index",//极简上报（AI识别）
        "view/confirmLocation/index",//确认位置
        "view/autoDispatch/index",//自动派遣
        "view/orderDirect/index",//单兵直达
        "view/detail/index",//事件详情
      ],
    },
  ],
});
