diff --git a/components/ImageInfo/index.js b/components/ImageInfo/index.js index d92a9c1..afb5d7c 100644 --- a/components/ImageInfo/index.js +++ b/components/ImageInfo/index.js @@ -20,8 +20,10 @@ Component({ } if(list.length > 0) { list.forEach(item=> { - if(item.imageUrl) { - arr.push(item.imageUrl) + if(arr.length < 3) { + if(item.imageUrl) { + arr.push(item.imageUrl) + } } }) } diff --git a/package_A/page/register/index.js b/package_A/page/register/index.js index ab54626..d8b2551 100644 --- a/package_A/page/register/index.js +++ b/package_A/page/register/index.js @@ -185,7 +185,6 @@ Page({ let imageList = healthCodeList let ossForm = this.data.ossForm let temp = [] - console.log('图片列表数据:', imageList); if (imageList.length > 0) { wx.showLoading({title:"上传中",mask:true}) temp = imageList.map(item => {