| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- const appConfig = defineAppConfig({
- pages: [
-
- 'pages/clock/Clock',
-
- 'pages/demo',
-
-
- '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',
- ],
- 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,
- list: [
- {
- pagePath: 'pages/clock/Clock',
- text: '首页',
- },
- {
- pagePath: 'pages/metric/Metric',
- text: '第二页',
- },
- {
- pagePath: 'pages/activity/Activity',
- text: '第三页',
- },
- {
- pagePath: 'pages/account/Profile',
- text: '第四页',
- }
- ]
- })
- //src/pages/rn/RNMain.tsx
- process.env.TARO_ENV === 'rn' && (appConfig.pages = [
- 'pages/rn/RNMain'
- ])
- export default appConfig;
|