巷子
巷子
  • 发布:2025-11-20 17:47
  • 更新:2025-12-12 13:15
  • 阅读:232

【报Bug】ios一键登录隐私协议的uncheckedImage,checkedImage 无法通过checkBoxSize修改

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: mac26

HBuilderX类型: 正式

HBuilderX版本号: 4.85

手机系统: iOS

手机系统版本号: iOS 26

手机厂商: 苹果

手机机型: iPhone15pro

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
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": [ // 自定义协议条款,最大支持2个,需要同时设置url和title. 否则不生效
{
"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

2025-11-20 17:47 负责人:DCloud_iOS_WZT 分享
已邀请:
巷子

巷子 (作者)

@DCloud_iOS_XHY 官方大大求救

巷子

巷子 (作者)

@DCloud_iOS_WZT 官方大大,帮忙看看,loading也没有了,提示同意协议也没有了

用户2943632

用户2943632

我的uncheckedImage 和 checkedImage 设置无效

  • 巷子 (作者)

    似乎没人回,要么hb退版本

    2025-12-11 11:11

  • 前端侠

    回复 巷子: 退到什么版本呢

    2025-12-16 15:04

  • 巷子 (作者)

    回复 前端侠: hbx4.76,是可以的,但是有一些ios26无法检测到一键登录,无法使用

    2025-12-16 15:10

  • 前端侠

    回复 巷子: 我回退下看看

    2025-12-16 15:40

  • 巷子 (作者)

    回复 前端侠: 回退后重新打包(基座)

    2025-12-16 15:45

  • 前端侠

    回复 巷子: 可以了谢谢。官方也没技术回复这个问题之后Hbuilder不能升级了这不是

    2025-12-17 09:51

l***@yeah.net

l***@yeah.net

一样的问题

要回复问题请先登录注册