聆客开放平台

# 底部菜单总览

**底部菜单配置:**打开json配置文件,配置对应的底部菜单。Android端和Ios端手机共用一份json文件。

img.png

拿【消息】菜单为例 ,需要注意:

defaultIcon和checkedIcon的名称一定要跟产品组提供的json文件中的名称一致,否则菜单上的logo显示不出来。另外这里的logo都是svg的格式,默认的logo都在代码里面配置好了,项目组如需定制logo,则需要使用工具转换成svg的格式,再上传到打包平台上,且logo名称与这里保持一致,切记一定要用工具转换格式,不可直接修改后缀名。

**底部全部菜单默认配置如下,**新项目可根据需要自行删减:


"items": [{

​        "key": "Conversation",

​        "text": "tab_message",

​        "defaultIcon": "tab_message_default.svg",

​        "checkedIcon": "tab_message_checked.svg"

​      },

​      {

​        "key": "Contact",

​        "text": "tab_contact",

​        "defaultIcon": "tab_contacts_default.svg",

​        "checkedIcon": "tab_contacts_checked.svg"

​      },

​      {

​        "key": "BuiltinApp",

​        "text": "tab_home",

​        "defaultIcon": "tab_home_default.svg",

​        "checkedIcon": "tab_home_checked.svg",

​        "appCode": "MobilePortalH5",

​        "appUrl": "index.html"

​      },

​      {

​        "key": "BuiltinApp",

​        "text": "tab_home",

​        "defaultIcon": "tab_home_default.svg",

​        "checkedIcon": "tab_home_checked.svg",

​        "appCode": "MobilePortal",

​        "appUrl": "app.js?disableload=1"

​      },

​      {

​        "key": "Blog",

​        "text": "tab_blog",

​        "defaultIcon": "tab_blog_default.svg",

​        "checkedIcon": "tab_blog_checked.svg"

​      },

​      {

​        "key": "Flutter",

​        "entryPoint": "/docs/home",

​        "text": "tab_docs",

​        "defaultIcon": "tab_docs_storage_default.svg",

​        "checkedIcon": "tab_docs_storage_checked.svg"

​      },

​      {

​        "key": "Disk",

​        "text": "tab_docs",

​         "defaultIcon": "tab_cloud_storage_default.svg",

​        "checkedIcon": "tab_cloud_storage_checked.svg"

​      },

​      {

​        "key": "AppMarket",

​        "text": "tab_appmarket",

​        "defaultIcon": "tab_app_market_default.svg",

​        "checkedIcon": "tab_app_market_checked.svg"

​      },

​      {

​        "key": "Flutter",

​        "entryPoint": "/email/main",

​        "text": "tab_startemail",

​        "defaultIcon": "mail_default.svg",

​        "checkedIcon": "mail_checked.svg"

​      },

​      {

​        "key": "Flutter",

​        "entryPoint": "/cooperative/home",

​        "text": "menu_cooperative",

​        "defaultIcon": "cooperative_default.svg",

​        "checkedIcon": "cooperative_checked.svg"

​      },

​      {

​        "key": "Flutter",

​        "entryPoint": "/calendar/home",

​        "text": "tab_schedule",

​        "defaultIcon": "schedule_default.svg",

​        "checkedIcon": "schedule_checked.svg"

​

​     },

​     {

​        "key": "Myself",

​        "text": "tab_myself",

​        "defaultIcon": "tab_myself_storage_default.svg",

​        "checkedIcon": "tab_myself_storage_checked.svg"

​

​    }

]