uni-app中pages.json详解

{
    "pages": [
        {
            "path": "pages/index/index",
            "style": {
                "navigationBarTitleText": "收银员",// 导航栏标题文字内容
                "backgroundTextStyle": "dark" ,//下拉 loading 的样式,仅支持 dark/light
                "enablePullDownRefresh":"false" ,//是否开启下拉刷新,详见页面相关事件处理函数
                "onReachBottomDistance":50 ,//页面上拉触底事件触发时距页面底部距离,单位为px 
                "backgroundColorTop":"#ffffff" ,//顶部窗口的背景色。 微信小程序且为 iOS
                "backgroundColorBottom":"#ffffff" ,//底部窗口的背景色。 微信小程序且为 iOS
            }
        },
        {
            "path": "pages/index/index",
            "style": {
                "navigationBarTitleText": "收银员",// 导航栏标题文字内容
                "backgroundTextStyle": "dark" ,//下拉 loading 的样式,仅支持 dark/light
                "enablePullDownRefresh":"false" ,//是否开启下拉刷新,详见页面相关事件处理函数
                "onReachBottomDistance":50 ,//页面上拉触底事件触发时距页面底部距离,单位为px 
                "backgroundColorTop":"#ffffff" ,//顶部窗口的背景色。 微信小程序且为 iOS
                "backgroundColorBottom":"#ffffff" ,//底部窗口的背景色。 微信小程序且为 iOS
            }
            
        }
    ],
    "globalStyle": {
        "navigationBarTextStyle": "black",//导航栏标题颜色,仅支持 black/white 
        "navigationBarTitleText": "uni-app",// 导航栏标题文字内容
        "navigationBarBackgroundColor": "#FFFFFF",//导航栏背景颜色
        "backgroundColor": "#F8F8F8",//窗口的背景色 微信小程序
        "navigationStyle":"default" ,//导航栏样式,仅支持 default/customm,开启 custom 后,所有窗口均无导航栏
    },
     "tabBar": {
        "color": "#7A7E83", //tab 上的文字默认颜色
        "selectedColor": "#3cc51f", //tab 上的文字选中时的颜色
        "borderStyle": "black", //tabbar 上边框的颜色,仅支持 black/white
        "backgroundColor": "#ffffff", //tab 的背景色
        "position":"bottom", //可选值 bottom、top
        "list": [{
          "pagePath": "pages/component/index", //页面路径,必须在 pages 中先定义
          "iconPath": "static/image/icon_component.png", //图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px,当 postion 为 top 时,此参数无效,不支持网络图片
          "selectedIconPath": "static/image/icon_component_HL.png", //选中时的图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px ,当 postion 为 top 时,此参数无效
          "text": "组件" //tab 上按钮文字
        }, {
          "pagePath": "pages/API/index",
          "iconPath": "static/image/icon_API.png",
          "selectedIconPath": "static/image/icon_API_HL.png",
          "text": "接口"
        }]
      }
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值