• 微信小程序底部tabbar


    在 app.json    文件里面 :

    {
      "pages":[
        "pages/index/index",
        "pages/logs/logs",
        "pages/topic/topic",
        "pages/category/category"
      ],
      "window":{
        "backgroundTextStyle":"light",
        "navigationBarBackgroundColor": "#000",
        "navigationBarTitleText": "大熊图书馆",
        "navigationBarTextStyle":"white"
      },
      "tabBar": {
        "color": "#8c8c8c",//字体颜色
        "selectedColor": "#f4645f", //选中字体颜色
        "backgroundColor": "#fff",//背景颜色
        "list": [{
          "pagePath": "pages/index/index",
          "text": "图书",
          "iconPath":"images/book.png",
          "selectedIconPath":"images/book1.png"
        }, 
        {
          "pagePath": "pages/category/category",      
          "text": "评论",
          "iconPath":"images/book.png",
          "selectedIconPath":"images/book1.png"
        },
        {
          "pagePath": "pages/topic/topic",      
          "text": "我的",
          "iconPath":"images/book.png",
          "selectedIconPath":"images/book1.png"
        }  
        ],
        "position": "bottom"    //写成   top   就在上面
      }  
    }
  • 相关阅读:
    Java堆和优先队列
    JAVA取数两个数组交集,考虑重复和不重复元素
    Java策略模式
    Java设计模式迭代器
    Java 模板模式
    java图片缩放与裁剪
    Java桥接模式
    Java集合实现
    Java Mybatis实现主从同步
    Java组合模式
  • 原文地址:https://www.cnblogs.com/520BigBear/p/10383245.html
Copyright © 2020-2023  润新知