From 8147a09796d9b03675df1de10f03edd47efc004a Mon Sep 17 00:00:00 2001 From: zhangyao Date: Fri, 16 Jun 2023 19:10:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A7=A9=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E8=A7=92=E5=BA=A6=E5=92=8Cbus=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../offline/JSON/getBusStationList.json | 2 +- public/static/qm/MainMap_QM.js | 2 +- src/components/Bus/Bus.vue | 43 ++++++++++++------- 3 files changed, 29 insertions(+), 18 deletions(-) diff --git a/public/static/offline/JSON/getBusStationList.json b/public/static/offline/JSON/getBusStationList.json index ea7a1ef..dee2be9 100644 --- a/public/static/offline/JSON/getBusStationList.json +++ b/public/static/offline/JSON/getBusStationList.json @@ -1 +1 @@ -{"code":200,"msg":"操作成功","data":{"busStationList":["A站","B站","C站","D站"]}} \ No newline at end of file +{"code":200,"msg":"操作成功","data":{"busStationList":["浦园A站","浦园B站","浦园C站","浦园D站"]}} \ No newline at end of file diff --git a/public/static/qm/MainMap_QM.js b/public/static/qm/MainMap_QM.js index 602c31e..85d3e75 100644 --- a/public/static/qm/MainMap_QM.js +++ b/public/static/qm/MainMap_QM.js @@ -75,7 +75,7 @@ QMUtil = function () { this.pathStateObj = { isPathState: false, isPathPlay: true, basePath: "", graphPath: "", ftPath: "", dtPath: "", facAllArr: [], forShopArr: {}, elevator: null, straight: null, elevatorDown: null, seldtFacNo: "", seldownftFacNo: "", selupftFacNo: "" }; this.timeObj = { timeS: 0, collTime: -1, pathTime: -1 }; //debug 参数 相机坐标/ 镜头方向 - this.guiOptions = { cameraX: -490, cameraY: 500, cameraZ: 22, targatX: 0, targatY: 0, targatZ: 0 }; //this.button = function() {}; + this.guiOptions = { cameraX: -508, cameraY: 483, cameraZ: -4, targatX: 0, targatY: 0, targatZ: 0 }; //this.button = function() {}; this.sceneGap = { x: 0, y: 30, z: 40, scale: dir ? 0.15 : 0.085 }; //改变地图位置,大小 diff --git a/src/components/Bus/Bus.vue b/src/components/Bus/Bus.vue index a3001c3..63b3bd8 100644 --- a/src/components/Bus/Bus.vue +++ b/src/components/Bus/Bus.vue @@ -3,7 +3,7 @@

{{ switchLanguage(busTip, 'title') }}

- +
{{ @@ -12,7 +12,7 @@
- +
{{ @@ -90,8 +90,8 @@ function setBusPositionToLeft(val: number) { } } onMounted(() => { - setBusPositionToLeft(0) - setBusPositionToRight(3) + setBusPositionToLeft(1) + setBusPositionToRight(2) }) @@ -152,12 +152,35 @@ onMounted(() => { } .bus { top: 85px; + background-image: url('@/assets/images/home/busToLeft.svg'); + &::after { + position: absolute; + top: -35px; + left: 20px; + z-index: 3; + } } } .bus { position: absolute; top: 0; left: 0; + display: block; + background-image: url('@/assets/images/home/busToRight.svg'); + width: 54px; + height: 21px; + + &::after { + position: absolute; + top: 37px; + left: 20px; + z-index: 3; + display: block; + width: 22px; + height: 22px; + background: url('@/assets/images/home/point.svg'); + content: ''; + } } .line { position: absolute; @@ -186,18 +209,6 @@ onMounted(() => { position: relative; // font-size: 24px; // color: rgb(0 0 0 / 90%); - - &::after { - position: absolute; - top: -33px; - right: 0; - left: 0; - width: 22px; - height: 22px; - margin: auto; - background: url('@/assets/images/home/point.svg'); - content: ''; - } } } }