微信小程序第二节:app.jsop配置

效果如下:
在这里插入图片描述
实现源码配置:

{
    
    
  "pages": [
    "pages/index/index",
    "pages/logs/logs"
  ],
  "window": {
    
    
    "backgroundTextStyle": "dark",
    "navigationBarBackgroundColor": "#0094ff", 
    "navigationBarTitleText": "川川",  
    "navigationBarTextStyle": "black" ,
    "enablePullDownRefresh": true,
    "backgroundColor": "#FF4500"
  },
  "style": "v2",
  "sitemapLocation": "sitemap.json"
}

参数说明:

  • pages中分别放的页面和日志
  • backgroundTextStyle:下拉刷新显示黑色样式
  • navigationBarBackgroundColor:顶部的颜色
  • navigationBarTitleText:导航栏标题文字内容
  • navigationBarTextStyle:标题颜色
  • enablePullDownRefresh:是否刷新
  • backgroundColor:刷新部分的颜色

更多参数请参考微信官方文档:

https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html
全局配置:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_46211269/article/details/125305651