import { AppConfig } from "@tarojs/taro"; let config: AppConfig = {}; config = { pages: [ "pages/main/index/index", "pages/main/menu/index", "pages/main/message/index", "pages/main/center/index", ], subPackages: [ { root: "pages/public", pages: ["login/index", "camera/index", "camera/ocr", "agreement/index"], }, { root: "pages/purchase", pages: ["order/create", "order/list", "order/audit", "order/preview", "order/approved"], }, { root: "pages/ship", pages: ["order/list", "document/detail", "document/create"], }, ], permission: { "scope.userLocation": { desc: "获取您的地理位置信息,用于提供附近服务推荐等个性化服务。", }, }, tabBar: { custom: true, color: "#000000", selectedColor: "#DC143C", backgroundColor: "#ffffff", list: [ { pagePath: "pages/main/index/index", text: "工作台", }, { pagePath: "pages/main/menu/index", text: "菜单", }, { pagePath: "pages/main/message/index", text: "消息", }, { pagePath: "pages/main/center/index", text: "我的", }, ], }, }; export default defineAppConfig({ ...config, window: { backgroundTextStyle: "light", navigationBarBackgroundColor: "#fff", navigationBarTitleText: "WeChat", navigationBarTextStyle: "black", }, requiredPrivateInfos: ["getLocation", "chooseLocation"], });