修改卡片展示逻辑

This commit is contained in:
余菲 2022-11-30 14:48:19 +08:00
parent d33750ba32
commit 44baa42e84
2 changed files with 4 additions and 3 deletions

View File

@ -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)
}
}
})
}

View File

@ -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 => {