Compare commits

...

2 Commits

Author SHA1 Message Date
liyongle 976b5ea009 chore(release): 1.0.3-B.0 3 years ago
liyongle d3c4ce530c fix: 🧩 当前设备为景观层时地图位置优化 3 years ago
  1. 7
      CHANGELOG.md
  2. 4
      package-lock.json
  3. 2
      package.json
  4. 18
      src/components/PublicComponent/PublicComponent.vue
  5. 17
      src/composables/useGuideFilterShop.ts
  6. 14
      src/composables/useInitMap.ts

7
CHANGELOG.md

@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.0.3-B.0](https://git.1000my.com/project-chengduSKP/cd_SKP_H_base_daoshi_vue_ts/compare/v1.0.2...v1.0.3-B.0) (2023-08-05)
### Bug Fixes
* 🧩 当前设备为景观层时地图位置优化 ([d3c4ce5](https://git.1000my.com/project-chengduSKP/cd_SKP_H_base_daoshi_vue_ts/commit/d3c4ce530c246d4afdfeb41ad3222ff6a5d76e9c))
### [1.0.2](https://git.1000my.com/project-chengduSKP/cd_SKP_H_base_daoshi_vue_ts/compare/v1.0.2-B.2...v1.0.2) (2023-08-04)
### [1.0.2-B.2](https://git.1000my.com/project-chengduSKP/cd_SKP_H_base_daoshi_vue_ts/compare/v1.0.2-B.1...v1.0.2-B.2) (2023-08-04)

4
package-lock.json

@ -1,12 +1,12 @@
{
"name": "vue_cli_ts",
"version": "1.0.2",
"version": "1.0.3-B.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vue_cli_ts",
"version": "1.0.2",
"version": "1.0.3-B.0",
"dependencies": {
"@better-scroll/core": "^2.5.0",
"@better-scroll/observe-image": "^2.5.0",

2
package.json

@ -1,6 +1,6 @@
{
"name": "vue_cli_ts",
"version": "1.0.2",
"version": "1.0.3-B.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",

18
src/components/PublicComponent/PublicComponent.vue

@ -78,11 +78,19 @@ watch(route, to => {
if (to.fullPath === '/') {
window?.Map_QM?.showFloor(device.value.floorOrder)
const art: any = document.getElementById('mapContainer')
art.style.width = '2864px'
art.style.height = '1896px'
art.style.right = '0'
art.style.top = '0'
window.Map_QM.changeWindowResize(2864, 1896)
if (device.value.floorOrder !== 6) {
art.style.width = '2864px'
art.style.height = '1896px'
art.style.right = '0'
art.style.top = '0'
window.Map_QM.changeWindowResize(2864, 1896)
} else {
art.style.width = '2244px'
art.style.height = '1352px'
art.style.right = '690px'
art.style.top = '304px'
window.Map_QM.changeWindowResize(2244, 1352)
}
if (store.currentArtName) {
store.SET_CURRENT_ART_NAME('')
}

17
src/composables/useGuideFilterShop.ts

@ -27,22 +27,19 @@ export const useGuideFilterShop = () => {
floorIdx.value = floorOrder
selectedShopList.value = shopList.value.filter(item => item.floorOrder === floorOrder)
hideMapDialog()
const art: any = document.getElementById('mapContainer')
if (floorOrder === 6) {
const art: any = document.getElementById('mapContainer')
art.style.width = '2244px'
art.style.height = '1352px'
art.style.right = '690px'
art.style.top = '304px'
window.Map_QM.changeWindowResize(2244, 1352)
} else {
const art: any = document.getElementById('mapContainer')
if (art.style.width !== '2864px') {
art.style.width = '2864px'
art.style.height = '1896px'
art.style.right = '0'
art.style.top = '0'
window.Map_QM.changeWindowResize(2864, 1896)
}
} else if (art.style.width !== '2864px') {
art.style.width = '2864px'
art.style.height = '1896px'
art.style.right = '0'
art.style.top = '0'
window.Map_QM.changeWindowResize(2864, 1896)
}
window.Map_QM.showFloor(floorOrder)
}

14
src/composables/useInitMap.ts

@ -28,6 +28,20 @@ export const useInitMap = async function () {
})
})
store.SET_MAP_PARK_LIST(arr)
const art: any = document.getElementById('mapContainer')
if (device.value.floorOrder === 6) {
art.style.width = '2244px'
art.style.height = '1352px'
art.style.right = '690px'
art.style.top = '304px'
window.Map_QM.changeWindowResize(2244, 1352)
} else if (art.style.width !== '2864px') {
art.style.width = '2864px'
art.style.height = '1896px'
art.style.right = '0'
art.style.top = '0'
window.Map_QM.changeWindowResize(2864, 1896)
}
},
{
build: device.value?.buildingOrder ?? 0,

Loading…
Cancel
Save