美文网首页
小程序的搭建

小程序的搭建

作者: 陆勇高 | 来源:发表于2019-11-13 17:38 被阅读0次
  代码如下:
 "tabBar": {
    "backgroundColor": "#fff",
    "color": "#8896cd",
    "selectedColor": "#708090",
    "list": [
      {
        "pagePath": "pages/index/index",
        "text": "首页",
        "iconPath": "/images/index.png",
        "selectedIconPath": "/images/indexing.png"
      },
      {
        "pagePath": "pages/face/face",
        "text": "人脸对比",
        "iconPath": "/images/facegay.png",
        "selectedIconPath": "/images/face.png"
      },
      {
        "pagePath": "pages/detection/detection",
        "text": "活体检测",
        "iconPath": "/images/huo2.png",
        "selectedIconPath": "/images/huo.png"
      }
    ]
  },

需要注意的是路径问题,图片路径直接引入即可,用../会报错,"backgroundColor": "#fff",是背景颜色, "color": "#8896cd",是 字体颜色,"selectedColor": "#708090",是选中高亮的颜色,还有图片类型要一致(png!==PNG).

相关文章

网友评论

      本文标题:小程序的搭建

      本文链接:https://www.haomeiwen.com/subject/yjthictx.html