From ab8dbe898148fb2a8e558f4835be8f8490f7adaf Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Thu, 28 Aug 2025 18:01:59 +0800
Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E5=AF=8C=E6=96=87=E6=9C=AC?=
=?UTF-8?q?=E5=9B=BE=E5=83=8F=E5=A4=A7=E5=B0=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/future/future.vue | 46 ++++++++++++++++++++++++++++++-----------
1 file changed, 34 insertions(+), 12 deletions(-)
diff --git a/pages/future/future.vue b/pages/future/future.vue
index 890ce33..b47aae0 100644
--- a/pages/future/future.vue
+++ b/pages/future/future.vue
@@ -14,7 +14,10 @@
用善意,筑就明天的模样
{{ projectDetails.proProfile }}
项目介绍
-
+
项目筹款情况
@@ -166,18 +169,10 @@ export default {
icon: "none",
});
}
-
// 处理项目进度数据
if (scheduleResponse?.code === 200) {
- // 注意:这里应该是合并数据还是替换数据?
- // 方案1:直接赋值(如果只需要进度数据)
- this.scheduleData = scheduleResponse.rows;
-
- // 方案2:合并到projectDetails(如果需要合并)
- // this.projectDetails = {
- // ...this.projectDetails,
- // schedule: scheduleResponse.rows
- // };
+ console.log("123:", scheduleResponse.rows);
+ this.listData = scheduleResponse.rows;
} else {
console.warn("获取项目进度失败:", scheduleResponse?.message);
uni.showToast({
@@ -199,6 +194,17 @@ export default {
this.loading = false;
}
},
+ formatRichText(html) {
+ if (!html) return "";
+
+ // 为图片添加最大宽度限制
+ const formattedHtml = html.replace(
+ /
]*)>/gi,
+ '
',
+ );
+
+ return formattedHtml;
+ },
},
};
@@ -391,7 +397,7 @@ export default {
.new-develop-container {
width: 708rpx;
- height: 586rpx;
+
background: #fffbf5;
border-radius: 20rpx 20rpx 20rpx 20rpx;
border: 2rpx solid #c7a26d;
@@ -514,4 +520,20 @@ button {
color: #fff;
}
+
+.rich-text-content {
+ /* 全局限制富文本内容宽度 */
+ img {
+ max-width: 100% !important;
+ height: auto !important;
+ display: block;
+ margin: 10rpx auto;
+ }
+
+ /* 其他富文本样式 */
+ p {
+ margin-bottom: 20rpx;
+ line-height: 1.6;
+ }
+}