Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 구매, 고객센터 링크 연결 #337

Merged
merged 4 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ const Router = () => {
return (
<Routes>
{/* admin */}
<Route path="/admin" element={<Admin />} />
<Route
path={`/${process.env.REACT_APP_ADMIN_UUID_URL}`}
element={<Admin />}
/>
{/* minder(buyer) */}
<Route path="/share" element={<BuyerHome />} />
<Route path="/" element={<Navigate to="/share" />} />
Expand Down
9 changes: 8 additions & 1 deletion src/components/Common/HomeAboutFooterSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ export const HomeAboutFooterSection = ({
</AboutSection>
<Footer>
<FooterLinkList>
<Body3>고객센터</Body3>
<Body3
style={{ cursor: 'pointer' }}
onClick={() => {
window.open(process.env.REACT_APP_TEMP_CUSTOMER_SERVICE_URL);
}}
>
고객센터
</Body3>
<Body3>이용약관</Body3>
<Body3>개인정보처리방침</Body3>
</FooterLinkList>
Expand Down
8 changes: 7 additions & 1 deletion src/components/Common/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,13 @@ export const Profile = ({
>
서비스 소개
</ServiceItem>
<ServiceItem>정산 문의</ServiceItem>
<ServiceItem
onClick={() => {
window.open(process.env.REACT_APP_TEMP_CUSTOMER_SERVICE_URL);
}}
>
정산 문의
</ServiceItem>
<ServiceItem
onClick={() => {
navigate('/minder/setting');
Expand Down
7 changes: 6 additions & 1 deletion src/pages/Buyer/BuyerMypage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ export const BuyerMypage = () => {
</div>
{isLogin ? (
<>
<div className="additional-box">
<div
className="additional-box"
onClick={() => {
window.open(process.env.REACT_APP_TEMP_CUSTOMER_SERVICE_URL);
}}
>
<Body2 color={Grey1}>결제 문의</Body2>
</div>
<div className="additional-box">
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Buyer/BuyerOpenPaymentDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export const BuyerOpenPaymentDetail = () => {
try {
const res: any = await postOpenConsult(body);
if (res.status === 201) {
navigate('/paymentComplete');
window.open(process.env.REACT_APP_ONE_TO_MANY_PAYMENT_URL);
navigate('/paymentFinish');
} else if (res?.response.status === 404) {
alert('존재하지 않는 회원입니다.');
}
Expand Down
7 changes: 6 additions & 1 deletion src/pages/Buyer/BuyerPaymentDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export const BuyerPaymentDetail = () => {
totalConsult: 0,
});

const paymentUrl = letterFocus
? process.env.REACT_APP_LETTER_PAYMENT_URL
: process.env.REACT_APP_CHATTING_PAYMENT_URL;

/**
*
*/
Expand All @@ -103,7 +107,8 @@ export const BuyerPaymentDetail = () => {
try {
const res: any = await postConsults(body);
if (res.status === 201) {
navigate('/paymentComplete');
window.open(paymentUrl);
navigate('/paymentFinish');
} else if (res.response.status === 400 || res.response.status === 404) {
const errMessage = res.response.data.message.substring(
0,
Expand Down
Loading