From d6e87d3c7e283971058de557f2b1e5acf639037d Mon Sep 17 00:00:00 2001 From: syddl0 <137189866+shroqkf@users.noreply.github.com> Date: Fri, 9 May 2025 15:43:19 +0900 Subject: [PATCH 1/9] =?UTF-8?q?Design:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=EC=95=8C=EB=A6=BC=20=EB=AA=A8=EB=8B=AC=20=EC=95=84=EC=9D=B4?= =?UTF-8?q?=EC=BD=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/svgs/support/consumer/Ic_Alert.svg | 9 ++++ src/pages/support/SupportPage.jsx | 2 +- .../support/components/HaveToLoginModal.jsx | 54 +++++++++++++++++++ 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 public/svgs/support/consumer/Ic_Alert.svg create mode 100644 src/pages/support/components/HaveToLoginModal.jsx diff --git a/public/svgs/support/consumer/Ic_Alert.svg b/public/svgs/support/consumer/Ic_Alert.svg new file mode 100644 index 0000000..e8dfb3b --- /dev/null +++ b/public/svgs/support/consumer/Ic_Alert.svg @@ -0,0 +1,9 @@ + diff --git a/src/pages/support/SupportPage.jsx b/src/pages/support/SupportPage.jsx index 872524b..5b83f60 100644 --- a/src/pages/support/SupportPage.jsx +++ b/src/pages/support/SupportPage.jsx @@ -2,8 +2,8 @@ import { useEffect, useState } from "react"; import { useSearchParams } from "react-router-dom"; import CompanyTab from "@/pages/support/components/CompanyTab"; import ConsumerTab from "@/pages/support/components/ConsumerTab"; -import HaveToLoginModal from "@components/common/HaveToLoginModal"; import { getMyProfile } from "@apis/member/auth"; +import HaveToLoginModal from "./components/HaveToLoginModal"; const SupportPage = () => { const [searchParams, setSearchParams] = useSearchParams(); diff --git a/src/pages/support/components/HaveToLoginModal.jsx b/src/pages/support/components/HaveToLoginModal.jsx new file mode 100644 index 0000000..83089fb --- /dev/null +++ b/src/pages/support/components/HaveToLoginModal.jsx @@ -0,0 +1,54 @@ +import { useNavigate } from "react-router-dom"; + +const HaveToLoginModal = ({ + message, + subMessage, + onClose, + showButton = true, + showClose = true, +}) => { + const navigate = useNavigate(); + + const handleLogin = () => { + onClose(); + navigate("/auth"); + }; + + return ( +
{message}
+ {subMessage &&{subMessage}
} + + {showButton && ( + + )} +{message}
diff --git a/src/pages/support/constants/consumerMap.js b/src/pages/support/constants/consumerMap.js index b92a8b4..f4348c7 100644 --- a/src/pages/support/constants/consumerMap.js +++ b/src/pages/support/constants/consumerMap.js @@ -12,7 +12,7 @@ export const SPEECH_BUBBLE_MAP = { 사회서비스제공형: "돌봄과 배려가 필요한 곳에,\n당신의 소비가 닿았어요.", 혼합형: "다양한 사회문제를 동시에 돕는\n멋진 소비를 하셨네요!", "기타(창의ㆍ혁신)형": "사회에 선한 영향을 준\n당신의 소비, 함께 기억할게요.", - 예비: "예비 사회적 기업에\n 선한 영향을 준\n 당신의 소비, 함께 기억할게요.", + 예비형: "예비 사회적 기업에\n 선한 영향을 준\n 당신의 소비, 함께 기억할게요.", }; export const KOR_TO_ENUM_MAP = { @@ -21,7 +21,7 @@ export const KOR_TO_ENUM_MAP = { 혼합형: "MIXED", "기타(창의ㆍ혁신)형": "ETC", 지역사회공헌형: "COMPANY_CONTRIBUTION", - 예비: "PRE", + 예비형: "PRE", }; export const ENUM_TO_KOR_MAP = { @@ -30,5 +30,5 @@ export const ENUM_TO_KOR_MAP = { MIXED: "혼합형", ETC: "기타(창의ㆍ혁신)형", COMPANY_CONTRIBUTION: "지역사회공헌형", - PRE: "예비", + PRE: "예비형", }; From 6cf2ca412783e07d457e535499cd7bd61025508e Mon Sep 17 00:00:00 2001 From: syddl0 <137189866+shroqkf@users.noreply.github.com> Date: Fri, 9 May 2025 16:11:25 +0900 Subject: [PATCH 3/9] =?UTF-8?q?Feat:=20=EA=B8=88=EC=9C=B5=EC=83=81?= =?UTF-8?q?=ED=92=88=20=EC=B6=94=EC=B2=9C=20=EA=B8=B0=EB=8A=A5=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../support/FinancialProductDetailPage.jsx | 20 ++++++++++++++----- .../support/FinancialProductListPage.jsx | 2 ++ src/pages/support/components/ConsumerTab.jsx | 20 ++++++++++++++++--- .../support/components/ConsumptionChart.jsx | 8 ++++++-- .../support/components/RecommendationCard.jsx | 19 +++++++++++++----- 5 files changed, 54 insertions(+), 15 deletions(-) diff --git a/src/pages/support/FinancialProductDetailPage.jsx b/src/pages/support/FinancialProductDetailPage.jsx index d7dc829..8897655 100644 --- a/src/pages/support/FinancialProductDetailPage.jsx +++ b/src/pages/support/FinancialProductDetailPage.jsx @@ -60,11 +60,21 @@ const FinancialProductDetailPage = () => {{data.productName}
diff --git a/src/pages/support/FinancialProductListPage.jsx b/src/pages/support/FinancialProductListPage.jsx index 1af984b..0f4dca6 100644 --- a/src/pages/support/FinancialProductListPage.jsx +++ b/src/pages/support/FinancialProductListPage.jsx @@ -39,6 +39,8 @@ const FinancialProductList = () => { showDescription={false} productType={item.productType} benefit={item.benefit} + recommendedCategory={item.recommendedCategory} + defaultCategory={item.defaultCategory} /> ))}데이터를 불러오지 못했습니다.
; @@ -25,8 +38,6 @@ const ConsumerTab = () => { value: item.totalPrice, })) || []; - const safeProducts = Array.isArray(consumerProducts) ? consumerProducts : []; - return (총 {safeProducts.length}개
데이터를 불러오지 못했습니다.
}총 {safeProducts.length}개
+리뷰 건수가 많은 순으로 정렬되어 있습니다.
총 {safeProducts.length}개
-리뷰 건수가 많은 순으로 정렬되어 있습니다.
++ {userName}님이 리뷰를 남긴 기업 특성과 연관된 금융상품 순으로 + 보여드려요! +
+ {RECOMMEND_MESSAGE_MAP[ENUM_TO_KOR_MAP[topCategory]]} +
+소비한 가치에 맞는 금융상품
+소비한 가치에 맞는 금융상품
총 {safeProducts.length}개
-- {userName}님이 리뷰를 남긴 기업 특성과 연관된 금융상품 순으로 - 보여드려요! +
+ 총 {safeProducts.length}개 +
+
+ {userName}님이 리뷰를 남긴 기업 특성과
+
연관된 금융상품 순으로 보여드려요!
전체 보기
+전체 보기
+
가까운 사회적 기업을 추천해드릴게요.
@@ -62,7 +62,7 @@ const LocationStep = ({ onNext, onBack }) => { } py-2`} > {!checked && ( - + 서울특별시 )} @@ -75,7 +75,7 @@ const LocationStep = ({ onNext, onBack }) => { value={location} onChange={handleChange} readOnly={checked} - className={`flex-1 bg-transparent text-h2 font-semibold focus:outline-none placeholder-gray-6 ${ + className={`flex-1 bg-transparent h2 focus:outline-none placeholder-gray-6 ${ checked ? "bg-gray-6 cursor-not-allowed" : "" }`} /> @@ -92,7 +92,7 @@ const LocationStep = ({ onNext, onBack }) => {+
현재는 서울에 한해 사회적 기업들을 소개하고 있습니다.
)} @@ -106,7 +106,7 @@ const LocationStep = ({ onNext, onBack }) => { ) : (투명한 리뷰에 사용됩니다.
+투명한 리뷰에 사용됩니다.
+
우리 동네 사회적기업 찾아보기
-+
사회적기업은, 판매 수익을 사회문제 해결이나 {"\n"}이웃 돕기에 쓰는 특별한 기업들이에요. {"\n"}우리 동네 사회적기업을 찾아보고, 함께 참여해보세요! diff --git a/src/pages/map/components/PlaceContent.jsx b/src/pages/map/components/PlaceContent.jsx index fbf057e..8fd00ea 100644 --- a/src/pages/map/components/PlaceContent.jsx +++ b/src/pages/map/components/PlaceContent.jsx @@ -70,21 +70,21 @@ const PlaceContent = ({ place, onToggleLike, showMapLink = true }) => {
+
{business}
{companyType && ( @@ -103,7 +103,7 @@ const PlaceContent = ({ place, onToggleLike, showMapLink = true }) => { alt={companyType} className="w-5 h-5" /> - + {companyTypeNameMap[companyType]}{place.address}
+{place.address}
데이터를 불러오지 못했습니다.
+데이터를 불러오지 못했습니다.
+
해당 상품 정보를 찾을 수 없습니다.
{data.productName}
-{data.bankName}
+{data.productName}
+{data.bankName}
-- 기본 정보 -
+기본 정보
가입 기간
-- {data.period || "-"} -
+가입 기간
+{data.period || "-"}
방식
-+
방식
+{data.method || "-"}
기본 금리
-+
기본 금리
+{data.benefit || "-"}
+
금융상품 소개
+
{data.productDescription || "상품 설명이 없습니다."}
• 본 서비스에서 제공하는 상품 정보는 각 기관의 공고를 바탕으로 수집·정리한 참고용 자료입니다. @@ -135,7 +131,7 @@ const FinancialProductDetailPage = () => { className="w-6 h-6" alt="바로가기" /> -
+
바로가기
diff --git a/src/pages/support/FinancialProductListPage.jsx b/src/pages/support/FinancialProductListPage.jsx index 5a89692..74f988f 100644 --- a/src/pages/support/FinancialProductListPage.jsx +++ b/src/pages/support/FinancialProductListPage.jsx @@ -77,7 +77,7 @@ const FinancialProductList = () => { return (소비한 가치에 맞는 금융상품
+소비한 가치에 맞는 금융상품
+
총 {safeProducts.length}개
-+
{userName}님이 리뷰를 남긴 기업 특성과
연관된 금융상품 순으로 보여드려요!
전체 보기
+전체 보기
+
{RECOMMEND_MESSAGE_MAP[ENUM_TO_KOR_MAP[topCategory]]}
-
+
+
총
{reviewCount}
-
+
건
기반 기반
{title}
-{bank}
+{title}
+{bank}
+
{description}
)}