app.json

新建页面

app.json中新建页面:

  "pages":[
    "pages/index/index",
    "pages/logs/logs",
    "pages/works/works",
    "pages/dynamic/dynamic"
  ],

设置页面为tabBar

app.json:

  "tabBar":
    {
      "color":"#B6B6B6",
      "selectedColor": "#FE9132",
        "list":[
          {
            "pagePath": "pages/index/index",
            "text":"首页",
            "iconPath": "images/home.png",
            "selectedIconPath": "images/home-h.png"
          },{
            "pagePath": "pages/works/works",
            "text":"作品",
            "iconPath": "images/user.png",
            "selectedIconPath": "images/user-h.png"
          },{
            "pagePath": "pages/dynamic/dynamic",
            "text":"动态",
            "iconPath": "images/list.png",
            "selectedIconPath": "images/list-h.png"
          }
        ]   
    },


最后修改:2024 年 03 月 14 日
如果觉得我的文章对你有用,请随意赞赏