| | |
| | | export default defineAppConfig({ |
| | | entryPagePath: 'pages/home/index', |
| | | pages: ['pages/home/index', 'pages/mine/index'], |
| | | pages: ['pages/home/index', 'pages/task/task', 'pages/mine/index'], |
| | | requiredPrivateInfos: ['getLocation'], |
| | | permission: { |
| | | 'scope.userLocation': { |
| | |
| | | text: '首页', |
| | | }, |
| | | { |
| | | pagePath: 'pages/task/task', |
| | | iconPath: 'assets/tabbar/icon-task.png', |
| | | selectedIconPath: 'assets/tabbar/icon-task-active.png', |
| | | text: '任务', |
| | | }, |
| | | { |
| | | pagePath: 'pages/mine/index', |
| | | iconPath: 'assets/tabbar/icon-mine.png', |
| | | selectedIconPath: 'assets/tabbar/icon-mine-active.png', |
| | |
| | | pages: [ |
| | | 'authorization/authorization', |
| | | 'userPolicy/userPolicy', |
| | | 'mineUserPolicy/mineUserPolicy', |
| | | 'privacyPolicy/privacyPolicy', |
| | | 'loginByForm/loginByForm', |
| | | 'registerForm/registerForm', |
| | | ], |
| | | }, |
| | | { |
| | | root: 'subpackages/setting', |
| | | pages: [ |
| | | 'userInfo/userInfo', |
| | | 'setting/setting', |
| | | 'privacyAgreement/privacyAgreement', |
| | | 'cooperation/cooperation', |
| | | 'faq/faq', |
| | | 'toggleMatchMakingIdentity/toggleMatchMakingIdentity', |
| | | 'orderManage/orderManage', |
| | | 'resourceManage/resourceManage', |
| | | 'tradeChatRecord/tradeChatRecord', |
| | | ], |
| | | }, |
| | | { |
| | | root: 'subpackages/user', |
| | | pages: ['userHomePage/userHomePage', 'complaint/complaint'], |
| | | }, |
| | | { |
| | | root: 'subpackages/message', |
| | | pages: [ |
| | | 'systemMessage/systemMessage', |
| | | 'chatRoom/chatRoom', |
| | | 'unfamiliarUserList/unfamiliarUserList', |
| | | 'messageList/messageList', |
| | | ], |
| | | }, |
| | | { |
| | | root: 'subpackages/order', |
| | | pages: ['orderDetail/orderDetail', 'publishOrder/publishOrder'], |
| | | }, |
| | | { |
| | | root: 'subpackages/resource', |
| | | pages: ['resourceDetail/resourceDetail', 'publishResource/publishResource'], |
| | | }, |
| | | { |
| | | root: 'subpackages/authentication', |
| | |
| | | root: 'subpackages/city', |
| | | pages: ['citySelect/citySelect'], |
| | | }, |
| | | ], |
| | | preloadRule: { |
| | | 'pages/mine/index': { |
| | | network: 'all', |
| | | packages: ['subpackages/setting', 'subpackages/message'], |
| | | { |
| | | root: 'subpackages/mine', |
| | | pages: [ |
| | | 'mineSign/mineSign', |
| | | 'mineHire/mineHire', |
| | | 'mineCancel/mineCancel', |
| | | 'mineCollectTask/mineCollectTask', |
| | | 'mineAgreementSign/mineAgreementSign', |
| | | 'mineAgreementSignDetail/mineAgreementSignDetail', |
| | | 'mineCurriculumVitae/mineCurriculumVitae', |
| | | 'editMineInfo/editMineInfo', |
| | | 'setting/setting', |
| | | ], |
| | | }, |
| | | }, |
| | | { |
| | | root: 'subpackages/task', |
| | | pages: [ |
| | | 'taskDetail/taskDetail', |
| | | 'companyDetail/companyDetail', |
| | | 'taskSubmitCheck/taskSubmitCheck', |
| | | 'taskCheckDetail/taskCheckDetail', |
| | | ], |
| | | }, |
| | | { |
| | | root: 'subpackages/user', |
| | | pages: ['complaint/complaint'], |
| | | }, |
| | | ], |
| | | // preloadRule: { |
| | | // 'pages/mine/index': { |
| | | // network: 'all', |
| | | // packages: ['subpackages/setting', 'subpackages/message'], |
| | | // }, |
| | | // }, |
| | | }); |