From 1cc54c68c212c31cbd65496b5e08bd9a3fbae299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Tue, 25 Mar 2025 15:44:15 +0800 Subject: [PATCH] =?UTF-8?q?style(MarketItem):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=B8=82=E5=9C=BA=E9=A1=B9=E7=9B=AE=E7=BB=84=E4=BB=B6=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 MarketItem 组件中的标题和描述文本样式 - 优化标题和描述之间的间距 - 调整描述文本的字体大小和颜色 feat(Survey): 改进问卷标题处理和显示 - 在创建问卷时,将富文本标题转换为纯文本保存为项目名称 - 在问卷列表中显示问卷所有者名称,而不是场景名称 --- .../Home/components/Market/components/MarketItem.vue | 10 ++++++++-- src/views/Survey/Index.vue | 2 +- src/views/Survey/views/Create/Index.vue | 5 ++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/Home/components/Market/components/MarketItem.vue b/src/views/Home/components/Market/components/MarketItem.vue index 89d9ddb..d694047 100644 --- a/src/views/Home/components/Market/components/MarketItem.vue +++ b/src/views/Home/components/Market/components/MarketItem.vue @@ -203,9 +203,15 @@ onMounted(() => { background: #979797; opacity: 0.1; } - + div p:first-child { + font-size: 11px; + color: #828282; + //color: #000; + } div p:last-child { - color: #000; + margin-top:13px; + font-size: 13px; + //color: #000; } } } diff --git a/src/views/Survey/Index.vue b/src/views/Survey/Index.vue index 0e7fe13..9b67294 100644 --- a/src/views/Survey/Index.vue +++ b/src/views/Survey/Index.vue @@ -36,7 +36,7 @@ alt="Content Icon" style="width: 15px; height: 15px" /> - {{ item.scene_name }} + {{ item.owner }}
diff --git a/src/views/Survey/views/Create/Index.vue b/src/views/Survey/views/Create/Index.vue index 5111b65..2ce58d4 100644 --- a/src/views/Survey/views/Create/Index.vue +++ b/src/views/Survey/views/Create/Index.vue @@ -462,7 +462,10 @@ const saveTitle = () => { introduction: questionInfo.value.survey.introduction }).then((res) => { if (res.data) { - saveProjectName(route.query.sn, { project_name: questionInfo.value.survey.title }); + + // questionInfo.value.survey.title 富文本转为html获取innertext + let title = questionInfo.value.survey.title.replace(/<[^>]*>/g, ''); + saveProjectName(route.query.sn, { project_name: title }); } }); };