diff --git a/pages/products/[id].vue b/pages/products/[id].vue new file mode 100644 index 0000000..5919520 --- /dev/null +++ b/pages/products/[id].vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/entities/product/index.ts b/src/entities/product/index.ts index 5c91d75..cb851da 100644 --- a/src/entities/product/index.ts +++ b/src/entities/product/index.ts @@ -1 +1 @@ -export { ProductCard } from './ui' +export { ProductCard, ProductImage } from './ui' diff --git a/src/entities/product/ui/ProductCard.vue b/src/entities/product/ui/ProductCard.vue index 804a430..8b2591c 100644 --- a/src/entities/product/ui/ProductCard.vue +++ b/src/entities/product/ui/ProductCard.vue @@ -1,4 +1,5 @@ + + + + + + + + {{ label.name }} + + + + + + + + + + diff --git a/src/entities/product/ui/index.ts b/src/entities/product/ui/index.ts index 50c64fe..800235b 100644 --- a/src/entities/product/ui/index.ts +++ b/src/entities/product/ui/index.ts @@ -1 +1,2 @@ export { default as ProductCard } from './ProductCard.vue' +export { default as ProductImage } from './ProductImage.vue' diff --git a/src/pages/product/index.ts b/src/pages/product/index.ts new file mode 100644 index 0000000..607cff0 --- /dev/null +++ b/src/pages/product/index.ts @@ -0,0 +1 @@ +export { ProductPage } from './ui' diff --git a/src/pages/product/ui/ProductPage.vue b/src/pages/product/ui/ProductPage.vue new file mode 100644 index 0000000..71f1ea7 --- /dev/null +++ b/src/pages/product/ui/ProductPage.vue @@ -0,0 +1,23 @@ + + + + + + + + {{ data?.data.product?.name }} + + + + Надо заполнить на бэке - тяжело тестить + + + + diff --git a/src/pages/product/ui/index.ts b/src/pages/product/ui/index.ts new file mode 100644 index 0000000..dae9ec7 --- /dev/null +++ b/src/pages/product/ui/index.ts @@ -0,0 +1 @@ +export { default as ProductPage } from './ProductPage.vue'