diff --git a/weapp/package/inspectionInput/inspectionInput.js b/weapp/package/inspectionInput/inspectionInput.js index d9cdb69..8b377f9 100644 --- a/weapp/package/inspectionInput/inspectionInput.js +++ b/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 }) },