two-bees

wxml页面:

<image src=\'{{UPLOAD_IMAGES_URL}}{{vv.img_s}}\' data-src="{{vv.img}}" bindtap="previewImage"></image>

js:

/*预览*/
previewImage:function(e){
console.log(\'previewImage\');
var current = e.currentTarget.dataset.src;
var that = this;
var url = [that.data.UPLOAD_IMAGES_URL+current];
wx.previewImage({
current: current, // 当前显示图片的http链接
urls: url // 需要预览的图片http链接列表
})
}

分类:

技术点:

相关文章:

  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2021-11-27
  • 2021-11-19
  • 2021-12-02
  • 2022-01-01
猜你喜欢
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2021-09-22
  • 2021-09-08
  • 2021-12-26
相关资源
相似解决方案