收藏
回答

createUserInfoButton在iOS下无法显示图片Android可以

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小游戏 Bug wx.createUserInfoButton 客户端 6.7.4 2.0.0

- 当前 Bug 的表现

相同的代码

button = wx.createUserInfoButton({
    type: 'image',
    image: '/wxlocal/start.png',
    style: {
        left: (sysInfo.screenWidth - btn_width) / 2,
        top: (sysInfo.screenHeight - btn_height) / 2 + (sysInfo.screenHeight / 4),
        width: btn_width,
        height: btn_height
    }
});


在Android上可以显示授权按钮,iOS上不行,尝试多台手机验证都是如此。


基础库的版本也是不正确的


回答关注问题邀请回答
收藏

1 个回答

  • 2019-01-04

    在iOS下不显示 图片,但相应位置点击操作有响应,能弹出微信授权窗口。

    图片尝试了png和jpg都无法显示


    已经修复

    image的路径改为:

    button = wx.createUserInfoButton({

        type: 'image',

        image: 'wxlocal/start.png',

        style: {

            left: (sysInfo.screenWidth - btn_width) / 2,

            top: (sysInfo.screenHeight - btn_height) / 2 + (sysInfo.screenHeight / 4),

            width: btn_width,

            height: btn_height

        }

    });

    就好

    2019-01-04
    有用
    回复
登录 后发表内容