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 @@
-