From c8d46d870ae58e6b28935ccb44924c0a784e4f49 Mon Sep 17 00:00:00 2001 From: leecr1215 Date: Sat, 10 Jun 2023 17:11:46 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=8A=B9=EC=B0=A8=EB=B2=A8=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=20=EC=9D=B4=EB=A0=A5=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20?= =?UTF-8?q?=EB=B0=94=EC=9D=B8=EB=94=A9=20=EC=99=84=EB=A3=8C!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refactor : 즐겨찾는 정류장 > 승차벨 사용 이력 페이지 --- src/components/NavComp.vue | 2 - src/router/index.js | 6 +- src/views/passenger/FavoriteStopView.vue | 509 ----------------------- src/views/passenger/MainView.vue | 10 +- src/views/passenger/StopHistoryView.vue | 280 +++++++++++++ 5 files changed, 288 insertions(+), 519 deletions(-) delete mode 100644 src/views/passenger/FavoriteStopView.vue create mode 100644 src/views/passenger/StopHistoryView.vue diff --git a/src/components/NavComp.vue b/src/components/NavComp.vue index c638f86..71ad10a 100644 --- a/src/components/NavComp.vue +++ b/src/components/NavComp.vue @@ -76,8 +76,6 @@ }, 1); }; - console.log(props.btnBackgroundColor); - // 뒤로 가기 버튼 클릭 이벤트 const router = useRouter(); const goBack = () => { diff --git a/src/router/index.js b/src/router/index.js index d0aa13b..548a5ea 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -44,9 +44,9 @@ const routes = [ component: () => import('@/views/passenger/KeyboardSearchView.vue'), }, { - path: '/favoriteStop', - name: 'favoriteStopView', - component: () => import('@/views/passenger/FavoriteStopView.vue'), + path: '/stopHistory', + name: 'StopHistoryView', + component: () => import('@/views/passenger/StopHistoryView.vue'), }, { // 가까운 정류장 diff --git a/src/views/passenger/FavoriteStopView.vue b/src/views/passenger/FavoriteStopView.vue deleted file mode 100644 index 05ea4e8..0000000 --- a/src/views/passenger/FavoriteStopView.vue +++ /dev/null @@ -1,509 +0,0 @@ - - - - - diff --git a/src/views/passenger/MainView.vue b/src/views/passenger/MainView.vue index 2dd39a6..7ed9668 100644 --- a/src/views/passenger/MainView.vue +++ b/src/views/passenger/MainView.vue @@ -4,7 +4,7 @@
- +
@@ -26,9 +26,9 @@ router.push('/search'); }; - // 즐겨 찾는 정류장 페이지로 이동 - const goFavoriteStopView = () => { - router.push('/favoriteStop'); + // 승차벨 사용 이력 정류장 페이지로 이동 + const goStopHistoryView = () => { + router.push('/stopHistory'); }; // 가까운 정류장 페이지로 이동 @@ -39,7 +39,7 @@ return { wholeText, goSearchView, - goFavoriteStopView, + goStopHistoryView, goNearStopView, }; }, diff --git a/src/views/passenger/StopHistoryView.vue b/src/views/passenger/StopHistoryView.vue new file mode 100644 index 0000000..7bd6c0f --- /dev/null +++ b/src/views/passenger/StopHistoryView.vue @@ -0,0 +1,280 @@ + + + + +