day02小程序配置

附上微信小程序开发文档的网址:https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html

学技术,需要多看文档,切记切记。

1、全局配置

{
  "pages": [
    "pages/index/index",
    "pages/home/home"
  ],
  "window": {
    "navigationBarBackgroundColor": "#FFB6C1",
    "navigationBarTextStyle": "black",
    "navigationBarTitleText": "平安喜乐"
  },
  "tabBar": {
    "selectedColor":"#DC143C",
    "list": [
      {
        "pagePath": "pages/index/index",
        "text": "首页",
        "iconPath":"pages/static/tabbar/e1.png",
        "selectedIconPath":"pages/static/tabbar/e2.png"
      },
      {
        "pagePath": "pages/home/home",
        "text": "尾页"
      }
    ]
  }
}

window:是界面上面的配置;toolbar是界面下面的配置

2、页面配置

posted @ 2020-06-26 16:49  等风者  阅读(270)  评论(0编辑  收藏  举报