From ddf4a9ce9b21a1dcfff54fa2aa1c3700779dcd6e Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Tue, 23 May 2023 14:10:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=AC=E5=85=B1=E8=AE=BE=E6=96=BD?= =?UTF-8?q?=EF=BC=9A=E6=95=B0=E6=8D=AE=E5=8F=96=E8=87=AA=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=EF=BC=8C=E5=B1=95=E7=A4=BA=E6=89=80?= =?UTF-8?q?=E6=9C=89=E7=9A=84=E5=85=AC=E5=85=B1=E8=AE=BE=E6=96=BDICON?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E5=87=BB=E8=B7=B3=E8=BD=AC=E6=89=BE=E5=BA=97?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E7=9B=B4=E6=8E=A5=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=88=B0=E7=A6=BB=E5=BD=93=E5=89=8D=E4=BD=8D=E7=BD=AE=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E7=9A=84=E5=85=AC=E5=85=B1=E8=AE=BE=E6=96=BD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/composables/useInitConfigAndMallInfo.js | 6 ++---- src/http/api.js | 9 --------- src/views/Guide/Guide.vue | 7 ++----- 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/src/composables/useInitConfigAndMallInfo.js b/src/composables/useInitConfigAndMallInfo.js index 04245b7..1586d85 100644 --- a/src/composables/useInitConfigAndMallInfo.js +++ b/src/composables/useInitConfigAndMallInfo.js @@ -1,4 +1,4 @@ -import { getConfig, getCurrentFloor, getGuideList, getTheme, getIndexList, getQMGoShopData } from '@/http/api' +import { getConfig, getCurrentFloor, getGuideList, getTheme, getQMGoShopData } from '@/http/api' import { useStore } from '@/store/root' import VConsole from 'vconsole' @@ -27,10 +27,8 @@ export const useInitConfigAndMallInfo = async () => { const { buildingList, shopList } = _guideList.data store.SET_SHOP_LIST(shopList.filter(({ yaxis }) => !!yaxis)) store.SET_BUILDING_LIST(buildingList) - const res = await getIndexList() - const { data } = res const { data: { searchList, recommendList } } = await getQMGoShopData() - store.SET_INDEX_LIST({ ...data, recommendList, hotSearch: searchList }) + store.SET_INDEX_LIST({ recommendList, hotSearch: searchList }) } diff --git a/src/http/api.js b/src/http/api.js index 0f946dd..a92d96b 100644 --- a/src/http/api.js +++ b/src/http/api.js @@ -16,12 +16,6 @@ export const getMemberBenefits = () => get(`${url().sourceUrl}/JSON/getMemberInt //获取停车场数据 export const getParkingList = () => get(`${url().sourceUrl}/JSON/getParkingInfo.json`) -//获取服务信息 -export const getServeList = () => get(`${url().sourceUrl}/JSON/getServeList.json`) - -//获取 周边交通图片 -export const getTrafficList = () => get(`${url().sourceUrl}/JSON/getMallTraffic.json`) - //获取品牌喜欢数量 export const getBrandLikesNumber = shopCode => get(`${url().interfaceUrl}/guide/v1/web/getBrandStar?shopCode=${shopCode}`) @@ -34,9 +28,6 @@ export const getCinemaInfo = () => get(`${url().sourceUrl}/JSON/getCinemaInfo.js //获取商场介绍 export const getMallInfoList = () => get(`${url().sourceUrl}/JSON/getMallInfo.json`) -//是否显示语音 -export const getIsShowVoiceBtn = () => get(`${url().sourceUrl}/JSON/getMallVoice.json`) - //获取跳转时间 export const getBackTime = () => get(`${url().sourceUrl}/JSON/getBackTime.json`) diff --git a/src/views/Guide/Guide.vue b/src/views/Guide/Guide.vue index 9c30b1d..b5034bd 100644 --- a/src/views/Guide/Guide.vue +++ b/src/views/Guide/Guide.vue @@ -260,11 +260,8 @@ watch(facility, fac => { if (fac) handleFacility(fac) else hideMapDialog() }) -const handleFacility = async fac => { - const index = currentBuildingFloorsList.value.findIndex(item => item.floorOrder === fac.floor) - console.log(index, currentBuildingFloorsList.value[index]) - await changeFloor(index) - setTimeout(() => showFacility(fac), 500) +const handleFacility = fac => { + window.Map_QM.pathNode(fac) }