在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: "接口"
}]
}
}
page/index
==>pages/index