编目添加算法效果图片

This commit is contained in:
a0049873 2022-11-28 17:24:44 +08:00
parent be50b4c5d6
commit ebd71b3015
1 changed files with 16 additions and 1 deletions

View File

@ -72,7 +72,8 @@
(item.type === '组件服务' &&
item.infoList &&
item.infoList.filter((val) => val.attrType == '图层缩略图')[0]) ||
item.infoList.filter((val) => val.attrType == '组件图片')[0]
item.infoList.filter((val) => val.attrType == '组件图片')[0] ||
item.infoList.filter((val) => val.attrType == '算法效果图片')[0]
"
>
<a-image
@ -99,6 +100,18 @@
"
:fallback="item.type == '开发组件' ? imgSrcKfzj : imgSrcYwzj"
/>
<a-image
v-else-if="
item.infoList.filter((val) => val.attrType == '算法效果图片')[0]
"
:width="106"
:preview="false"
:src="
item.infoList.filter((val) => val.attrType == '算法效果图片')[0]
.attrValue
"
:fallback="imgSrcZnsf"
/>
</div>
<div
class="left"
@ -816,6 +829,7 @@
})
const imgSrcYyzy = ref(require('@/assets/home/yyzy_square.png'))
const imgSrcTcfw = ref(require('@/assets/home/tcfw_square.png'))
const imgSrcZnsf = ref(require('@/assets/home/znsf_square.png'))
const imgSrcKfzj = ref(require('@/assets/home/kfzj_square.png'))
const imgSrcYwzj = ref(require('@/assets/home/ywzj_square.png'))
let videoUrl = ref('')
@ -900,6 +914,7 @@
getTagList,
imgSrcYyzy,
imgSrcTcfw,
imgSrcZnsf,
imgSrcKfzj,
imgSrcYwzj,
}