pages.json 1.7 KB
{

  "easycom": {
    "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
  },
  "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
    {
      "path": "pages/index/index",
      "style": {
        "navigationBarTitleText": "uni-app",
        "navigationStyle": "custom"
      }
    }, {
      "path": "pages/my/my",
      "style": {
        "navigationBarTitleText": "",
        "enablePullDownRefresh": false,
        "navigationStyle": "custom"
      }
    }, {
      "path": "pages/order-details/order-details",
      "style": {
        "navigationBarTitleText": "",
        "enablePullDownRefresh": false
      }
    }, {
      "path": "pages/login/login",
      "style": {
        "navigationBarTitleText": "",
        "enablePullDownRefresh": false
      }
    }
  ],
  "globalStyle": {
    "navigationBarTextStyle": "black",
    "navigationBarTitleText": "uni-app",
    "navigationBarBackgroundColor": "#ffffff",
    "backgroundColor": "#F5F5F5"
  },
  "uniIdRouter": {},
  "tabBar": {
    "color": "#000",
    "selectedColor": "#29396A", //tab 上的文字选中时的颜色
    "borderStyle": "white", //tabbar 上边框的颜色,可选值 black/white
    "backgroundColor": "#fff", //tab的背景色
    "list": [{
        "pagePath": "pages/index/index", //页面路径,必须在pages中先定义
        "iconPath": "static/tabbar/home.png", //未选中图片路径
        "selectedIconPath": "static/tabbar/home-active.png", //选中时的图片路径
        "text": "首页" //tab上按钮文字
      },
      {
        "pagePath": "pages/my/my",
        "iconPath": "static/tabbar/my.png",
        "selectedIconPath": "static/tabbar/my-active.png",
        "text": "我的"
      }
    ]
  }
}