export default defineAppConfig({
|
entryPagePath: 'pages/home/index',
|
pages: ['pages/home/index', 'pages/task/task', 'pages/mine/index'],
|
requiredPrivateInfos: ['getLocation', 'chooseLocation'],
|
permission: {
|
'scope.userLocation': {
|
desc: '你的位置信息将用于小程序数据的效果展示',
|
},
|
},
|
window: {
|
backgroundTextStyle: 'light',
|
navigationBarBackgroundColor: '#ff6d33',
|
navigationBarTitleText: 'WeChat',
|
navigationBarTextStyle: 'black',
|
backgroundColorTop: '#ff6d33',
|
backgroundColor: '#f7f7f7',
|
backgroundColorBottom: '#f7f7f7',
|
navigationStyle: 'custom',
|
},
|
tabBar: {
|
list: [
|
{
|
pagePath: 'pages/home/index',
|
iconPath: 'assets/tabbar/icon-home.png',
|
selectedIconPath: 'assets/tabbar/icon-home-active.png',
|
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',
|
text: '我的',
|
},
|
],
|
color: '#000',
|
selectedColor: '#ff6d33',
|
backgroundColor: '#fff',
|
borderStyle: 'black',
|
custom: true,
|
},
|
lazyCodeLoading: 'requiredComponents', // 按需注入和用时注入(按需注入+占位组件)
|
subpackages: [
|
{
|
root: 'subpackages/login',
|
pages: [
|
'authorization/authorization',
|
'userPolicy/userPolicy',
|
'mineUserPolicy/mineUserPolicy',
|
'privacyPolicy/privacyPolicy',
|
'loginByForm/loginByForm',
|
'registerForm/registerForm',
|
],
|
},
|
{
|
root: 'subpackages/authentication',
|
pages: [
|
'authenticationHome/authenticationHome',
|
'authenticationFaRen/authenticationFaRen',
|
'authenticationJBR/authenticationJBR',
|
'authenticationResult/authenticationResult',
|
'authenticationRealName/authenticationRealName',
|
'authenticationFace/authenticationFace',
|
],
|
},
|
{
|
root: 'subpackages/city',
|
pages: ['citySelect/citySelect'],
|
},
|
{
|
root: 'subpackages/mine',
|
pages: [
|
'mineSign/mineSign',
|
'mineHire/mineHire',
|
'mineCancel/mineCancel',
|
'mineCollectTask/mineCollectTask',
|
'mineAgreementSign/mineAgreementSign',
|
'mineAgreementSignDetail/mineAgreementSignDetail',
|
'setting/setting',
|
],
|
},
|
{
|
root: 'subpackages/wallet',
|
pages: [
|
'mineWallet/mineWallet',
|
'bindBankCard/bindBankCard',
|
'unboundBankCard/unboundBankCard',
|
'incomeDetail/incomeDetail',
|
'incomeDetailInfo/incomeDetailInfo',
|
'withdraw/withdraw',
|
'withdrawResult/withdrawResult',
|
'withdrawDetailInfo/withdrawDetailInfo',
|
],
|
},
|
{
|
root: 'subpackages/curriculum',
|
pages: [
|
'editMineInfo/editMineInfo',
|
'mineCertificate/mineCertificate',
|
'mineCertificateAddOrEdit/mineCertificateAddOrEdit',
|
'mineCurriculumVitae/mineCurriculumVitae',
|
'mineDetailedInfo/mineDetailedInfo',
|
'mineJobIntention/mineJobIntention',
|
'mineWorkExperience/mineWorkExperience',
|
'expectPosition/expectPosition',
|
],
|
},
|
{
|
root: 'subpackages/task',
|
pages: [
|
'taskDetail/taskDetail',
|
'companyDetail/companyDetail',
|
'taskSubmitCheck/taskSubmitCheck',
|
'taskCheckDetail/taskCheckDetail',
|
],
|
},
|
{
|
root: 'subpackages/user',
|
pages: ['complaint/complaint'],
|
},
|
{
|
root: 'subpackages/extraPage',
|
pages: ['extraPage/extraPage'],
|
},
|
],
|
// preloadRule: {
|
// 'pages/mine/index': {
|
// network: 'all',
|
// packages: ['subpackages/setting', 'subpackages/message'],
|
// },
|
// },
|
});
|