瀏覽代碼

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

htc 1 天之前
父節點
當前提交
ede8e53456
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      pagesHome/activityDetail.vue

+ 10 - 2
pagesHome/activityDetail.vue

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