wx.createUserInfoButton, ios 11.4.1 调用报错
发布于 6 年前 作者 fang28 19445 次浏览 来自 问答
  • 当前 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 回复

你好,请参考以下帖子:

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