diff --git a/app.config.ts b/app.config.ts index 260e93b..aa0e765 100644 --- a/app.config.ts +++ b/app.config.ts @@ -1,6 +1,6 @@ export default defineAppConfig({ ui: { - primary: 'lime', + primary: 'pink', gray: 'neutral', }, }) diff --git a/app.vue b/app.vue index c6e094a..4ceff66 100644 --- a/app.vue +++ b/app.vue @@ -4,3 +4,11 @@ + + diff --git a/src/entities/product/ui/ProductCard.vue b/src/entities/product/ui/ProductCard.vue index 8b2591c..10000f9 100644 --- a/src/entities/product/ui/ProductCard.vue +++ b/src/entities/product/ui/ProductCard.vue @@ -56,7 +56,7 @@ updatePrices() - + {{ currentUnitPrice }} ₽ / {{ product.unit }} diff --git a/src/pages/catalog/ui/CatalogPage.vue b/src/pages/catalog/ui/CatalogPage.vue index 4f0769c..1545347 100644 --- a/src/pages/catalog/ui/CatalogPage.vue +++ b/src/pages/catalog/ui/CatalogPage.vue @@ -2,17 +2,28 @@ import { ProductCard } from '~/src/entities/product' import { useCRMGetPositions } from '~/src/shared/api/crm/crm' import { Sidebar } from '~/src/widgets/sidebar' +import { StandardLayout } from '~/src/shared/ui' +import { Header } from '~/src/widgets/header' +import { Footer } from '~/src/widgets/footer' const { data: positions } = useCRMGetPositions('0') - - - - - + + + + + + + + + + - + + + + diff --git a/src/pages/position/ui/PositionPage.vue b/src/pages/position/ui/PositionPage.vue index 240d3ff..5473f80 100644 --- a/src/pages/position/ui/PositionPage.vue +++ b/src/pages/position/ui/PositionPage.vue @@ -2,6 +2,9 @@ import { ProductCard } from '~/src/entities/product' import { useCRMGetPositions } from '~/src/shared/api/crm/crm' import { Sidebar } from '~/src/widgets/sidebar' +import { StandardLayout } from '~/src/shared/ui' +import { Header } from '~/src/widgets/header' +import { Footer } from '~/src/widgets/footer' const route = useRoute() @@ -9,12 +12,20 @@ const { data: positions } = useCRMGetPositions(route.params.id as string) - - - - - + + + + + + + + + + - + + + + diff --git a/src/pages/product/ui/ProductPage.vue b/src/pages/product/ui/ProductPage.vue index 71f1ea7..2f34193 100644 --- a/src/pages/product/ui/ProductPage.vue +++ b/src/pages/product/ui/ProductPage.vue @@ -1,6 +1,9 @@ - - - - - {{ data?.data.product?.name }} - + + + + + + + + + {{ data?.data.product?.name }} + - - Надо заполнить на бэке - тяжело тестить + + Надо заполнить на бэке - тяжело тестить + - + + + + diff --git a/src/shared/ui/index.ts b/src/shared/ui/index.ts index 5f2c191..fa60c87 100644 --- a/src/shared/ui/index.ts +++ b/src/shared/ui/index.ts @@ -1 +1,2 @@ export { InputNumber } from './components' +export { StandardLayout } from './layouts' diff --git a/src/shared/ui/layouts/StandardLayout.vue b/src/shared/ui/layouts/StandardLayout.vue new file mode 100644 index 0000000..95b645e --- /dev/null +++ b/src/shared/ui/layouts/StandardLayout.vue @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + diff --git a/src/shared/ui/layouts/index.ts b/src/shared/ui/layouts/index.ts new file mode 100644 index 0000000..92175d1 --- /dev/null +++ b/src/shared/ui/layouts/index.ts @@ -0,0 +1 @@ +export { default as StandardLayout } from './StandardLayout.vue' diff --git a/src/widgets/footer/index.ts b/src/widgets/footer/index.ts new file mode 100644 index 0000000..f107b73 --- /dev/null +++ b/src/widgets/footer/index.ts @@ -0,0 +1 @@ +export { Footer } from './ui' diff --git a/src/widgets/footer/ui/Footer.vue b/src/widgets/footer/ui/Footer.vue new file mode 100644 index 0000000..40773ac --- /dev/null +++ b/src/widgets/footer/ui/Footer.vue @@ -0,0 +1,29 @@ + + + + + + + + + + +7 (913) 248-04-50 + + + + email@mail.ru + + + + + + ИП Джалолов Н. А. Алтайский край, р-н Рубцовский, с Веселоярск, + ИНН 226911378195, ОГРНИП 321220200263292 + + + diff --git a/src/widgets/footer/ui/index.ts b/src/widgets/footer/ui/index.ts new file mode 100644 index 0000000..d6068fd --- /dev/null +++ b/src/widgets/footer/ui/index.ts @@ -0,0 +1 @@ +export { default as Footer } from './Footer.vue' diff --git a/src/widgets/header/index.ts b/src/widgets/header/index.ts new file mode 100644 index 0000000..6a70801 --- /dev/null +++ b/src/widgets/header/index.ts @@ -0,0 +1 @@ +export { Header } from './ui' diff --git a/src/widgets/header/ui/Header.vue b/src/widgets/header/ui/Header.vue new file mode 100644 index 0000000..10155b5 --- /dev/null +++ b/src/widgets/header/ui/Header.vue @@ -0,0 +1,26 @@ + + + + + + + + Каталог + + + + Корзина + + + + + + + diff --git a/src/widgets/header/ui/index.ts b/src/widgets/header/ui/index.ts new file mode 100644 index 0000000..9f67dde --- /dev/null +++ b/src/widgets/header/ui/index.ts @@ -0,0 +1 @@ +export { default as Header } from './Header.vue'