cyno1
cyno1
  • 发布:2022-11-01 15:29
  • 更新:2022-11-01 15:29
  • 阅读:131

【报Bug】button组件的@getAuthorize事件在香港支付宝小程序中高版本iphone无反应 ,其他机型正常

分类:uni-app

产品分类: uniapp/小程序/阿里

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 10 19042.1526

HBuilderX类型: 正式

HBuilderX版本号: 3.6.4

第三方开发者工具版本号: 2.0.1078

基础库版本号: 不详

项目创建方式: HBuilderX

示例代码:

<button class="btn"    
                    open-type="getAuthorize"     
                    @getAuthorize="onAlipayAuth"    
                    @error="onAliAuthError"    
                    scope="auth_base">    
                        {{i18n.mp_login}}    
                </button>    

onAlipayAuth (e) {    
                console.log('onAlipayAuth', e)    
                // if (my.getAuthCode) {    
                    uni.showLoading({    
                        title: this.i18n.msg_loading    
                    });    
                    my.getAuthCode({    
                      scopes: ['auth_base'],    
                      success: (res) => {    
                        uni.hideLoading();    
                        console.log(res)    
                        this.loginForAlipay(res.authCode)    
                      },    
                      fail: ({ res }) => {    
                        uni.hideLoading();    
                        uni.showModal({    
                            title: 'getAuthCode fail',    
                            content: JSON.stringify(res),    
                            showCancel: false    
                        })    
                      },    
                    });    
                // } else {    
                //  uni.showModal({    
                //      title: this.i18n.msg_fail_title,    
                //      content: this.i18n.msg_fail_alilogin,    
                //      showCancel: false    
                //  })    
                // }    
            }```

操作步骤:

使用高版本ios系统打开香港支付宝小程序,授权登录无反应,但在iPhone6、7以及安卓等手机上正常

预期结果:

所有机型都能授权登录

实际结果:

使用高版本ios系统授权登录无反应,不确定是否还有其他机型不正常,但在iPhone6、7以及安卓等手机上正常

bug描述:

使用button按钮的@getAuthorize事件在香港支付宝小程序中使用iphone10授权无反应,但在iPhone6、7以及安卓等手机上有用,以下是相关代码以及测试二维码:

2022-11-01 15:29 负责人:无 分享
已邀请:

要回复问题请先登录注册