电脑可以实现,手机提示出错 runtime.js?devtools_ignore=true:1 Error: module "pages/template/template.js" is not defined at require (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1970413) at eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1970034) at eval (index.js:4) at require (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1970551) at eval (index.js:6) at eval (<anonymous>) at p (runtime.js?devtools_ignore=true:1) at runtime.js?devtools_ignore=true:1 at k (runtime.js?devtools_ignore=true:1) at w (runtime.js?devtools_ignore=true:1) ???????
自定义,1、不好看;2、麻烦;3、易出错
建议微信官方修改支持在json中直接增加就行了,可以限制5个
看下文档,自定义tabbar,满足需求
建议自定义底部栏,官方文档里直接提供demo,但是个人觉得体验一般,组件渲染以及实际切换操作时会有卡顿,没有系统默认的流程。
自定义,根据不同权限,显示不同的tabBar
可以尝试使用自定义TableBar组件。
请参考:
https://developers.weixin.qq.com/community/develop/article/doc/0002eca26648d08695e9f34bf5bc13?highline=%E8%87%AA%E5%AE%9A%E4%B9%89%20tabbar
runtime.js?devtools_ignore=true:1 Error: module "pages/template/template.js" is not defined
at require (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1970413)
at eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1970034)
at eval (index.js:4)
at require (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1970551)
at eval (index.js:6)
at eval (<anonymous>)
at p (runtime.js?devtools_ignore=true:1)
at runtime.js?devtools_ignore=true:1
at k (runtime.js?devtools_ignore=true:1)
at w (runtime.js?devtools_ignore=true:1)
???????