app.json文件配置

时间:2021-02-01 11:47:32   收藏:0   阅读:0

pages

"pages": [
    "pages/demo3/demo3",
    "pages/demo1/demo1",
    "pages/index/index",

windows

"window": {
    // 设置上拉的背景颜色
    "backgroundColor": "#0094ff",
    // 设置上拉时加载小圆点的颜色
    "backgroundTextStyle": "dark",
    //设置导航背景颜色
    "navigationBarBackgroundColor": "#F6F6F6",
    //设置导航文字
    "navigationBarTitleText": "我的应用",
    // 设置导航字体样式
    "navigationBarTextStyle": "black",
    // 设置能够上拉
    "enablePullDownRefresh": true
  },

tabbar

"tabBar": {
    "list": [{
        // 点击时要跳转的路径
        "pagePath": "pages/index/index",
        // 文字
        "text": "首页",
        // 图标路径
        "iconPath": "icon/_home.png",
        //选中时的图标路径
        "selectedIconPath": "icon/home.png"
      },
      {
        "pagePath": "pages/img/img",
        "text": "图片",
        "iconPath": "icon/_img.png",
        "selectedIconPath": "icon/img.png"
      },

详情请查看

(https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html)

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!