const appConfig = defineAppConfig({ pages: [ // 'pages/clock/Index', 'pages/clock/Clock', 'pages/clock/Suggest', 'pages/clock/SetGoal', 'pages/demo', 'pages/food/Food', 'pages/index/index', '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' ], entryPagePath: 'pages/clock/Clock', subPackages: [ { root: 'moduleA', pages: [ 'pages/third' ] } ], usingComponents: { 'mysvg': './components/basic/svg', // 't-popup':'tdesgin-miniprogram/popup/popup' }, "requiredPrivateInfos": [ "chooseLocation" ], "permission": { "scope.userLocation": { "desc": "获取您选择的位置...." } }, // tabBar: { // custom: true, // list:[ // { // pagePath: 'pages/Clock', // text: '首页', // }, // { // pagePath: 'pages/Metric', // text: '第二页', // }, // { // pagePath: 'pages/Activity', // text: '第三页', // }, // { // pagePath: 'pages/Profile', // text: '第二页', // } // ] // }, window: { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#000000", "navigationBarTitleText": "Weixin", "navigationBarTextStyle": "white", "backgroundColor": "#000000" }, // darkmode: true }) process.env.TARO_ENV === 'weapp' && (appConfig.tabBar = { custom: true, backgroundColor: '#000', color: '#ffffff66', selectedColor: '#ffffff', borderStyle: 'black', list: [ { // pagePath: 'pages/clock/Clock', pagePath: 'pages/clock/Clock', text: '生物钟', }, { pagePath: 'pages/explore/Index', text: '发现', }, { pagePath: 'pages/metric/Metric', text: '指标', }, // { // pagePath: 'pages/food/Food', // text: '饮食', // }, // { // // pagePath: 'pages/activity/Activity', // pagePath: 'pages/workout/Workout', // text: '运动', // }, { pagePath: 'pages/account/Profile', text: '更多', } ] }) //src/pages/rn/RNMain.tsx process.env.TARO_ENV === 'rn' && (appConfig.pages = [ 'pages/rn/RNMain' ]) export default appConfig;