BUG修改
This commit is contained in:
parent
b99ec35e90
commit
dc1b55de29
|
@ -8,7 +8,7 @@
|
||||||
class="algorithm-card"
|
class="algorithm-card"
|
||||||
>
|
>
|
||||||
<a-image
|
<a-image
|
||||||
:src="algorithmCardPhoto(item.infoList)"
|
:src="algorithmCardPhoto(item.infoList, item)"
|
||||||
:width="525"
|
:width="525"
|
||||||
:height="275"
|
:height="275"
|
||||||
:fallback="imgSrc"
|
:fallback="imgSrc"
|
||||||
|
@ -55,9 +55,15 @@
|
||||||
}
|
}
|
||||||
pageWithAttrsFunction()
|
pageWithAttrsFunction()
|
||||||
//图片显示
|
//图片显示
|
||||||
const algorithmCardPhoto = (List) => {
|
const algorithmCardPhoto = (List, item) => {
|
||||||
let obj = List.filter((item) => item.attrType === '应用场景')[0]
|
let obj = List.filter((item) => item.attrType === '应用场景')[0]
|
||||||
if (obj && obj.attrValue != '') {
|
if (obj && obj.attrValue != '') {
|
||||||
|
console.log(
|
||||||
|
item.name,
|
||||||
|
item.id,
|
||||||
|
obj.attrValue,
|
||||||
|
'----------------------------'
|
||||||
|
)
|
||||||
obj = JSON.parse(obj.attrValue)[0].img
|
obj = JSON.parse(obj.attrValue)[0].img
|
||||||
}
|
}
|
||||||
return obj || ''
|
return obj || ''
|
||||||
|
|
Loading…
Reference in New Issue