为了账号安全,请及时绑定邮箱和手机立即绑定

wepy开发小程序如何使用tabBar?

wepy开发小程序如何使用tabBar?

慕容708150 2018-08-26 14:50:12
在app.wepy文件下写如下代码,报错,请问如何解决?config = {   pages: [    'pages/index'   ],  window: {     backgroundTextStyle: 'light',     navigationBarBackgroundColor: '#fff',     navigationBarTitleText: 'WeChat',     navigationBarTextStyle: 'black'   },   tabBar: {     color: "#7A7E83",     selectedColor: "#3cc51f",     borderStyle: "black",     backgroundColor: "#ffffff",     list: [{       pagePath: "page/index",       iconPath: "image/zhiling.png",       selectedIconPath: "image/youyong.png",       text: "组件"     }, {       pagePath: "page/index",       iconPath: "image/youyong.png",       selectedIconPath: "image/zhiling.png",       text: "接口"     }]   } }
查看完整描述

1 回答

?
烙印99

TA贡献1829条经验 获得超13个赞

page/index ==> pages/index

查看完整回答
反对 回复 2018-08-27
  • 1 回答
  • 0 关注
  • 3085 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信