2***@qq.com
2***@qq.com
  • 发布:2022-07-28 11:14
  • 更新:2022-07-29 19:42
  • 阅读:1032

uni-app国际化如何动态态修改tabBar以及navigationBarTitleText标题语言?

分类:uni-app

"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'
})
但是不管用不知道写在哪里?

2022-07-28 11:14 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复