微信小程序 tabBar 底部导航 配置

微信小程序 tabBar 底部导航 配置

最多5个Item。

"tabBar": {
   "selectedColor": "#2BA245",
   "list": [
     {
       "pagePath": "pages/index/index",
       "text": "首页",
       "iconPath": "images/home_normal.png",
       "selectedIconPath": "images/home_selected.png"
     },
    {
       "pagePath": "pages/line/line",
        "text": "服务",
       "iconPath": "images/service_normal.png",
       "selectedIconPath": "images/service_selected.png"
     },
     {
       "pagePath": "pages/tasknew/tasknew",
       "text": "新增",
       "iconPath": "images/add_normal.png",
       "selectedIconPath": "images/add_selected.png"
     },
     {
       "pagePath": "pages/task/task",
       "text": "任务",
       "iconPath": "images/task_normal.png",
       "selectedIconPath": "images/task_selected.png"
     },
     {
       "pagePath": "pages/mine/mine",
       "text": "我的",
       "iconPath": "images/mine_normal.png",
       "selectedIconPath": "images/mine_selected.png"
     }
   ]
 }

 

发表回复

您的电子邮箱地址不会被公开。