| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- import { kIsIOS } from "./utils/tools";
- const appConfig = defineAppConfig({
- pages: [
- 'pages/clock/Clock',
- 'pages/common/H5',
- 'pages/account/Profile',
- 'pages/metric/Metric',
- 'pages/notification/setting',
- 'pages/store/product_list',
- 'pages/account/Journal',
- 'pages/account/JournalDetail',
- 'pages/discover/discover',
- 'pages/moment/moment'
- ],
- entryPagePath: 'pages/clock/Clock',
- // subPackages: [
- // {
- // root: 'moduleA',
- // pages: [
- // 'pages/third'
- // ]
- // }
- // ],
- subPackages: [
- {
- root: '_health',
- pages: [
- 'pages/schedules',
- 'pages/add_moment',
- 'pages/schedules_edit',
- 'pages/schedules_order',
- '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',
- 'pages/log_time',
- 'pages/fast_sleep',
- 'pages/long_fast',
- 'pages/long_fast_setting',
- 'pages/post_result',
- 'pages/streak_calendar',
- 'pages/streak_weekly',
- 'pages/guide_begin',
- 'pages/guide_fast',
- 'pages/guide_eat',
- 'pages/guide_sleep',
- 'pages/guide_active',
- 'pages/guide_full',
- ]
- },
- {
- root: '_account',
- pages: [
- 'pages/Login',
- 'pages/Auth',
- 'pages/ChooseAuth',
- 'pages/ProfileSetting',
- 'pages/Setting',
- 'pages/EditPage',
- 'pages/Member',
- 'pages/Album',
- 'pages/PhotoWall',
- ]
- },
- {
- root: '_moment',
- pages: [
- 'pages/home',
- 'pages/message',
- 'pages/relation',
- 'pages/long_full',
- 'pages/long_detail'
- ]
- },
- {
- root: '_common',
- pages: [
- 'pages/map'
- ]
- }
- ],
- usingComponents: {
- 'mysvg': './components/basic/svg',
- // 't-popup':'tdesgin-miniprogram/popup/popup'
- },
- "requiredPrivateInfos": [
- "chooseLocation",
- "getLocation",
- "choosePoi"
- ],
- // "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/discover/discover',
- text: '发现',
- },
- {
- pagePath: 'pages/moment/moment',
- 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;
|