"tabBar": {
"borderStyle": "black",
"backgroundColor": "#fff",
"color": "#CCCCCC",
"selectedColor": "#333333",
"list": [{
"pagePath": "pages/tabbar/index/index",
"iconPath": "static/images/tabbar/home.png",
"selectedIconPath": "static/images/tabbar/homeactive.png",
"text": "Home"
},
{
"pagePath": "pages/tabbar/category/index",
"iconPath": "static/images/tabbar/fenlei.png",
"selectedIconPath": "static/images/tabbar/fenleiactive.png",
"text": "Category"
},
{
"pagePath": "pages/tabbar/cart/index",
"iconPath": "static/images/tabbar/gouwuche.png",
"selectedIconPath": "static/images/tabbar/gouwucheactive.png",
"text": "Shop Cart"
},
{
"pagePath": "pages/tabbar/user/index",
"iconPath": "static/images/tabbar/wode.png",
"selectedIconPath": "static/images/tabbar/wodeactive.png",
"text": "Mine",
}
]
},
navigationBarTitleText 同上 求帮忙啊!!!!!!!!!!
如何解决 写在哪里?
百度搜说写这个
uni.setTabBarItem({
index: 0,
text: 'text',
iconPath: '/path/to/iconPath',
selectedIconPath: '/path/to/selectedIconPath'
})
但是不管用不知道写在哪里?
1 个回复
DCloud_UNI_Anne
参考Hello i18n示例,以及相关国际化文档