| | |
| | | pages.loading = false |
| | | pages.count = res.totalSize |
| | | courseList.value = res.datas.map((item: any) => { |
| | | if (item.icon) { |
| | | item.icon = getPublicImage(item.icon, '', 140) |
| | | } else if (item.linkProduct?.icon) { |
| | | item.icon = getPublicImage(item.linkProduct.icon, '', 140) |
| | | } else { |
| | | item.icon = defaultImg |
| | | } |
| | | return { |
| | | ...item, |
| | | name: item.name, |
| | | id: item.id, |
| | | icon: item.icon != 'default' ? getPublicImage(item.icon, 80) : defaultImg, |
| | | icon: item.icon, |
| | | introduction: item.description, |
| | | reason: item.applyReturnMsg ? JSON.parse(item.applyReturnMsg).reason : '', |
| | | } |
| | |
| | | flex: 1; |
| | | display: flex; |
| | | .imgBox { |
| | | width: 90px; |
| | | height: 120px; |
| | | width: 110px; |
| | | height: 140px; |
| | | margin-right: 20px; |
| | | box-shadow: 0px 0px 20px 1px #ccc; |
| | | } |
| | | .infoBox { |
| | | flex: 1; |