zoukankan      html  css  js  c++  java
  • 微信小程序底部菜单栏的使用方法

    1、找到项目根目录的配置文件 app.json,在配置文件中加入配置代码。例如:

     1 "tabBar": {  <!--底部的导航配置属性-->
     2    "color": "为选择时底部导航栏的颜色",  
     3    "selectedColor": "选中时底部导航栏的颜色",  
     4    "borderStyle":"底部导航栏边框样式",  
     5    "list": [{  <!--导航配置数组-->
     6      "selectedIconPath": "选中时的图片路径",  
     7      "iconPath": "未选中时的图片路径",  
     8      "pagePath": "页面访问地址",  
     9      "text": "首页"  
    10    }, {  
    11      "selectedIconPath": "选中时的图片路径",  
    12      "iconPath": "未选中时的图片路径",  
    13      "pagePath": "页面访问地址",  
    14      "text": "会员"  
    15    }, {  
    16      "selectedIconPath": "选中时的图片路径",  
    17      "iconPath": "未选中时的图片路径",  
    18      "pagePath": "页面访问地址",  
    19      "text": "订单"  
    20    }]  
    21  },  

    具体可参考微信小程序官方文档。https://mp.weixin.qq.com/debug/wxadoc/dev/framework/config.html

  • 相关阅读:
    团队开发5
    团队开发4
    团队开发3
    团队开发2
    团队开发1
    团队计划会议
    寒假学习进度---完结篇
    寒假学习进度十七
    寒假学习进度十六
    python后续学习
  • 原文地址:https://www.cnblogs.com/kiimi/p/8334965.html
Copyright © 2011-2022 走看看