| | |
| | | console.log('process.env.TARO_ENV', process.env.TARO_ENV); |
| | | |
| | | const tabberConifg = |
| | | process.env.TARO_ENV === 'h5' |
| | | ? ({} as any) |
| | | : { |
| | | tabBar: { |
| | | list: [ |
| | | { |
| | | pagePath: 'pages/home/index', |
| | | iconPath: 'assets/tabbar/icon-home.png', |
| | | selectedIconPath: 'assets/tabbar/icon-home-active.png', |
| | | text: '首页', |
| | | }, |
| | | { |
| | | pagePath: 'pages/mine/index', |
| | | iconPath: 'assets/tabbar/icon-mine.png', |
| | | selectedIconPath: 'assets/tabbar/icon-mine-active.png', |
| | | text: '我的', |
| | | }, |
| | | ], |
| | | color: '#333', |
| | | selectedColor: '#028CFF', |
| | | backgroundColor: '#fff', |
| | | borderStyle: 'black', |
| | | custom: true, |
| | | }, |
| | | }; |
| | | |
| | | export default defineAppConfig({ |
| | | entryPagePath: 'pages/home/index', |
| | | pages: ['pages/home/index', 'pages/mine/index'], |
| | |
| | | text: '我的', |
| | | }, |
| | | ], |
| | | color: '#333', |
| | | selectedColor: '#3a71ff', |
| | | color: '#2F303D', |
| | | selectedColor: '#028CFF', |
| | | backgroundColor: '#fff', |
| | | borderStyle: 'black', |
| | | custom: true, |
| | |
| | | pages: [ |
| | | 'phoneBillRecharge/phoneBillRecharge', |
| | | 'electricBillRecharge/electricBillRecharge', |
| | | 'gasBillRecharge/gasBillRecharge', |
| | | 'selectPayType/selectPayType', |
| | | 'rechargeResult/rechargeResult', |
| | | 'rechargeElectricResult/rechargeElectricResult', |
| | | 'rechargeGasResult/rechargeGasResult', |
| | | ], |
| | | }, |
| | | { |
| | | root: 'subpackages/order', |
| | | pages: ['order/order'], |
| | | pages: [ |
| | | 'order/order', |
| | | 'orderApplyRefund/orderApplyRefund', |
| | | 'orderRefundResult/orderRefundResult', |
| | | ], |
| | | }, |
| | | { |
| | | root: 'subpackages/userAccount', |
| | | pages: [ |
| | | 'userAccountList/userAccountList', |
| | | 'editGasUserAccount/editGasUserAccount', |
| | | 'editPhoneUserAccount/editPhoneUserAccount', |
| | | 'editElectricUserAccount/editElectricUserAccount', |
| | | ], |
| | | }, |
| | | { |
| | | root: 'subpackages/my', |
| | | pages: [ |
| | | 'shareQrcode/shareQrcode', |
| | | 'dashboard/dashboard', |
| | | 'applyAgent/applyAgent', |
| | | 'applyResult/applyResult', |
| | | 'promotionQrcode/promotionQrcode', |
| | | ], |
| | | }, |
| | | ], |
| | | // preloadRule: { |