全局配置
多一个页面就要更新一次pages
想要使用一个低耦合的组件,需要声明usingComponents字段组件的位置,并且采用Component构造器进行组件化的开发
{
"entryPagePath": "pages/logs/logs",
"pages":[
"pages/index/index",
"pages/logs/logs"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "摩安达",
"navigationBarTextStyle":"black"
},
"tabBar": {},
"networkTimeout": {
"request": 10000,
"downloadFile": 10000
},
"requiredBackgroundModes": [],
"requiredPrivateInfos":[],
"usingComponents": {},
"useExtendedLib": {},
"lazyCodeLoading": "",
"style": "v2",
"sitemapLocation": "sitemap.json"
}
单独页面配置
{
"homeButton": true,
"enablePullDownRefresh": false,
"onReachBottomDistance": 50,
"disableScroll": true,
"usingComponents": {},
"visualEffectInBackground": "hidden/none",
}
sitemap配置
该文件目的是配置小程序页面是否能被微信搜索索引到,默认所有页面均可被搜索