wepy进阶
-
config详解
config = { pages: [ // 页面路径定义,也就相当于路由的定义,wepy默认使用pages下的文件名作为路由,但是需要在此处注册 'pages/articles', ], window: { // 初始化定义小程序相关样式,以及是否启用相关功能 backgroundTextStyle: 'dark', navigationBarBackgroundColor: '#fff', navigationBarTextStyle: 'black', enablePullDownRefresh: true, backgroundColor: '#EFEFEF' }, tabBar: { // 底部导航栏的设置 color: '#999999', selectedColor: '#ff6a3c', backgroundColor: '#ffffff', borderStyle: 'black', list: [ { pagePath: 'pages/articles', text: '首页', iconPath: 'static/images/icon_home.png', selectedIconPath: 'static/images/icon_home_active.png' }, { pagePath: 'pages/github', text: 'github', iconPath: 'stati