From 9f31b189a28be9299c69130a6f0d2ce072d9176b Mon Sep 17 00:00:00 2001 From: Jin Lei <jinlei_182@163.com> Date: 星期六, 11 十一月 2023 15:30:55 +0800 Subject: [PATCH] 删除部分注释 --- src/components/map/viewer.vue | 60 ++++++++++++++++++++++++++---------------------------------- 1 files changed, 26 insertions(+), 34 deletions(-) diff --git a/src/components/map/viewer.vue b/src/components/map/viewer.vue index 54d78ed..dd46aed 100644 --- a/src/components/map/viewer.vue +++ b/src/components/map/viewer.vue @@ -3,42 +3,22 @@ <div id="sdkContainer"></div> <layerTreeTwoScreen v-if="layerTreeTwoScreen" /> <!-- <div id="bottomInfo" v-html="bottomInfo"></div> --> - <div - id="switchImagerLayer" - :style="{ - transform: `scale(${scale}) translate(${offset},${offset})`, - '-webkit-transform': `scale(${scale}) translate(${offset},${offset})`, - '-moz-transform': `scale(${scale}) translate(${offset},${offset})`, - '-o-transform': `scale(${scale}) translate(${offset},${offset})`, - '-ms-transform': `scale(${scale}) translate(${offset},${offset})`, - }" - > - <transition - name="animate__animated animate__bounce" - @click="switchImagerLayerShowOrHide" - enter-active-class="animate__backInRight" - leave-active-class="animate__backOutRight" - appear - > + <div id="switchImagerLayer" :style="{ + transform: `scale(${scale}) translate(${offset},${offset})`, + '-webkit-transform': `scale(${scale}) translate(${offset},${offset})`, + '-moz-transform': `scale(${scale}) translate(${offset},${offset})`, + '-o-transform': `scale(${scale}) translate(${offset},${offset})`, + '-ms-transform': `scale(${scale}) translate(${offset},${offset})`, + }"> + <transition name="animate__animated animate__bounce" @click="switchImagerLayerShowOrHide" + enter-active-class="animate__backInRight" leave-active-class="animate__backOutRight" appear> <switchImagerLayer v-show="switchImagerLayer" /> </transition> - <img - class="swichImg" - @click="switchImagerLayerShowOrHide" - :src="switchImage" - /> + <img class="swichImg" @click="switchImagerLayerShowOrHide" :src="switchImage" /> <div class="bgbox"> - <img - class="swichImg" - @click="switchImagerLayerShowOrHide" - src="@/assets/img/new/shiliang.png" - /> - <img - class="swichImg bgbox" - @click="switchImagerLayerShowOrHide" - src="@/assets/img/new/shiliang.png" - /> + <img class="swichImg" @click="switchImagerLayerShowOrHide" src="@/assets/img/new/shiliang.png" /> + <img class="swichImg bgbox" @click="switchImagerLayerShowOrHide" src="@/assets/img/new/shiliang.png" /> </div> </div> </div> @@ -87,8 +67,8 @@ window.sgworld = new SmartEarth.EarthCtrl( "sdkContainer", { - // StaticFileBaseUrl: "../../../static/CimSDK/", - StaticFileBaseUrl: "../../../YZXNCS/static/CimSDK/", + StaticFileBaseUrl: "../../../static/CimSDK/", + // StaticFileBaseUrl: "../../../YZXNCS/static/CimSDK/", }, {}, {}, @@ -202,6 +182,16 @@ }, }, }); + + + + + + + + + + //鍒濆鍖栧脊绐椾簨浠� // that.showBottom(); that.initLayerOpen(); @@ -452,12 +442,14 @@ border-radius: 10px; cursor: pointer; } + .bgbox { position: absolute; top: 0; left: 8px; z-index: -1; } + .mid { position: absolute; top: 50%; -- Gitblit v1.9.3