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": "尾页"
      }
    ]
  }
}

day02小程序配置

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

2、页面配置

上一篇:golang 进行grpc调用


下一篇:gcc-常见命令和错误