小程序根据不同角色加载不同界面及tabBar,主包怎么配置呢?需要所有tabBar界面?

小程序 文章 2022-04-18 11:40 668 0 全屏看文

AI助手支持GPT4.0

小程序根据不同角色加载不同界面及tabBar,主包怎么配置呢?需要所有tabBar界面?The applet loads different interfaces and tabBars according to different roles. How to configure the main package? Need all the tabBar interface?

小程序根据不同角色加载不同界面及tabBar,主包怎么配置呢?需要所有tabBar界面?

小程序根据不同角色加载不同界面及tabBar,请问是应该把每个tabBar都配置在page.json中,通过封装组件去自定义显示。主包需要包含所有tabBar中配置的界面吗?

The applet loads different interfaces and tabbars according to different roles. Should each tabbar be configured on page JSON, customize the display by encapsulating components. Does the main package need to include all interfaces configured in the tabbar?

回答:

拾忆:

只能通过自定义组件了,小程序自带的配置不支持权限区分。

Serendipity:

写一个 关于Tabbar 的 js, 配置所有角色的Tabbar 配置项,根据登录的不同角色使用不同的,可以吧

-EOF-

AI助手支持GPT4.0