From 2281ebbfb0ab9fe27f56cdc0d1396a1ee4f0e861 Mon Sep 17 00:00:00 2001 From: CessnaJ Date: Mon, 22 Jan 2024 02:25:04 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[STYLE]=20=EC=95=8C=EB=A6=BC=20=EB=B9=88=20?= =?UTF-8?q?=EB=AA=A8=EB=8B=AC=20font?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notification/notification-component.css | 101 +++++++++--------- 1 file changed, 51 insertions(+), 50 deletions(-) diff --git a/src/assets/css/notification/notification-component.css b/src/assets/css/notification/notification-component.css index 3f3f12e..7983015 100644 --- a/src/assets/css/notification/notification-component.css +++ b/src/assets/css/notification/notification-component.css @@ -1,87 +1,88 @@ .notification-dropdown { - position: absolute; - font-family: 'TheJamsil'; - font-weight: 300; - top: 100%; - left: 0; - width: 17vw; /* 드롭다운의 너비 */ - background-color: white; /* 배경색 */ - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* 그림자 효과 */ - border-radius: 5px; /* 둥근 모서리 */ - z-index: 100; /* 다른 요소들 위에 나타나도록 z-index 설정 */ - padding: 1rem; /* 여백 */ - box-sizing: border-box; + position: absolute; + font-family: 'TheJamsil'; + font-weight: 300; + top: 100%; + left: 0; + width: 17vw; /* 드롭다운의 너비 */ + background-color: white; /* 배경색 */ + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* 그림자 효과 */ + border-radius: 5px; /* 둥근 모서리 */ + z-index: 100; /* 다른 요소들 위에 나타나도록 z-index 설정 */ + padding: 1rem; /* 여백 */ + box-sizing: border-box; } .notification-list { - max-height: 400px; - overflow-y: auto; /* 내용이 많을 경우 스크롤 */ + max-height: 400px; + overflow-y: auto; /* 내용이 많을 경우 스크롤 */ } .notification-item { - padding: 0.5rem 0; - border-bottom: 1px solid #eee; + padding: 0.5rem 0; + border-bottom: 1px solid #eee; } .notification-message { - margin: 0.5rem 0; + margin: 0.5rem 0; } .notification-actions { - display: flex; - justify-content: flex-end; /* 오른쪽 정렬 */ - gap: 0.5rem; /* 버튼 사이의 간격 */ + display: flex; + justify-content: flex-end; /* 오른쪽 정렬 */ + gap: 0.5rem; /* 버튼 사이의 간격 */ } .notification-footer { - display: flex; - justify-content: flex-end; /* 오른쪽 정렬 */ - margin-top: 1rem; + display: flex; + justify-content: flex-end; /* 오른쪽 정렬 */ + margin-top: 1rem; } .notification-empty { - margin-top: 1vh; - text-align: center; - padding: 1rem; + font-family: 'TheJamsil'; + margin-top: 1vh; + text-align: center; + padding: 1rem; } /* 재사용 가능한 버튼 스타일 */ button { - cursor: pointer; - color: #c8c8c8; - font-family: 'TheJamsil'; - font-weight: 300; - font-size: 1rem; - /* background-color: #000; */ - background-color: #fff; - /* color: #fff; */ - border: none; - padding: 0.5rem 0.5rem 0rem 0.5rem; - border-radius: 5px; - transition: background-color 0.2s; + cursor: pointer; + color: #c8c8c8; + font-family: 'TheJamsil'; + font-weight: 300; + font-size: 1rem; + /* background-color: #000; */ + background-color: #fff; + /* color: #fff; */ + border: none; + padding: 0.5rem 0.5rem 0rem 0.5rem; + border-radius: 5px; + transition: background-color 0.2s; - &:hover { - /* background-color: #333; */ - } + &:hover { + /* background-color: #333; */ + } } .flex-row-space-btw { - display: flex; - justify-content: space-between; - align-items: center; + display: flex; + justify-content: space-between; + align-items: center; } .notification-read { - color: #b7b7b7; - cursor: pointer; + color: #b7b7b7; + cursor: pointer; } .close { - color: #000; - cursor: pointer; + color: #000; + cursor: pointer; } .notification-unread { - color: #000; - cursor: pointer; + color: #000; + cursor: pointer; } From af012a5a6e6c349e686bcebb13079f613489c8dc Mon Sep 17 00:00:00 2001 From: JunYong Sun Date: Mon, 22 Jan 2024 03:27:38 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[FIX]=20=EA=B2=BD=EB=A7=A4=20=EC=A3=BC?= =?UTF-8?q?=EB=AC=B8=20=EC=B7=A8=EC=86=8C=EB=B2=84=ED=8A=BC=20=EB=A6=AC?= =?UTF-8?q?=EB=B7=B0=20=EB=B2=84=ED=8A=BC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/order/orderDto.ts | 4 ++++ src/components/order/OrderComponent.vue | 16 ++++------------ src/components/order/OrderHistoryComponent.vue | 11 ++++++----- .../order/orderDetail/OrderDetailComponent.vue | 6 +++++- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/apis/order/orderDto.ts b/src/apis/order/orderDto.ts index c8751a7..549c175 100644 --- a/src/apis/order/orderDto.ts +++ b/src/apis/order/orderDto.ts @@ -1,8 +1,12 @@ export interface OrderResponse { orderNo: string + memberId: number productsName: string + usedPoints: number + totalCouponDiscountPrice: number totalAmount: number status: string + type: string createdAt: string } diff --git a/src/components/order/OrderComponent.vue b/src/components/order/OrderComponent.vue index 79f1a4a..a1efa8d 100644 --- a/src/components/order/OrderComponent.vue +++ b/src/components/order/OrderComponent.vue @@ -1,7 +1,7 @@ @@ -24,7 +24,7 @@ const toggleCard = async (orderNo: string) => { {{ order.orderNo }} @@ -34,14 +34,6 @@ const toggleCard = async (orderNo: string) => { {{ order.status }} {{ order.createdAt }} - - diff --git a/src/components/order/OrderHistoryComponent.vue b/src/components/order/OrderHistoryComponent.vue index 9ca83af..6972c7c 100644 --- a/src/components/order/OrderHistoryComponent.vue +++ b/src/components/order/OrderHistoryComponent.vue @@ -15,7 +15,7 @@ const totalPages = ref() const orders = ref>([]) const orderNo = ref('') const showModal = ref(false) - +const type = ref('일반주문') const defaultOption = ref({ value: 'SINGLE', label: '일반주문' @@ -44,8 +44,9 @@ const fetchDefaultData = async (requestPage: number, type: string): Promise { - orderNo.value = index +const open = async (order: OrderResponse) => { + orderNo.value = order.orderNo + type.value = order.type showModal.value = true } @@ -105,7 +106,7 @@ const handleSelectedOptionChange = async ( @@ -116,7 +117,7 @@ const handleSelectedOptionChange = async ( {
-
+