导航栏的字显示不出来,不知道哪里写错了,而且一直报错?
发布于 3 年前 作者 denglei 10666 次浏览 来自 问答

{

"pages": [

"pages/index/index",

"pages/my/my"

] ,

"windows":{

"navigationBarBackgroundColor": "#ffffff",

"navigationBarTextStyle": "black",

"navigationBarTitleText": "明天",

"backgroundColor": "#000",

"backgroundTextStyle": "light"

},

"tabBar": {

"color": "#000000",

"selectedcolor":"#328eeb",

"list": [

{

"pagePath": "pages/index/index",

"text": "首页",

"iconPath": "images/1.jpg",

"selectedIconPath": "images/3.jpg"

},

{

"pagePath": "pages/my/my",

"text": "个人",

"iconPath": "images/1.jpg",

"selectedIconPath": "images/3.jpg"

}

]

}

}

4 回复

这个应该是window,多了个S

标题配置参数显示正常,检查下页面其它代码

"window": {
    "navigationBarBackgroundColor": "#fff",
    "navigationBarTextStyle": "black",
    "navigationBarTitleText": "我是标题",
    "backgroundColor": "#000",
    "backgroundTextStyle": "light"
},

你给单独的页面设置一下title试试?

把你的window里的代码替换成这个:

window: {
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#FFF",
    "backgroundColor": "#FFF",
    "navigationBarTitleText": "明天",
    "navigationBarTextStyle": "black"
}
回到顶部