微信客户端是什么意思( 六 )


homePageAndLatestPage
如果从这个页面退出小程序,下次冷启动后立刻加载这个页面,页面的参数保持不变(不可用于 tab 页)
可选值
含义
homePage
(默认值)如果从这个页面退出小程序,下次将从首页冷启动
homePageAndLatestPage
如果从这个页面退出小程序,下次冷启动后立刻加载这个页面,页面的参数保持不变(不可用于 tab 页)
如:
{ "window": {"navigationBarBackgroundColor": "#ffffff","navigationBarTextStyle": "black","navigationBarTitleText": "微信接口功能演示","backgroundColor": "#eeeeee","backgroundTextStyle": "light"}}

微信客户端是什么意思

文章插图

tabBar如果小程序是一个多 tab 应用(客户端窗口的底部或顶部有 tab 栏可以切换页面),可以通过 tabBar 配置项指定 tab 栏的表现,以及 tab 切换时显示的对应页面 。
属性
类型
必填
默认值
描述
最低版本
color
HexColor



tab 上的文字默认颜色,仅支持十六进制颜色


selectedColor
HexColor



tab 上的文字选中时的颜色,仅支持十六进制颜色


backgroundColor
HexColor



tab 的背景色,仅支持十六进制颜色


borderStyle
string

black
tabbar 上边框的颜色,仅支持 black / white


list
Array



tab 的列表,详见 list 属性说明,最少 2 个、最多 5 个 tab


position
string

bottom
tabBar 的位置,仅支持 bottom / top


custom
boolean

false
自定义 tabBar,见详情
2.5.0
属性
类型
必填
默认值
描述
最低版本
color
HexColor



tab 上的文字默认颜色,仅支持十六进制颜色


selectedColor
HexColor



tab 上的文字选中时的颜色,仅支持十六进制颜色


backgroundColor
HexColor



tab 的背景色,仅支持十六进制颜色


borderStyle
string

black
tabbar 上边框的颜色,仅支持 black / white


list
Array



tab 的列表,详见 list 属性说明,最少 2 个、最多 5 个 tab


position
string

bottom
tabBar 的位置,仅支持 bottom / top


custom
boolean

false
自定义 tabBar,见详情
2.5.0
其中 list 接受一个数组,只能配置最少 2 个、最多 5 个 tab 。tab 按数组的顺序排序,每个项都是一个对象,其属性值如下:
属性
类型
必填
说明
pagePath
string

页面路径,必须在 pages 中先定义
text
string

tab 上按钮文字
iconPath
string

图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px,不支持网络图片 。当 position 为 top 时,不显示 icon 。
selectedIconPath
string

选中时的图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px,不支持网络图片 。当 position 为 top 时,不显示 icon 。
属性
类型
必填
说明
pagePath
string

页面路径,必须在 pages 中先定义
text
string


特别声明:本站内容均来自网友提供或互联网,仅供参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。