Explorar o código

解决因异步加载图片导致展开更多内容不全问题;移除首行缩进

htc hai 2 días
pai
achega
ede8e53456
Modificáronse 1 ficheiros con 10 adicións e 2 borrados
  1. 10 2
      pagesHome/activityDetail.vue

+ 10 - 2
pagesHome/activityDetail.vue

@@ -287,7 +287,11 @@
 	
 	
 	const load = () => {
 	const load = () => {
 		nextTick(()=>{
 		nextTick(()=>{
-			proxy.$refs.uReadMore.init();
+			setTimeout(() => {
+				if (proxy.$refs.uReadMore) {
+					proxy.$refs.uReadMore.init();
+				}
+			}, 500); 
 		})
 		})
 	}
 	}
 	
 	
@@ -568,7 +572,6 @@
 		return lines * lineHeight;
 		return lines * lineHeight;
 	}
 	}
 
 
-
 	// --- 海报下方菜单点击事件 ---
 	// --- 海报下方菜单点击事件 ---
 	const handleMenuClick = (type) => {
 	const handleMenuClick = (type) => {
 		switch(type) {
 		switch(type) {
@@ -957,6 +960,11 @@
 		.box2{
 		.box2{
 			&-detail{
 			&-detail{
 				margin-top: 40rpx;
 				margin-top: 40rpx;
+				
+				::v-deep p {
+					text-indent: 0 !important; // 移除首行缩进
+					// margin-bottom: 1em; // 可以按需调整段落间距
+				}
 			}
 			}
 		}
 		}