我们先看官方文档 https://developers.weixin.qq.com/miniprogram/dev/api/media-picture.html#wxpreviewimageobject
在js文件调用次方法
// -------- 点击图片放大 保存 -------
previewImage: function (e) {
var that = this
wx.previewImage({
current: "scene_img",
urls: that.data.caseDetail.people_data.last_image.split(',')
// urls必须是数组 不然会报错
})
},