From e37d385a2c84cbe8d86910eccf039f9b72e550c1 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 14 Jul 2023 11:47:19 +0300 Subject: [PATCH] feat: focus on product details --- static/components/customer-stall/customer-stall.html | 11 +---------- static/components/customer-stall/customer-stall.js | 3 +++ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/static/components/customer-stall/customer-stall.html b/static/components/customer-stall/customer-stall.html index 411453a..5d2d129 100644 --- a/static/components/customer-stall/customer-stall.html +++ b/static/components/customer-stall/customer-stall.html @@ -1,14 +1,5 @@
- +
diff --git a/static/components/customer-stall/customer-stall.js b/static/components/customer-stall/customer-stall.js index 3c02e1e..d231991 100644 --- a/static/components/customer-stall/customer-stall.js +++ b/static/components/customer-stall/customer-stall.js @@ -76,6 +76,9 @@ async function customerStall(path) { }, methods: { changePageS(page, opts) { + if (page === 'stall' && opts?.product) { + document.getElementById('product-focus-area')?.scrollIntoView() + } this.$emit('change-page', page, opts) }, makeLogin() {