【小程序】【ios】 ios系统中设置image组件设置webp属性时,bindload回调不会触发

发布于 6 年前作者 qiang873823 次浏览最后编辑 6 年前来自 issues

新版微信客户端7.0.7以后,小程序image组件支持webp格式,需要设置webp属性为true。

但是在设置webp属性为true后,bindload回调失效。不设置webp属性时正常触发。

机型:iphone x

系统 ios 12.4.1

微信版本 7.0.8

<image src="{{thumbnail_image}}" class="image" mode="aspectFit" bindload="loadImage"
      catchtap="bindPreviewImage" data-img-idx="{{img_idx}}" webp="{{true}}"></image>

Component({
 
  properties: {
    post: Object
  },
  // ...
  methods: {
    loadImage: function(e) {

      console.log('image loaded'


    }
  }
})

3 回复
huguiying
huguiying1 楼6 年前

你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

yshen
yshen2 楼6 年前

+1

dengjun
dengjun3 楼4 年前

+1