首页收藏

This commit is contained in:
zhaofang
2022-10-22 17:04:47 +08:00
parent e0fcec18f4
commit 0620a3958f
6 changed files with 60 additions and 24 deletions

View File

@@ -37,10 +37,10 @@
<div v-if="favorites" @click="addFavorite()" :style="`min-width: ${nodeWidth};`" class="interact-bar-btn" :class="{cursor:!readonly}">
<el-tooltip effect="light" content="收藏" placement="top" :visible-arrow="false" popper-class="text-tooltip">
<svg-icon v-if="courseExclusive" style="font-size: 14px;margin-right: 0;" :icon-class="isFavorite?'collectedCourse':'collection'"></svg-icon>
<svg-icon v-if="courseExclusive" style="font-size: 32px;margin-right: 0;" :icon-class="isFavorite?'collectedCourse':'collectionCourse'"></svg-icon>
<svg-icon v-else style="font-size: 14px;margin-right: 0;" :icon-class="isFavorite?'collected':'collection'"></svg-icon>
</el-tooltip>
<span class="interact-bar-value"> {{ data.favorites}}</span>
<span v-if="!courseExclusive" class="interact-bar-value"> {{ data.favorites}}</span>
</div>
<div v-if="shares" @click="addShare()" :style="`min-width: ${nodeWidth};`" class="interact-bar-btn" :class="{cursor:!readonly}">
<el-tooltip effect="light" content="分享" placement="top" :visible-arrow="false" popper-class="text-tooltip">
@@ -245,7 +245,7 @@ export default {
content='案例'
}
if(this.type==4){
content='问'
content='问'
}
if(this.type==5){
content='回答'