guanqb
2022-10-24 1a4c2e1573f616c12a342f3e4fea38af6403c6a5
Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
2 files modified
27 ■■■■ changed files
src/styles/dc/index.scss 18 ●●●● patch | view | raw | blame | history
src/views/home/index.vue 9 ●●●● patch | view | raw | blame | history
src/styles/dc/index.scss
@@ -11,7 +11,7 @@
.dc-location-bar {
    left: 50% !important;
    bottom: 310px !important;
    bottom: 10px !important;
    transform: translate(-50%, 0);
    background-color: $bg-color !important;
@@ -19,7 +19,7 @@
.dc-zoom-controller {
    top: auto !important;
    bottom: 370px !important;
    bottom: 70px !important;
    left: 420px !important;
    width: 36px !important;
    height: auto !important;
@@ -44,13 +44,21 @@
    }
}
.dc-location-bar.homebottom {
    bottom: 310px !important;
}
.dc-zoom-controller.homebottom {
    bottom: 370px !important;
}
.screen-full-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 420px;
    bottom: 310px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
@@ -69,4 +77,8 @@
    //         background: rgba(0, 0, 0, 0.025);
    //     }
    // }
}
.screen-full-btn.homebottom {
    bottom: 310px;
}
src/views/home/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-10-24 09:52:38
 * @LastEditTime: 2022-10-24 10:46:00
 * @FilePath: \srs-police-affairs\src\views\home\index.vue
 * @Description: 小区-栋-层-房屋
 * 
@@ -535,6 +535,10 @@
        this.$nextTick(() => {
            this.initPoliceStationLayer()
            document.querySelector('.dc-container .dc-zoom-controller').classList.add('homebottom')
            document.querySelector('.dc-container .dc-location-bar').classList.add('homebottom')
            document.querySelector('.screen-full-btn').classList.add('homebottom')
        })
        // axios.get('/user/getUserList').then((res) => {
@@ -1488,6 +1492,9 @@
        cylinderLayer.remove()
        cylinderLayer = null
        document.querySelector('.dc-container .dc-zoom-controller').classList.remove('homebottom')
        document.querySelector('.dc-container .dc-location-bar').classList.remove('homebottom')
        document.querySelector('.screen-full-btn').classList.remove('homebottom')
        window.removeEventListener('resize', this.setDomLeft)
    },
}