样式调整

This commit is contained in:
670788339
2025-11-04 15:26:21 +08:00
parent f88a3a0b53
commit 7be0bdee6c

View File

@@ -284,7 +284,7 @@
<!-- 内容导航 -->
<div class="topNav" v-if="!newData">
<div class="search-div nav" style="height: 100px;flex: 1;">
<div @click="handleTypeAllClick(1)" class="option-item" style="font-weight: bold" :class="{ 'option-active': ctypeTagAll }">
<div @click="handleTypeAllClick(1)" class="option-item" style="font-weight: bold;padding-right: 15px" :class="{ 'option-active': ctypeTagAll }">
<a>全部</a>
<span :class="ctypeTagAll ? 'nav-bottbor' : ''"></span>
</div>
@@ -398,6 +398,7 @@
:key="tagIndex"
size="mini"
type="info" style="margin: 2px 2px; border-radius: 2px;"
:style="{ fontWeight: isTagMatched(tag) ? 'bold' : 'normal' }"
>
{{ tag }}
</el-tag>
@@ -846,6 +847,14 @@ export default {
// window.removeEventListener("scroll", this.handleScroll);
},
methods: {
isTagMatched(tag) {
// 检查stagList中是否有匹配的标签
return this.stagList.some(searchTag =>
searchTag.tagName === tag || searchTag.name === tag
);
},
// 添加清除热点标签选中的方法
handleClearHotTags() {
// 清除所有热点标签的选中状态
@@ -1076,7 +1085,7 @@ handleClearTags() {
// 强制触发stagList重新计算
this.$nextTick(() => {
this.searchData();
// this.searchData();
});
},
//三级分类