wx.createUserInfoButton, ios 11.4.1 调用报错

发布于 8 年前作者 fang2819687 次浏览最后编辑 8 年前来自 ask
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

  • 复现路径

  • 提供一个最简复现 Demo

        let btn_opts = {

            type: ‘image’,

            image:‘xxxx’,

            type: ‘text’,

            text: ‘获取用户信息’,

            style: {

                left: Math.round(opts[‘x’]*w_ratio),

                top: Math.round(opts[‘y’]*h_ratio),

                width: Math.round(opts[‘w’]*w_ratio),

                height:  Math.round(opts[‘h’]*h_ratio),

            }

        };

        let button = this._wx.createUserInfoButton(btn_opts)

1 回复
tgao
tgao1 楼6 年前

你好,请参考以下帖子:

wx.createUserInfoButton接口在某些机型上报错
https://developers.weixin.qq.com/community/develop/doc/00086eb3e48cb8cbb42788f905f400