diff --git a/customer-vue/src/api/store.js b/customer-vue/src/api/store.js
index 9fae59a..ab10acc 100644
--- a/customer-vue/src/api/store.js
+++ b/customer-vue/src/api/store.js
@@ -1,56 +1,39 @@
import axios from "axios";
export default {
- requestNearbyStore(latitude, longitude, storeName, page, size) {
- const options = {
- params: {
- latitude: latitude,
- longitude: longitude,
- storeName: storeName,
- page: page,
- size: size
- }
+ requestNearbyStore(latitude, longitude, storeName, page, size) {
+ const options = {
+ params: {
+ latitude: latitude,
+ longitude: longitude,
+ storeName: storeName,
+ page: page,
+ size: size
}
- return axios.get(process.env.VUE_APP_STORE_API_URL + '/store/search', options);
- },
- getCategoryList(){
- return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/category/');
- },
- putCategoryList(data){
- return axios({
- method:'put',
- url:process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/category',
- headers: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json;charset=UTF-8'
- },
- data: data,
- responseType:'json'
- })
- },
- getItemById(itemId){
- return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/item/'+itemId)
- },
- saveItem(method, itemData){
- return axios({
- method:method,
- url: process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/item',
- headers: {
- 'Accept': 'application/json',
- 'Content-Type': 'application/json;charset=UTF-8'
- },
- data: itemData,
- responseType:'json'
- })
- },
- getFavoriteStore(latitude, longitude,){
- const options = {
- params: {
- latitude: latitude,
- longitude: longitude,
- }
- }
- return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/api/customer/store/favorite',options)
- },
-
+ }
+ return axios.get(process.env.VUE_APP_STORE_API_URL + '/store/search', options);
+ },
+ getItemById(itemId){
+ return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/item/'+itemId)
+ },
+ getFavoriteStore(latitude, longitude,){
+ const options = {
+ params: {
+ latitude: latitude,
+ longitude: longitude,
+ }
+ }
+ return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/api/customer/store/favorite',options)
+ },
+ requestCategoriesWithItem(storeId) {
+ const options = {
+ params: {
+ "storeId": storeId
+ }
+ }
+ return axios.get(process.env.VUE_APP_STORE_API_URL + "/categories", options);
+ },
+ requestStore(storeId) {
+ return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL + "/store-service/store/" + storeId);
+ }
}
\ No newline at end of file
diff --git a/customer-vue/src/components/StoreNavigation.vue b/customer-vue/src/components/StoreNavigation.vue
new file mode 100644
index 0000000..b6e22a7
--- /dev/null
+++ b/customer-vue/src/components/StoreNavigation.vue
@@ -0,0 +1,32 @@
+
+
+
+ mdi-arrow-left
+
+
+
+ {{store.name}}
+
+
+
+ mdi-magnify
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/customer-vue/src/router/router.js b/customer-vue/src/router/router.js
index 8be971a..2d7d474 100644
--- a/customer-vue/src/router/router.js
+++ b/customer-vue/src/router/router.js
@@ -4,6 +4,7 @@ import jwt from "@/common/jwt";
import auth from "@/api/auth";
import HomeLayout from '../views/Layout/HomeLayout.vue';
+import StoreLayout from "@/views/Layout/StoreLayout";
const ACCESS_TOKEN_NAME = "accessToken";
const EXPIRED_TIME_NAME = "expiredTime";
@@ -61,7 +62,20 @@ const routes = [
},
]
},
-
+ {
+ path: '/store',
+ redirect: 'store',
+ beforeEnter: authCheck,
+ component: StoreLayout,
+ children: [
+ {
+ path: "/store/:storeId",
+ name: "store",
+ component: () => import('../views/StoreView'),
+ props: true
+ },
+ ]
+ },
{
path: '/auth',
name: 'auth',
diff --git a/customer-vue/src/views/Layout/StoreLayout.vue b/customer-vue/src/views/Layout/StoreLayout.vue
new file mode 100644
index 0000000..9dc2dea
--- /dev/null
+++ b/customer-vue/src/views/Layout/StoreLayout.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/customer-vue/src/views/SearchStore.vue b/customer-vue/src/views/SearchStore.vue
index 15171aa..24c1ded 100644
--- a/customer-vue/src/views/SearchStore.vue
+++ b/customer-vue/src/views/SearchStore.vue
@@ -26,7 +26,10 @@
-
+
+
+
+
+
+ {{ tag }}
+
+
+
+
+
+
+
+
+ {{ category.name }}
+
+
+
+
+
+
+ {{ item.name }}
+
+
+ {{ item.price }}원
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file