ios一键登录隐私协议的uncheckedImage checkedImage 无法通过checkBoxSize修改 uni-app
ios一键登录隐私协议的uncheckedImage checkedImage 无法通过checkBoxSize修改 uni-app
| 开发环境 | 版本号 | 项目创建方式 |
|---|---|---|
| Mac | mac26 | HBuilderX |
产品分类:uniapp/App
PC开发环境操作系统:Mac
HBuilderX类型:正式
HBuilderX版本号:4.85
手机系统:iOS
手机系统版本号:iOS 26
手机厂商:苹果
手机机型:iPhone15pro
页面类型:vue
vue版本:vue2
打包方式:云端
示例代码:
univerifyManager.login({
provider: 'univerify',
univerifyStyle: { // 自定义登录框样式
"fullScreen": true,
"icon": {
"path": "static/images/logo.png",
"width": "70px",
"height": "70px"
},
"closeIcon": {
"path": "static/images/close.png",
"width": "24px",
"height": "24px"
},
"authButton": {
"normalColor": "#2A7E35",
"highlightColor": "#2A7E35",
"disabledColor": "#2A7E35",
"borderRadius": "5px"
},
"otherLoginButton": {
"textColor": "#333333",
"title": "更多登录方式",
"normalColor": "#F5F7FA",
"borderRadius": "5px",
"borderColor": "#EAEAEA"
},
"privacyTerms": {
"defaultCheckBoxState": this.isAgreed,
"checkBoxSize": 16,
"uncheckedImage": "static/images/unagree.png",
"checkedImage": "static/images/agree.png",
"privacyItems": [ // 自定义协议条款,最大支持2个,需要同时设置url和title. 否则不生效
{
"url": "https://xxxx",
"title": "用户服务协议" // 协议名称
},
{
"url": "https://xxxx",
"title": "隐私政策" // 协议名称
}
]
},
"buttons": {
"iconWidth": "45px",
"list": this.buttonsList
}
}
}
操作步骤:
univerifyManager.login({
provider: 'univerify',
univerifyStyle: {
"fullScreen": true,
"icon": {
"path": "static/images/logo.png",
"width": "70px",
"height": "70px"
},
"closeIcon": {
"path": "static/images/close.png",
"width": "24px",
"height": "24px"
},
"authButton": {
"normalColor": "#2A7E35",
"highlightColor": "#2A7E35",
"disabledColor": "#2A7E35",
"borderRadius": "5px"
},
"otherLoginButton": {
"textColor": "#333333",
"title": "更多登录方式",
"normalColor": "#F5F7FA",
"borderRadius": "5px",
"borderColor": "#EAEAEA"
},
"privacyTerms": {
"defaultCheckBoxState": this.isAgreed,
"checkBoxSize": 16,
"uncheckedImage": "static/images/unagree.png",
"checkedImage": "static/images/agree.png",
"privacyItems": [
{
"url": "https://xxxx",
"title": "用户服务协议" // 协议名称
},
{
"url": "https://xxxx",
"title": "隐私政策" // 协议名称
}
]
},
"buttons": {
"iconWidth": "45px",
"list": this.buttonsList
}
}
},
修改checkBoxSize值
预期结果:
uncheckedImage和checkedImage 根据checkBoxSize修改的值大小而变动,未勾选协议,有提示,登录有loading
## 实际结果:
只是间距变动,大小未变动,不toast提示勾选协议,没有loading
bug描述:
【报Bug】ios一键登录隐私协议的uncheckedImage,checkedImage 无法通过checkBoxSize修改,如果未勾选协议,点击登录按钮不提示勾选协议,勾选协议后登录没有loading
更多关于ios一键登录隐私协议的uncheckedImage checkedImage 无法通过checkBoxSize修改 uni-app的实战教程也可以访问 https://www.itying.com/category-93-b0.html
@DCloud_iOS_XHY 官方大大求救
更多关于ios一键登录隐私协议的uncheckedImage checkedImage 无法通过checkBoxSize修改 uni-app的实战教程也可以访问 https://www.itying.com/category-93-b0.html
@DCloud_iOS_WZT 官方大大,帮忙看看,loading也没有了,提示同意协议也没有了

