使用wepy-cli框架如何编辑小程序底部菜单|app.wpy初始化设置
2018年11月28日打开文件/src/app.wpy
开始全部替换
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
<style lang="less"> .container { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; box-sizing: border-box; } </style> <script> import wepy from 'wepy' export default class extends wepy.app { config = { pages: [ 'pages/index', 'pages/user' ], window: { backgroundTextStyle: 'light', navigationBarBackgroundColor: '#fff', navigationBarTitleText: 'LaraBBS', navigationBarTextStyle: 'black' }, tabBar: { list: [{ pagePath: 'pages/index', text: '首页', iconPath: 'images/index.png', selectedIconPath: 'images/index_selected.png' }, { pagePath: 'pages/user', text: '我的', iconPath: 'images/user.png', selectedIconPath: 'images/user_selected.png' }], color: '#707070', selectedColor: '#00b5ad' } } constructor () { super() this.use('requestfix') } onLaunch() { } } </script> |
将里面的多余实例代码去去除掉没有用 图标下载