From 5e47a52174141b091b2ac79377654c328048bdbc Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Fri, 21 Jun 2024 10:48:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=201=E3=80=81=E6=8E=A8=E8=8D=90=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=93=81=E7=89=8C=E5=88=97=E8=A1=A8=EF=BC=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BBlogo=E5=90=8E=EF=BC=8Clogo=E7=BF=BB=E8=BD=AC=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=BA=8C=E7=BB=B4=E7=A0=81=E5=92=8C=E2=80=9C=E7=AB=8B?= =?UTF-8?q?=E5=8D=B3=E5=AF=BC=E8=88=AA=E2=80=9D=E6=8C=89=E9=92=AE=EF=BC=9B?= =?UTF-8?q?=202=E3=80=81=E7=82=B9=E5=87=BB=E5=AF=BC=E8=88=AA=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=AB=96=E7=89=88=E5=93=81=E7=89=8C=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=B8=8B=E6=B2=89=EF=BC=8C=E4=B8=8A=E6=96=B9=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E8=AF=A5=E5=93=81=E7=89=8C=E7=9A=84=E5=9C=B0=E5=9B=BE=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E3=80=82=E6=A8=AA=E7=89=88=E5=93=81=E7=89=8C=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8F=B3=E6=8B=89=EF=BC=8C=E5=B7=A6=E4=BE=A7=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E8=AF=A5=E5=93=81=E7=89=8C=E7=9A=84=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E3=80=82=E7=82=B9=E5=87=BB=E6=94=B6=E8=B5=B7?= =?UTF-8?q?=EF=BC=8C=E5=88=97=E8=A1=A8=E9=87=8D=E6=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8=88=AA=EF=BC=8C=E5=9B=A0?= =?UTF-8?q?=E4=B8=BA=E5=93=81=E7=89=8C=E5=88=97=E8=A1=A8=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E5=AE=9A=E6=9C=89=E5=AF=B9=E5=BA=94=EF=BC=88=E8=AF=A5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=B1=95=E7=A4=BA=E7=9A=84=E6=98=AF=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E5=BA=97=E9=93=BA=EF=BC=89=206=E3=80=81=E8=A2=AB=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=93=81=E7=89=8C=E5=B1=95=E7=A4=BA=E5=9C=A8?= =?UTF-8?q?=E5=93=81=E7=89=8C=E5=88=97=E8=A1=A8=E4=B8=8A=E6=96=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 8 + src/base/ShopItem/ShopItem.vue | 63 ++++-- src/components/BrandScroll/BrandScroll.vue | 56 +++++- src/components/Map/Map.vue | 14 +- src/components/MapControl/MapControl.vue | 89 +++++++++ .../Guide => components/MapControl}/list.js | 0 .../PublicComponent/PublicComponent.vue | 15 +- src/components/PublicComponent/SearchBar.vue | 4 +- src/components/PublicComponent/Tabs.vue | 6 +- src/components/Search/Search.vue | 4 +- src/composables/useHandleScreen.js | 10 +- src/composables/useInitMap.js | 1 + src/router/routes.js | 6 +- src/store/root/actions.js | 6 + src/store/root/state.js | 4 +- src/views/Brand/Brand.vue | 189 +++++++++++++++++- src/views/Foods/Foods.vue | 40 ---- src/views/Guide/Guide.vue | 70 +------ 18 files changed, 420 insertions(+), 165 deletions(-) create mode 100644 src/components/MapControl/MapControl.vue rename src/{views/Guide => components/MapControl}/list.js (100%) delete mode 100644 src/views/Foods/Foods.vue diff --git a/src/App.vue b/src/App.vue index 038b89d..9c0f952 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,6 +8,14 @@ diff --git a/src/views/Guide/list.js b/src/components/MapControl/list.js similarity index 100% rename from src/views/Guide/list.js rename to src/components/MapControl/list.js diff --git a/src/components/PublicComponent/PublicComponent.vue b/src/components/PublicComponent/PublicComponent.vue index ca3cc3c..f8115ab 100644 --- a/src/components/PublicComponent/PublicComponent.vue +++ b/src/components/PublicComponent/PublicComponent.vue @@ -1,7 +1,7 @@ @@ -19,7 +19,7 @@ import { defineAsyncComponent, watch, onMounted, ref, onBeforeUnmount } from 'vue' import { storeToRefs } from 'pinia' import { useStore } from '@/store/root' -import { useRouter, useRoute } from 'vue-router' +import { useRouter } from 'vue-router' import { useHandleScreen } from '@/composables/useHandleScreen' import { useLogout } from '@/composables/useLogout' import { useInitMap } from '@/composables/useInitMap' @@ -32,9 +32,8 @@ const SearchBar = defineAsyncComponent(() => import('./SearchBar.vue')) const Tabs = defineAsyncComponent(() => import('./Tabs.vue')) const router = useRouter() -const route = useRoute() const store = useStore() -const { shop, showSearch, language } = storeToRefs(store) +const { shop, showSearch, language, path } = storeToRefs(store) const { resetClickNumber, setLogoutRef, addTotalClick } = useLogout() @@ -77,8 +76,8 @@ onBeforeUnmount(() => { window.removeEventListener('touchend', checkHandleScreen) }) -watch(route, to => { - if (to.fullPath === '/guide' || to.fullPath === '/nav' || to.fullPath === '/billboard') { +watch(path, nxtPath => { + if (nxtPath === '/guide' || nxtPath === '/nav' || nxtPath === '/billboard') { window?.Map_QM?.startRender() } else { window?.Map_QM?.cancelRender() diff --git a/src/components/PublicComponent/SearchBar.vue b/src/components/PublicComponent/SearchBar.vue index 61e9180..8dd741d 100644 --- a/src/components/PublicComponent/SearchBar.vue +++ b/src/components/PublicComponent/SearchBar.vue @@ -1,6 +1,6 @@