From e5ba12c6f87a3bb5cf780689c6970800bf84c334 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 17 Sep 2025 09:49:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TextTip/index.vue | 329 ++++++++++++++++++ .../components/case-container.vue | 34 +- .../productCenter/product-case-list.vue | 8 +- .../productCenter/product-detail.vue | 218 +----------- 4 files changed, 361 insertions(+), 228 deletions(-) create mode 100644 src/components/TextTip/index.vue diff --git a/src/components/TextTip/index.vue b/src/components/TextTip/index.vue new file mode 100644 index 0000000..7f1d42f --- /dev/null +++ b/src/components/TextTip/index.vue @@ -0,0 +1,329 @@ + + + + + diff --git a/src/views/publicService/productCenter/components/case-container.vue b/src/views/publicService/productCenter/components/case-container.vue index 968fbb6..fd06af8 100644 --- a/src/views/publicService/productCenter/components/case-container.vue +++ b/src/views/publicService/productCenter/components/case-container.vue @@ -40,7 +40,11 @@

{{ item.caseCompany }}

-
{{ item.caseIntroduction }}
+ +
@@ -65,8 +69,12 @@ @@ -1013,105 +898,10 @@ export default { background-color: #ccc !important; } } - - .product-info-content { - font-size: 14px; - font-family: 'PingFang SC', sans-serif; - letter-spacing: 1px; - line-height: 1.8; - cursor: pointer; - transition: all 0.3s ease; - - display: -webkit-box; /* 将元素作为弹性伸缩盒子模型显示 */ - -webkit-box-orient: vertical; /* 设置伸缩盒子的子元素排列方式为垂直排列 */ - -webkit-line-clamp: 4; /* 限制显示的行数为4行 */ - overflow: hidden; /* 超出部分隐藏 */ - - &:hover { - background-color: rgba(74, 144, 226, 0.05); - border-radius: 4px; - padding: 4px; - margin: -4px; - } - } } .preview-docs { // width: 100%; height: 79vh; } - -/* 悬浮提示样式 */ -.tooltip { - position: fixed; - z-index: 9999; - max-width: 500px; - min-width: 200px; - animation: tooltipFadeIn 0.3s ease-out; - pointer-events: auto; /* 确保可以接收鼠标事件 */ - right: 0; - top: 0; -} - -.tooltip-content { - background: rgba(0, 0, 0, 0.9); - color: white; - padding: 16px 20px; - border-radius: 12px; - font-size: 14px; - line-height: 1.8; - font-family: 'PingFang SC', sans-serif; - letter-spacing: 0.5px; - box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); - backdrop-filter: blur(10px); - border: 1px solid rgba(255, 255, 255, 0.15); - word-wrap: break-word; - white-space: pre-wrap; - max-height: 300px; - overflow-y: auto; - /* 自定义滚动条样式 */ - scrollbar-width: thin; - scrollbar-color: rgba(255, 255, 255, 0.3) transparent; -} - -/* Webkit 浏览器滚动条样式 */ -.tooltip-content::-webkit-scrollbar { - width: 6px; -} - -.tooltip-content::-webkit-scrollbar-track { - background: transparent; -} - -.tooltip-content::-webkit-scrollbar-thumb { - background: rgba(255, 255, 255, 0.3); - border-radius: 3px; -} - -.tooltip-content::-webkit-scrollbar-thumb:hover { - background: rgba(255, 255, 255, 0.5); -} - -.tooltip-arrow { - position: absolute; - top: 100%; - left: 20px; - width: 0; - height: 0; - border-left: 10px solid transparent; - border-right: 10px solid transparent; - border-top: 10px solid rgba(0, 0, 0, 0.9); - filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); -} - -@keyframes tooltipFadeIn { - from { - opacity: 0; - transform: translateY(5px); - } - to { - opacity: 1; - transform: translateY(0); - } -}