您当前的位置: 首页 >  微信小程序

川川菜鸟

暂无认证

  • 4浏览

    0关注

    969博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

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

川川菜鸟 发布时间:2022-06-15 22:09:01 ,浏览量:4

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

{
  "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 全局配置: 在这里插入图片描述

关注
打赏
1665165634
查看更多评论
立即登录/注册

微信扫码登录

0.3114s