简介

每一个小程序页面也可以使用 .json 文件来对本页面的窗口表现进行配置。页面中配置项在当前页面会覆盖 app.json 的 window 中相同的配置项。页面配置中只能设置 app.json 中 window 对应的配置项,以决定本页面的窗口表现,所以无需写 window 这个属性。

属性

文件内容为一个 JSON 对象,有以下属性:

配置示例

{
    "navigationBarBackgroundColor": "#FF4949",
    "navigationBarTextStyle": "white",
    "navigationBarTitleText": "微信页面配置demo",
    "backgroundColor": "#13CE66",
    "backgroundTextStyle": "light",
    "enablePullDownRefresh": true,
    "backgroundColorTop":"#99A9BF",
    "onReachBottomDistance":20,
    "usingComponents": {}
}

image.png


图解前端
38 声望2 粉丝

I hear and I forget. I see and I remember. I do and I understand