微信小程序底部导航栏-tabBar

app.json 文件

    "tabBar": {
        "list": [
            {
                "pagePath": "pages/listTask/listTask",
                "text": "列表",
                "iconPath": "resources/images/listTask.png",
                "selectedIconPath": "resources/images/listTask.png"
            },
            {
                "pagePath": "pages/task/task",
                "text": "添加",
                "iconPath": "resources/images/task.png",
                "selectedIconPath": "resources/images/task.png"
            },
            {
                "pagePath": "pages/my/my",
                "text": "我的",
                "iconPath": "resources/images/my.png",
                "selectedIconPath": "resources/images/my.png"
            }
        ]
    }

相关资料

官方文档 tabBar

微信小程序之底部导航栏——tabBar

发表评论

电子邮件地址不会被公开。 必填项已用*标注