소스 검색

feat: 优化Tab、Footer样式、逻辑

zhangyuhan 1 년 전
부모
커밋
cfbe92b515

+ 3 - 0
apps/bigmember_pc/src/views/article-content/components/FooterAd.vue

@@ -82,6 +82,9 @@ const props = defineProps({
     padding: 20px;
     color: #fff;
     cursor: pointer;
+    .icon-close {
+      display: inline-block;
+    }
   }
 }
 </style>

+ 1 - 8
apps/bigmember_pc/src/views/article-content/pages/Article.vue

@@ -64,13 +64,6 @@ const tabContentState = ref({
   客户推荐: true
 })
 
-const canShowModule = computed(() => {
-  const result =
-    ContentExpandsModel.value.recommendProjects.total > 0 ||
-    ContentExpandsModel.value.recommendBuyers.total > 0 ||
-    ContentExpandsModel.value.recommendWinners.total > 0
-  return result
-})
 const tabContentShow = computed(() => {
   const computedState = {
     商机推荐:
@@ -88,7 +81,7 @@ const tabContentShow = computed(() => {
 })
 const tabContentHeaderList = computed(() => {
   return contentTabs.filter((v) => {
-    return tabContentState.value[v.label]
+    return tabContentShow.value[v.label]
   })
 })