微信隐私协议(privacy-authorize)
微信隐私协议组件,隐私协议开发指南 (opens new window)。
Props
属性名 | 类型 | 默认值 | 说明 |
position | String | center | 位置 ,可选值 center、bottom |
themeColor | String | #2979ff | 主题色 |
borderRadius | String | 16rpx | 背景圆角 |
bgColor | String | #FFFFFF | 背景色 |
agreeTextColor | String | #FFFFFF | 同意文本颜色 |
disagreeTextColor | String | #666666 | 不同意文本颜色 |
shape | String | square | 按钮形状 可选值 square、circle |
onNeed | Boolean | false | 使用到隐私相关api时触发弹窗,设置为false时初始化弹窗将判断是否需要隐私授权,需要则直接弹出 |
hideTabBar | Boolean | false | 是否需要隐藏tabbar,在首页等tabbar页面使用改弹窗时建议改为true |
title | String | 用户隐私保护提示 | 标题 |
prepend | String | 使用前请仔细阅读 | 协议名称前的内容 |
append | String | 当您点击同意后,即表示您已理解并同意该条款内容;如您拒绝,将无法使用该服务。 | 协议名称后的内容 |
privacyContractNameCustom | String | | 自定义协议名称,默认小程序自动获取 |
Events
事件名称 | 类型 | 说明 |
@agree | Function | 同意事件 |
@disagree | Function | 拒绝事件 |