错误(小程序)
最近在学习小程序,想要模仿一个微信的界面,但是在弄tabbar的时候,明明都是对的,但是就是不显示出来,让我怀疑自己。后来知道它的第一个list要和pages里面的第一个page一样,才可以显示出来。
"pages": [
"pages/pages/page1",
"pages/index/index",
"pages/logs/logs",
"pages/pages/page2",
"pages/pages/pages3",
"pages/pages/pages4"
],
"tabBar": {
"list": [
{
/*一定要记得和第一个page一样*/
"pagePath": "pages/pages/page1",
"text": "微信"
},
{
"pagePath": "pages/pages/page2",
"text": "通讯录"
},
{
"pagePath": "pages/pages/page3",
"text": "发现"
},
{
"pagePath": "pages/pages/page4",
"text": "我"
}
]
}