前言:

微信开发者公众平台文档 中https://developers.weixin.qq.com/miniprogram/dev/framework/config.html

每一个小程序页面也可以使用.json文件来对本页面的窗口表现进行配置。 页面的配置比app.json全局配置简单得多,只是设置 app.json 中的 window 配置项的内容,页面中配置项会覆盖 app.json 的 window 中相同的配置项。


以下是 测试数据

app.json 中配置window对象


        "window":{

                "backgroundTextStyle":"light",

                "navigationBarBackgroundColor": "#fff",

                "navigationBarTitleText": "WeChat2",

                "navigationBarTextStyle":"black",

                "backgroundColor" : "#000000"

        },

page.json中 配置内容为


        {

                "backgroundTextStyle": "#000000",

                "navigationBarBackgroundColor": "#ffffff",

                "navigationBarTitleText": "index页面",

                "navigationBarTextStyle": "#ffffff",

                "backgroundColor": "#999999"

        }


经  

展开全部
收起
1回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Mateo

    10人对此回答表示赞同

    是的不知道怎么覆盖

    展开
    10
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部