时间:2019-05-04 来源:小程序工厂
L***:
你好,请提供一下导航栏相关的设置。如果有设置导航栏相关的代码,也请提供一下。
真***:
这是app.json里的
{
"pages":[
"pages/homePage/homePage",
"pages/index/index",
"pages/shoping/shoping",
"pages/my/my",
"pages/index/details/details"
],
"window":{
"navigationBarBackgroundColor": "black",
"navigationBarTextStyle":"white"
},
"tabBar": {
"borderStyle": "white",
"position": "bottom",
"list": [
{
"pagePath": "pages/homePage/homePage",
"text": "首页",
"iconPath": "images/tab/yuedu.png",
"selectedIconPath": "images/tab/yuedu_hl.png"
},
{
"pagePath": "pages/index/index",
"text": "商品",
"iconPath": "images/tab/yuedu.png",
"selectedIconPath": "images/tab/yuedu_hl.png"
},
{
"pagePath": "pages/shoping/shoping",
"text": "购物车",
"iconPath": "images/tab/yuedu.png",
"selectedIconPath": "images/tab/yuedu_hl.png"
},
{
"pagePath": "pages/my/my",
"text": "我的",
"iconPath": "images/tab/yuedu.png",
"selectedIconPath": "images/tab/yuedu_hl.png"
}
]
}
}
这是其他的单独页面的json文件里的
{
"navigationBarTitleText": "商品"
}
开发者工具空的
真***:
你好