From c7efbf8e959e46471e1c4b570057acf6be721ec9 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Thu, 23 Feb 2023 15:04:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=B7=A1=E6=A3=80=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/package/inspectionInput/inspectionInput.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }) },