微信小程序: 导航栏样式、tabBar导航栏

在 app.json中:

 "tabBar": {
    "selectedColor": "#1296db",
    "list": [
      {
        "pagePath": "pages/before/before_first",
        "text": "社区",
        "iconPath": "images/icon-talk.png",
        "selectedIconPath": "images/icon-talk-d.png"
      },
      {
        "pagePath": "pages/index/index",
        "text": "SOS",
        "iconPath": "images/icon-alert.png",
        "selectedIconPath": "images/icon-alert-d.png"
      },
      {
        "pagePath": "pages/logs/logs",
        "text": "个人中心",
        "iconPath": "images/icon-person.png",
        "selectedIconPath": "images/icon-person-d.png"
      }
    ]
  }

这里写图片描述

阅读更多

没有更多推荐了,返回首页