This commit is contained in:
zhangsir
2024-09-11 20:04:12 +08:00
parent 5d6b2b6532
commit af1b7040ea
5 changed files with 21 additions and 12 deletions

View File

@@ -132,7 +132,7 @@
font-weight: 400;
font-size: 12px;
color: #FFFFFF;
padding: 3px 10px 4px 8px;
padding: 4px 10px;
}
.uavatar{
// border: 1px solid #73adfe;

View File

@@ -441,6 +441,11 @@ export default {
message: '取消成功!'
});
this.getData()
}else{
this.$message({
type: 'error',
message: res.message
});
}
})
}).catch(() => {
@@ -588,7 +593,6 @@ export default {
this.bestValue = true
this.bestId = item.id
this.bestOrg = this.orgDomainTranslate(item.orgDomainParent)
console.log(item.orgDomainParent,'item.orgDomainParent')
this.bestYear = item.sysCreateTime.split('-')[0]
},
//添加推荐

View File

@@ -103,7 +103,7 @@ import portalHeader from '@/components/PortalHeader.vue'
},
methods: {
getPopularity() {
apiCase.queryPraisesNew(10,this.popularityName == '季度' ? 1 : 2).then(res => {
apiCase.queryPraisesNew(10,this.popularityName == '季度' ? 3 : 4).then(res => {
if(res.status == 200) {
this.Popularity = res.result
}

View File

@@ -44,12 +44,17 @@
<div class="case-tittext">
<span class="title-line-ellipsis" v-html="item.title"></span>
</div>
<!-- <div class="case-activeText" @click.stop="toExcellent(item)">
<span v-if="item.breCommend" class="comWords"
<div class="case-activeText" @click.stop="toExcellent(item)">
<!-- <span v-if="item.breCommend" class="comWords"
style="background-color:rgba(232, 139, 72);"></span>
<span v-if="item.excellent" class="comWords" style="background-color:red;">最佳</span>
<span class="comWords" style="background-color:orange">2024年度最佳</span>
</div> -->
<span v-if="item.excellent" class="comWords" style="background-color:red;">最佳</span> -->
<span v-if="item.excellentTag" class="comWords" style="width: 98px;height: 24px;background: #F99000;border-radius: 2px;font-weight: 400;font-size: 12px;color: #FFFFFF;padding: 4px 10px;">
{{item.excellentTag}}
</span>
<span v-if="item.viewRankTags.length != 0" v-for="tag in item.viewRankTags" class="comWords" style="width: 98px;height: 24px;background: #F99000;border-radius: 2px;font-weight: 400;font-size: 12px;color: #FFFFFF;padding: 4px 10px;">
{{tag.tagName}}
</span>
</div>
<div class="case-info-date portal-time">
<i class="el-icon-time"></i>
<time-show :time="item.sysCreateTime"></time-show>
@@ -59,7 +64,7 @@
</div>
<div style="height:58px;padding-top:14px ">
<author :avatar="item.authorInfo.avatar" :name="item.authorInfo.name" :info="item.authorInfo.orgInfo"
:sex="item.authorInfo.sex" :aid="item.authorInfo.aid">
:sex="item.authorInfo.sex" :authorTags="item.authorTags" :aid="item.authorInfo.aid">
<template>
<div v-if="item.breCommend"
style="padding-top: 6px;flex: 1;display: flex;justify-content: flex-end;color: #999;font-size: 12px;">

View File

@@ -207,10 +207,10 @@
<!-- <span v-if="item.breCommend" class="comWords"
style="background-color:rgba(232, 139, 72);"></span>
<span v-if="item.excellent" class="comWords" style="background-color:red;">最佳</span> -->
<span v-if="item.excellentTag" class="comWords" style="width: 98px;height: 24px;background: #F99000;border-radius: 2px;font-weight: 400;font-size: 12px;color: #FFFFFF;padding: 3px 12px 4px 9px;">
<span v-if="item.excellentTag" class="comWords" style="width: 98px;height: 24px;background: #F99000;border-radius: 2px;font-weight: 400;font-size: 12px;color: #FFFFFF;padding: 4px 10px;">
{{item.excellentTag}}
</span>
<span @click.stop="toExcellent(tag)" v-if="item.viewRankTags.length != 0" v-for="tag in item.viewRankTags" class="comWords" style="width: 98px;height: 24px;background: #F99000;border-radius: 2px;font-weight: 400;font-size: 12px;color: #FFFFFF;padding: 3px 12px 4px 9px;">
<span @click.stop="toExcellent(tag)" v-if="item.viewRankTags.length != 0" v-for="tag in item.viewRankTags" class="comWords" style="width: 98px;height: 24px;background: #F99000;border-radius: 2px;font-weight: 400;font-size: 12px;color: #FFFFFF;padding: 4px 10px;">
{{tag.tagName}}
</span>
</div>
@@ -1789,7 +1789,7 @@ export default {
// }
// });
apiCase.queryPraisesNew(3,this.popularityName == '季度' ? 1 : 2).then(res => {
apiCase.queryPraisesNew(3,this.popularityName == '季度' ? 3 : 4).then(res => {
if(res.status == 200) {
this.Popularity = res.result
}