|
|
@ -63,7 +63,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
|
import { computed, ref, watch, nextTick } from 'vue' |
|
|
|
|
|
|
|
|
import { computed, ref, watch, nextTick, onMounted } from 'vue' |
|
|
import { storeToRefs } from 'pinia' |
|
|
import { storeToRefs } from 'pinia' |
|
|
import { useStore } from '@/store/root' |
|
|
import { useStore } from '@/store/root' |
|
|
import { useRouter } from 'vue-router' |
|
|
import { useRouter } from 'vue-router' |
|
|
@ -81,7 +81,7 @@ const store = useStore() |
|
|
const router = useRouter() |
|
|
const router = useRouter() |
|
|
const shops = ref([]) |
|
|
const shops = ref([]) |
|
|
const listRef = ref(null) |
|
|
const listRef = ref(null) |
|
|
const { currentFloor, buildingList, currentFloorShopMap, config, theme } = storeToRefs(store) |
|
|
|
|
|
|
|
|
const { currentFloor, buildingList, currentFloorShopMap, config, theme, mapStatus } = storeToRefs(store) |
|
|
const bf = computed(() => (buildingList.length > 1 ? currentFloor.value.building + '-' : '') + currentFloor.value.floor) |
|
|
const bf = computed(() => (buildingList.length > 1 ? currentFloor.value.building + '-' : '') + currentFloor.value.floor) |
|
|
|
|
|
|
|
|
const scrollWidth = ref(0) |
|
|
const scrollWidth = ref(0) |
|
|
@ -111,7 +111,10 @@ Promise.all([getBrandListByFormat()]).then(([{ data: brandListByFormat }]) => { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
|
|
mapStatus, |
|
|
|
|
|
val => { |
|
|
|
|
|
if (val) { |
|
|
try { |
|
|
try { |
|
|
window.Map_QM?.showFloor?.(currentFloor.value.floorOrder, () => { |
|
|
window.Map_QM?.showFloor?.(currentFloor.value.floorOrder, () => { |
|
|
window.Map_QM?.changeMapState('2d') |
|
|
window.Map_QM?.changeMapState('2d') |
|
|
@ -120,6 +123,10 @@ try { |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.log('error:', error) |
|
|
console.log('error:', error) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ immediate: true } |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
const goPage = item => { |
|
|
const goPage = item => { |
|
|
router.push(item.path) |
|
|
router.push(item.path) |
|
|
|