- 当前 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)
你好,请参考以下帖子: