| | |
| | | pages.loading = false |
| | | pages.count = res.totalSize |
| | | courseList.value = res.datas.map((item: any) => { |
| | | if (item.icon) { |
| | | item.icon = getPublicImage(item.icon, 80) |
| | | } else if (item.linkProduct?.icon) { |
| | | item.icon = getPublicImage(item.linkProduct.icon, 80) |
| | | } 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 : '', |
| | | } |