Browse Source

fix 巡检添加图片预览问题

master
liujiangyong 2 years ago
parent
commit
c7efbf8e95
  1. 5
      weapp/package/inspectionInput/inspectionInput.js

5
weapp/package/inspectionInput/inspectionInput.js

@ -280,11 +280,12 @@ Page({
const index = e.currentTarget.dataset.index;
// 所有图片
const imgs = this.data.inspectContent[e.currentTarget.dataset.item].imgs;
const newImgs = imgs.map(i => this.data.imgUrl + i);
wx.previewImage({
// 当前显示图片
current: imgs[index],
current: newImgs[index],
// 所有图片
urls: imgs
urls: newImgs
})
},

Loading…
Cancel
Save