魅族pro5安卓7.0 wx.chooseImage 接口调用有问题
发布于 6 年前 作者 txia 2848 次浏览 来自 问答

魅族pro5安卓7.0 wx.chooseImage 接口调用,点击相机拍照后,无法更新图片显示到页面,小程序会直接刷新。别的机型操作正常。

直接选择图片然后显示没问题,别的手机型号操作没问题。

index.wxml 代码:

<image src='../../images/camera.svg' class="camera-icon" bindtap="chooseImage"></image>


<image src="{{tempFilePaths}}" mode="aspectFill" class="image-size"></image>


index.js 代码

chooseImage: function(e) {

    var _this = this
    wx.chooseImage({
      count: 1,
      success: function (res) {
        var tempFilePaths = res.tempFilePaths
        _this.setData({
          tempFilePaths: res.tempFilePaths

        })

     }

}


希望官网能及时修复一下这个bug

回到顶部