| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- const appConfig = defineAppConfig({
- pages: [
- 'pages/clock/Clock',
- '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'
- ],
- subPackages: [
- {
- root: 'moduleA',
- pages: [
- 'pages/third'
- ]
- }
- ],
- usingComponents: {
- 'mysvg': './components/basic/svg'
- },
- // 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',
- 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;
|