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、页面配置

你可能感兴趣的:(day02小程序配置)