guanqb
2023-01-05 4fdf407c315aa4e0fb25e87419f441a0d7c3a8c2
src/components/map/components/mapPopup.vue
@@ -1,8 +1,7 @@
<template>
    <div>
        <div v-if="detailsPopup" id="divFormsDomBox" class="container">
            <div v-if="detailsPopup" class="divForms-dom" id="divFormsDomBox">
                <div class="box">
            <div style="width: 100%; height: 100%; transform: translate(0, 50%);">
                    <div class="divForms divForms-theme">
                        <div class="divForms-wrap">
                            <div class="area">
@@ -16,6 +15,10 @@
                                    <div class="title">
                                        详细信息
                                        <div class="close" @click="closePopup" title="关闭"></div>
                                </div>
                                <div class="change-btn">
                                    <div class="on">接警信息</div>
                                    <div>出警信息</div>
                                    </div>
                                    <div class="label-content">
                                        <div class="item">
@@ -69,7 +72,6 @@
                </div>
            </div>
        </div>
    </div>
</template>
<script>
@@ -91,107 +93,38 @@
</script>
<style lang="scss" scoped>
.container {
    position: fixed;
    left: 0;
    z-index: 1 !important;
    width: 280px;
    height: 360px;
    // background: $bg-color;
    color: #fff;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-self: flex-start;
    align-content: flex-start;
    .title {
        height: 40px;
        line-height: 42px;
        width: 100%;
        position: relative;
        background-image: linear-gradient(
            135deg,
            transparent 25px,
            #29baf1 25px
        );
        .close {
            position: absolute;
            right: 5px;
            top: -2px;
        }
        .close::before {
            font-family: element-icons;
            content: '\e6db';
            cursor: pointer;
            font-size: 16px;
        }
        .close:hover::before {
            color: #3d95f3;
        }
    }
    .item {
        display: flex;
        flex-direction: row;
        width: calc(100% - 20px);
        height: 30px;
        line-height: 30px;
        margin: 0 10px;
        text-align: left;
        & > div:first-child {
            width: 100px;
            text-align: justify;
            display: inline-block;
            text-align-last: justify;
            margin-right: 20px;
        }
        & > div:nth-of-type(2) {
            width: calc(100% - 120px);
        }
    }
    .divForms-dom {
        position: fixed;
        left: 0;
        z-index: 1 !important;
    }
    .box {
        width: 100%;
        height: 100%;
        transform: translate(0, 25%);
    }
    .divForms .arrow {
        position: absolute;
        bottom: 40%;
        left: 0;
    bottom: 50%;
    left: -8px;
        width: 45px;
        height: 2px;
        transform: rotate(-45deg) translate(5px, -15px);
    transform: rotate(-45deg);
        background-color: #28bbf0;
    }
    .divForms-theme .area {
        background-image: linear-gradient(
                135deg,
    background-image: linear-gradient(135deg,
                transparent 30px,
                #1831a79a 30px,
                #3f487ba6 50%,
                transparent 50%
            ),
            linear-gradient(
                -45deg,
            transparent 50%),
        linear-gradient(-45deg,
                transparent 30px,
                #1831a79a 30px,
                #3f487ba6 50.1%,
                transparent 50%
            );
            transparent 50%);
    }
    .divForms .area {
        position: relative;
        min-width: 320px;
    min-width: 420px;
    }
    .divForms-wrap {
@@ -272,26 +205,83 @@
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
    .change-btn {
        margin-top: 6px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        &>div {
            width: 36%;
            height: 36px;
            line-height: 36px;
            cursor: pointer;
    }
    .divForms-theme .title {
        background-image: linear-gradient(
            135deg,
            transparent 25px,
            #1c309e9a 25px
        );
        &>div.on {
            border-bottom: 2px solid #1831a7;
        }
    }
    .label-content {
        padding: 4px 0;
        .item {
            display: flex;
            flex-direction: row;
            width: calc(100% - 20px);
            height: 30px;
            line-height: 30px;
            margin: 0 10px;
            text-align: left;
            &>div:first-child {
                width: 96px;
                text-align: justify;
                display: inline-block;
                text-align-last: justify;
                margin-right: 20px;
            }
            &>div:nth-of-type(2) {
                width: calc(100% - 120px);
            }
        }
    }
    }
    .divForms .title {
    position: relative;
        margin-top: 20px;
        padding: 0 12px 0 30px;
        height: 36px;
        line-height: 36px;
        position: relative;
    .close {
        position: absolute;
        right: 5px;
        top: -2px;
    }
    .divForms .label-content {
        padding: 4px 0;
    .close::before {
        font-family: element-icons;
        content: '\e6db';
        cursor: pointer;
        font-size: 16px;
    }
    .close:hover::before {
        color: #3d95f3;
    }
}
.divForms-theme .title {
    background-image: linear-gradient(135deg,
            transparent 25px,
            #1c309e9a 25px);
    }
    .divForms-theme .arrow,
@@ -307,6 +297,5 @@
        right: 0;
        z-index: 10;
        height: 2px;
    }
}
</style>