微信小程序 tabbar 如何能写成在线的?目前都是离线状态的无法满足需求,找了半天方法也没办法实现,哪位大神可以给个方案 "tabBar": {
"color": "#a9b7b7",
"selectedColor": "#11cd6e",
"borderStyle": "black" , "list": [{
"selectedIconPath": "images/icon_consult_press.png",
"iconPath": "images/icon_consult.png",
"pagePath": "pages/index/index",
"text": "首页"
}, {
"selectedIconPath": "images/icon_invest_press.png",
"iconPath": "images/icon_invest.png",
"pagePath": "pages/logs/logs",
"text": "一元投"
},{
"selectedIconPath": "images/icon_mine_press.png",
"iconPath": "images/icon_mine.png",
"pagePath": "pages/mine/mine",
"text": "我的"
} ]
![]() | 1 twm 2018-02-04 13:52:05 +08:00 via iPhone 没有接口吧 |
![]() | 2 hlwjia PRO 写一个看起来像 tabbar 的 tabbar 就行了 |
3 duguxiaohuai OP @hlwjia 你的意思是不使用 tabbar 而是自己重新写一个的意思么 |
![]() | 4 hlwjia PRO @duguxiaohuai 对的,效果一样的。像 action_sheet 这种,默认的组件不能满足需求,也是自己写的 |
5 duguxiaohuai OP @hlwjia 官方的是不是没有其他解决方案 |
![]() | 6 lijsh 2018-02-04 14:07:42 +08:00 tabBar 是没办法运行时更改的,要动态配置的话只能自己实现。 |
![]() | 7 chotow 2018-02-04 17:09:58 +08:00 via Android 前段时间新增了「修改」 tabbar 的 API,但不能「新增或删除」,具体请看文档。 https://mp.weixin.qq.com/debug/wxadoc/dev/api/ui-tabbar.html |
8 supersadmin 2018-02-04 20:23:38 +08:00 via iPhone 已经有接口了,前几天更新的。 |