import { kIsIOS } from "./utils/tools"; const appConfig = defineAppConfig({ pages: [ // 'pages/clock/Index', 'pages/clock/Clock', // 'pages/clock/Suggest', // 'pages/clock/SetGoal', // 'pages/demo', // 'pages/food/Food', 'pages/account/Login', 'pages/account/Auth', 'pages/account/ChooseAuth', // 'pages/clock/ChooseScenario', // 'pages/clock/SetSchedule', 'pages/common/H5', 'pages/account/Profile', 'pages/metric/Metric', 'pages/activity/Activity', 'pages/common/RecordsHistory', 'pages/account/ProfileSetting', 'pages/account/Setting', 'pages/account/EditPage', 'pages/workout/Workout', 'pages/workout/WorkoutDetail', 'pages/workout/Working', 'pages/workout/History', 'pages/account/Member', 'pages/explore/Index', 'pages/clock/StreakDetail', 'pages/notification/setting', 'pages/store/product_list', 'pages/account/Album', 'pages/account/Journal', 'pages/account/JournalDetail', 'pages/account/PhotoWall' ], entryPagePath: 'pages/clock/Clock', // subPackages: [ // { // root: 'moduleA', // pages: [ // 'pages/third' // ] // } // ], subPackages: [ { root: '_health', pages: [ 'pages/schedules', 'pages/add_moment', 'pages/schedules_list', 'pages/schedules_del', 'pages/schedules_order', 'pages/schedules_reminder', 'pages/schedules_conflict', 'pages/schedules_time', 'pages/schedules_edit', 'pages/setting_reminder', 'pages/moment_detail', 'pages/timeline_detail', 'pages/archive', 'pages/move', 'pages/move_detail', 'pages/move_schedule', 'pages/move_setting', 'pages/move_setting_reminder', 'pages/move_setting_time', 'pages/active_plan' ] } ], usingComponents: { 'mysvg': './components/basic/svg', // 't-popup':'tdesgin-miniprogram/popup/popup' }, "requiredPrivateInfos": [ "chooseLocation" ], // "componentFramework": "glass-easel", // "lazyCodeLoading": "requiredComponents", // "renderer": "skyline", // "rendererOptions": { // "skyline": { // "disableABTest": true, // "defaultDisplayBlock": true // } // }, "permission": { "scope.userLocation": { "desc": "获取您选择的位置...." }, // "scope.addPhoneCalendar":{ // "desc":"需要添加日历..." // } }, // tabBar: { // custom: true, // list:[ // { // pagePath: 'pages/Clock', // text: '首页', // }, // { // pagePath: 'pages/Metric', // text: '第二页', // }, // { // pagePath: 'pages/Activity', // text: '第三页', // }, // { // pagePath: 'pages/Profile', // text: '第二页', // } // ] // }, window: { "backgroundTextStyle": "dark", "navigationBarBackgroundColor": "#ffffff", "navigationBarTitleText": "Weixin", "navigationBarTextStyle": "black", "backgroundColor": "#f5f5f5" }, // darkmode: true }) process.env.TARO_ENV === 'weapp' && (appConfig.tabBar = { custom: true, backgroundColor: '#fff', color: '#ffffff66', selectedColor: '#ffffff', borderStyle: 'black', list: [ { pagePath: 'pages/clock/Clock', text: '生物钟', }, { pagePath: 'pages/explore/Index', text: '发现', }, { pagePath: 'pages/notification/setting', text: '提醒', }, { pagePath: 'pages/metric/Metric', text: '指标', }, { pagePath: 'pages/account/Profile', text: '更多', } ] }) //src/pages/rn/RNMain.tsx process.env.TARO_ENV === 'rn' && (appConfig.pages = [ 'pages/rn/RNMain' ]) export default appConfig;