社区

 找回密码
 立即注册
搜索
查看: 304|回复: 0

[微信小程序] 2、小程序页面顶部导航栏配置

[复制链接]

857

主题

869

帖子

3801

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3801
发表于 2020-2-21 20:49:45 | 显示全部楼层 |阅读模式
pages.json顶部导航栏配置

{
"navigationBarTitleText": "ABOUT", //顶部导航栏 标题
"navigationBarBackgroundColor": "#ffffff",//顶部导航栏  背景颜色
"navigationBarTextStyle": "white"//顶部导航栏字体颜色  black 、 white 两个值
}
about.json:
  1. {
  2.   "navigationBarTitleText": "ABOUT",
  3.   "navigationBarBackgroundColor": "#fff",
  4.   "navigationBarTextStyle": "black"
  5. }
复制代码
页面配置:https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/page.html

思考:如何动态的获取小程序的标题呢?

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

社区

GMT+8, 2024-5-6 02:25 , Processed in 0.050326 second(s), 11 queries , File On.

湖南抖音广告湖南抖音 Powered by Discuz!X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表