JSON 配置 pages String Array 是 设置页面路径 window Object 否 设置默认页面的窗口表现 tabBar Object 否 设置底部 tab 的表现 networkTimeout Object 否 设置网络超时时间 debug Boolean 否 设置
{ "pages": [ "pages/index/index", "pages/registerNext/registerNext", "pages/moments/chooseMomentsCollege", "pages/login/login", "pages/logs/logs", "pages/view/view", "pages/moments/moments", "pages/scollView/scollView", "pages/register/register", "pages/registerChoiceCollege/registerChoiceCollege", "pages/forgetPassword/forgetPassword", "pages/votes/votes", "pages/voteDetail/voteDetail", "pages/momentsDetail/momentsDetail", "pages/votesDetail2/votesDetail2", "pages/passwordReset/passwordReset", "pages/activityList/activityList", "pages/introduce/introduce", "pages/voteDiscuss/voteDiscuss", "pages/activityDetail/activityDetail", "pages/survey/survey", "pages/mine/mine", "pages/webView/webView" ], "window": { "navigationBarBackgroundColor": "#A6D4F2", "navigationBarTitleText": "微信小程序", "navigationBarTextStyle": "black" }, "tabBar": { "list": [ { "pagePath": "pages/index/index", "text": "首页", "iconPath": "image/college.png", "selectedIconPath": "image/college_N.png" }, { "pagePath": "pages/mine/mine", "text": "我的", "iconPath": "image/me.png", "selectedIconPath": "image/me_N.png" } ] } }
官方文档>