|
|
@ -6,6 +6,12 @@ |
|
|
<div class="r1">当前位置 <img src="./loc.png" alt="" /></div> |
|
|
<div class="r1">当前位置 <img src="./loc.png" alt="" /></div> |
|
|
<div class="r2">{{ bf }}</div> |
|
|
<div class="r2">{{ bf }}</div> |
|
|
<div class="r3"></div> |
|
|
<div class="r3"></div> |
|
|
|
|
|
<QRCodeFromText |
|
|
|
|
|
v-if="currentFloor" |
|
|
|
|
|
class="qrcode" |
|
|
|
|
|
:size="100" |
|
|
|
|
|
:text="`${config.mobileNav}?s=${currentFloor.floorOrder}_${currentFloor.location}_屏幕的位置`" |
|
|
|
|
|
></QRCodeFromText> |
|
|
</div> |
|
|
</div> |
|
|
<div class="list-container" ref="listRef"> |
|
|
<div class="list-container" ref="listRef"> |
|
|
<div |
|
|
<div |
|
|
@ -53,6 +59,7 @@ import { storeToRefs } from 'pinia' |
|
|
import { useStore } from '@/store/root' |
|
|
import { useStore } from '@/store/root' |
|
|
import { useRouter } from 'vue-router' |
|
|
import { useRouter } from 'vue-router' |
|
|
import { getBrandListByFormat } from '@/http/brand/api' |
|
|
import { getBrandListByFormat } from '@/http/brand/api' |
|
|
|
|
|
import QRCodeFromText from '@/components/QRCodeFromText/QRCodeFromText.vue' |
|
|
|
|
|
|
|
|
const timeout = 30000 |
|
|
const timeout = 30000 |
|
|
const heights = { shop: 44, format: 49, placeholder: 40 } |
|
|
const heights = { shop: 44, format: 49, placeholder: 40 } |
|
|
@ -61,7 +68,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 } = storeToRefs(store) |
|
|
|
|
|
|
|
|
const { currentFloor, buildingList, currentFloorShopMap, config } = 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) |
|
|
@ -265,6 +272,18 @@ watch(scrollLefts, _scrollLefts => { |
|
|
height: 32px; |
|
|
height: 32px; |
|
|
background: center / cover no-repeat url(./meta.png); |
|
|
background: center / cover no-repeat url(./meta.png); |
|
|
} |
|
|
} |
|
|
|
|
|
.qrcode { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: 314px; |
|
|
|
|
|
top: 57px; |
|
|
|
|
|
width: 120px; |
|
|
|
|
|
height: 120px; |
|
|
|
|
|
background: #ffffff; |
|
|
|
|
|
border-radius: 12px; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
.list-container { |
|
|
.list-container { |
|
|
overflow-x: scroll; |
|
|
overflow-x: scroll; |
|
|
|