Browse Source

修改卡片展示逻辑

master
余菲 1 year ago
parent
commit
44baa42e84
2 changed files with 4 additions and 3 deletions
  1. +4
    -2
      components/ImageInfo/index.js
  2. +0
    -1
      package_A/page/register/index.js

+ 4
- 2
components/ImageInfo/index.js 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)
}
}
})
}

+ 0
- 1
package_A/page/register/index.js 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 => {

Loading…
Cancel
Save