From 6bb32b020f22f41857adecf19a6c5c3306b19802 Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Tue, 10 Sep 2024 16:35:24 +0800
Subject: [PATCH 1/3] =?UTF-8?q?1.diy----=20=E6=96=87=E7=AB=A0=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/article-list.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/diy/article-list.vue b/components/diy/article-list.vue
index 4be09a21..b4169fc2 100644
--- a/components/diy/article-list.vue
+++ b/components/diy/article-list.vue
@@ -17,9 +17,9 @@
{{ field_show.includes('0') ? item.data.add_time : '' }}
-
+
- {{ item.data.access_count ? item.data.access_count : '16' }}
+ {{ item.data.access_count ? item.data.access_count : '' }}
@@ -41,7 +41,7 @@
{{ field_show.includes('0') ? item.data.add_time : '' }}
-
+
{{ item.data.access_count ? item.data.access_count : '16' }}
@@ -62,7 +62,7 @@
props: {
value: {
type: Object,
- default: () => ({}),
+ default: () => {},
},
isCommonStyle: {
type: Boolean,
From 4104e2bc7f3439ec2cd77ff760e7b9aa6cbad39e Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Tue, 10 Sep 2024 16:39:36 +0800
Subject: [PATCH 2/3] =?UTF-8?q?1.diy----=20=E6=96=87=E7=AB=A0=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/diy.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/diy/diy.vue b/components/diy/diy.vue
index e819fd48..bb18bbb7 100644
--- a/components/diy/diy.vue
+++ b/components/diy/diy.vue
@@ -1,5 +1,5 @@
-
+
@@ -54,7 +54,7 @@
componentFloatWindow,
componentTextTitle,
componentAuxiliaryBlank,
- componentCarousel
+ componentCarousel,
},
data() {
return {
From 3ff7d082c902557594c2b7aa5ace08ed5bb8251e Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Tue, 10 Sep 2024 17:54:16 +0800
Subject: [PATCH 3/3] =?UTF-8?q?1.diy----=20=E6=96=87=E7=AB=A0=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/css/page.css | 24 ++++++++++++++++++++++++
components/diy/article-list.vue | 33 +++++++++++++++++----------------
2 files changed, 41 insertions(+), 16 deletions(-)
diff --git a/common/css/page.css b/common/css/page.css
index 51f60605..5031e400 100644
--- a/common/css/page.css
+++ b/common/css/page.css
@@ -904,6 +904,30 @@ button[disabled].bg-grey {
font-size: 28rpx;
white-space: initial;
}
+.text-line-1 {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 1;
+ /* 添加标准属性以增加兼容性 */
+ line-clamp: 1;
+ -webkit-box-orient: vertical;
+ word-break: break-word;
+ overflow-wrap: break-word;
+ word-wrap: break-word;
+}
+.text-line-2 {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ /* 添加标准属性以增加兼容性 */
+ line-clamp: 2;
+ -webkit-box-orient: vertical;
+ word-break: break-word;
+ overflow-wrap: break-word;
+ word-wrap: break-word;
+}
/**
* 文字超出部分换行
*/
diff --git a/components/diy/article-list.vue b/components/diy/article-list.vue
index b4169fc2..a27fa85c 100644
--- a/components/diy/article-list.vue
+++ b/components/diy/article-list.vue
@@ -1,20 +1,20 @@
-
+
-
+
-
+
-
+
{{ item.new_title ? item.new_title : item.data.title }}
-
+
{{ field_show.includes('0') ? item.data.add_time : '' }}
@@ -29,21 +29,21 @@
-
+
-
+
-
+
{{ item.new_title ? item.new_title : item.data.title }}
-
+
{{ field_show.includes('0') ? item.data.add_time : '' }}
- {{ item.data.access_count ? item.data.access_count : '16' }}
+ {{ item.data.access_count ? item.data.access_count : '' }}
@@ -229,18 +229,19 @@