设置了tabbar但是没法显示出来
发布于 5 年前 作者 yangyan 8502 次浏览 来自 问答

{

“pages”: [

“pages/zhuye/zhuye”,

“pages/logs/logs”,

“pages/index/index”

],

“window”: {

“backgroundTextStyle”: “light”,

“navigationBarBackgroundColor”: “#fff”,

“navigationBarTitleText”: “666”,

“navigationBarTextStyle”: “black”,

“navigationStyle”: “default”,

“backgroundColor”: “pink”,

“enablePullDownRefresh”: “true”

},

“tabBar”:{

“color”: “#8a8a8a”,

“selecterColor”: “#1AAD16”,

“list”: [

{

“pagePath”: “pages/zhuye/zhuye”,

“text”: “首页”

},

{

“pagePath”: “pages/logs/logs”,

“text”: “购物车”

},

{

“pagePath”: “pages/index/index”,

“text”: “我”

}

]

}

}

设置了tabbar  但是就是没法显示出来 这是什么原因啊

2 回复

两个错误

第一

这个true 不能有引号;

第二

这个应该是selectedColor

“enablePullDownRefresh”“true” 改为 “enablePullDownRefresh”true 去掉冒号

回到顶部