能力集市 新增点击任意地方跳转详情

This commit is contained in:
a0049873 2022-08-12 14:19:53 +08:00
parent bc55f39d38
commit f78f2f1292
1 changed files with 21 additions and 40 deletions

View File

@ -118,6 +118,7 @@
? 'ywzj' ? 'ywzj'
: '' : ''
" "
@click="toView('details', item)"
v-else-if=" v-else-if="
selectCardsname !== '基础设施' && selectCardsname !== '基础设施' &&
selectCardsname !== '融合服务' && selectCardsname !== '融合服务' &&
@ -131,7 +132,7 @@
selectCardsname === '融合服务' || selectCardsname === '赋能场景' selectCardsname === '融合服务' || selectCardsname === '赋能场景'
" "
></div> ></div>
<div class="right"> <div class="right" @click="toView('details', item)">
<div class="header"> <div class="header">
<span style="display: flex; align-items: center; width: 680px"> <span style="display: flex; align-items: center; width: 680px">
{{ item.name }} {{ item.name }}
@ -237,24 +238,10 @@
<span>{{ item.createDate.substring(11, 19) }}</span> <span>{{ item.createDate.substring(11, 19) }}</span>
</template> </template>
<template v-else>--</template> <template v-else>--</template>
<!-- <span>{{ item.createDate || '--' }}</span> -->
</div> </div>
<!-- <div>
更新时间
<span>{{ item.updateDate || '--' }}</span> -->
<!-- </div> -->
</div> </div>
</div> </div>
<div class="dec"> <div class="dec">
<!-- <div
v-if="
selectCardsname !== '基础设施' &&
selectCardsname !== '数据资源' &&
selectCardsname !== '融合服务'
"
>
<span>{{ item.shareType || '--' }}</span>
</div> -->
<div <div
v-if=" v-if="
selectCardsname !== '融合服务' && selectCardsname !== '融合服务' &&
@ -310,18 +297,8 @@
收藏量{{ item.collectCount || 0 }} 收藏量{{ item.collectCount || 0 }}
</div> </div>
</div> </div>
<!-- <div class="pingfen">
<a-tooltip placement="top" mouseEnterDelay="1">
<a-rate
:value="item.score || 0"
disabled
v-if="item.score != 0"
/>
</a-tooltip>
</div> -->
</div> </div>
<div class="right" v-if="selectCardsname !== '基础设施'"> <div class="right" v-if="selectCardsname !== '基础设施'">
<!-- 申购车 -->
<div class="shopping" :key="shoppingKey"> <div class="shopping" :key="shoppingKey">
<template <template
v-if=" v-if="
@ -339,7 +316,7 @@
<span <span
class="shopping-on" class="shopping-on"
v-else v-else
@click="addShoppingCart(item, index)" @click.stop="addShoppingCart(item, index)"
></span> ></span>
</template> </template>
</div> </div>
@ -347,12 +324,12 @@
<span <span
class="sc-down" class="sc-down"
v-if="item.isCollect == 'false'" v-if="item.isCollect == 'false'"
@click="addCollect(item)" @click.stop="addCollect(item)"
></span> ></span>
<span <span
class="sc-on" class="sc-on"
v-if="item.isCollect == 'true'" v-if="item.isCollect == 'true'"
@click="addCollect(item)" @click.stop="addCollect(item)"
></span> ></span>
</div> </div>
<div <div
@ -362,11 +339,14 @@
cardType == '组件服务' && findComponentName(item, '智能算法') cardType == '组件服务' && findComponentName(item, '智能算法')
" "
> >
<span class="pk-on" @click="goComparePk(item, index)"></span> <span
class="pk-on"
@click.stop="goComparePk(item, index)"
></span>
</div> </div>
<a-button <a-button
type="primary" type="primary"
@click="toView('details', item)" @click.stop="toView('details', item)"
v-if="!whoShow1.itShowBaoTou" v-if="!whoShow1.itShowBaoTou"
> >
查看详情 查看详情
@ -377,21 +357,13 @@
selectCardsname === '融合服务' || selectCardsname === '融合服务' ||
selectCardsname === '赋能场景' selectCardsname === '赋能场景'
" "
@click="handleAKeyApplication(item)" @click.stop="handleAKeyApplication(item)"
> >
一键申请 一键申请
</a-button> </a-button>
<!-- <a-button
style="margin-left: 10px"
v-show="
cardType == '组件服务' && findComponentName(item, '智能算法')
"
>
免费试用
</a-button> -->
<a-button <a-button
type="primary" type="primary"
@click="toView('apply', item)" @click.stop="toView('apply', item)"
v-show=" v-show="
cardType == '组件服务' || cardType == '组件服务' ||
(cardType == '应用资源' && whoShow1.itShowQingDao) (cardType == '应用资源' && whoShow1.itShowQingDao)
@ -660,6 +632,15 @@
if (webUrl) { if (webUrl) {
window.open(webUrl) window.open(webUrl)
} else { } else {
if (
!(
props.selectCardsname === '应用资源' ||
props.selectCardsname === '组件服务'
) ||
whoShow1.itShowBaoTou
) {
return
}
// //
console.log('一键申请===================>', item) console.log('一键申请===================>', item)
localStorage.setItem( localStorage.setItem(