From 74ff8affe5c0b1ef6510fd93dfb0425c22f9f648 Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Thu, 18 Sep 2025 09:19:15 +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
---
.../components/case-container.vue | 58 +++++++++++++++----
.../productCenter/product-case-list.vue | 28 +++++++--
.../productCenter/product-detail.vue | 32 +++++++---
3 files changed, 95 insertions(+), 23 deletions(-)
diff --git a/src/views/publicService/productCenter/components/case-container.vue b/src/views/publicService/productCenter/components/case-container.vue
index 8d86208..623a4c4 100644
--- a/src/views/publicService/productCenter/components/case-container.vue
+++ b/src/views/publicService/productCenter/components/case-container.vue
@@ -41,7 +41,7 @@
{{ item.caseCompany }}
-
-
-
-
+
{{ item.caseIntroduction }}
@@ -44,6 +41,13 @@
+
+ {{ item.caseIntroduction }}
+
@@ -89,7 +93,21 @@ export default {
async getProductCenterDetailInScreenFun(id) {
const res = await getProductCenterDetailAPI({ id })
const { list } = res.data
- this.cardList = list
+ this.cardList = list.map((item) => {
+ return {
+ ...item,
+ isTextOverflow: false,
+ }
+ })
+
+ this.$nextTick(() => {
+ this.cardList.forEach((item) => {
+ item.isTextOverflow =
+ this.$refs[`caseInfoContent-${item.id}`][0]
+ .clientHeight <
+ this.$refs[`caseInfoContent-${item.id}`][0].scrollHeight
+ })
+ })
},
},
}
diff --git a/src/views/publicService/productCenter/product-detail.vue b/src/views/publicService/productCenter/product-detail.vue
index 26d0765..258f0b9 100644
--- a/src/views/publicService/productCenter/product-detail.vue
+++ b/src/views/publicService/productCenter/product-detail.vue
@@ -42,7 +42,15 @@
-