index.sass 2.42 KB
.modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 98;
    perspective: 99999999px;

    .modal-bg {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        animation: show-popup-bg .1s forwards .1s;
    }
}

@keyframes show-popup-bg {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }

    100% {
        background-color: rgba(45, 45, 51, .6);
    }
}

.modal-box {
    width: 590rpx;
    padding-bottom: 48rpx;
    background: #FFFFFF;
    box-shadow: inset 0 0 48rpx 16rpx #E0EAFF;
    border-radius: 20rpx;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    animation: show-modal .1s forwards;
    display: flex;
    align-items: center;
    flex-direction: column;

    .modal-title {
        font-weight: 600;
        font-size: 40rpx;
        color: #3D5BD6;
        margin-top: 64rpx;
        margin-bottom: 24rpx;
    }

    .modal-tip {
        font-weight: 400;
        font-size: 30rpx;
        color: #7A8299;
    }

    .modal-main {
        margin-top: 48rpx;
        .cell {
            display: flex;
            margin-bottom: 8rpx;

            .label {
                width: 120rpx;
                height: 56rpx;
                font-weight: 400;
                font-size: 30rpx;
                color: #7A8299;
                margin-right: 24rpx;
                line-height: 56rpx;
            }

            .value {
                font-weight: 400;
                font-size: 30rpx;
                color: #1B233D;
                line-height: 56rpx;
                white-space: pre-wrap;
                word-break: break-all;
            }
        }
    }

    .modal-footer {
        margin-top: 64rpx;
        display: flex;
        align-items: center;
        justify-content: center;

        .btn {
            width: 240rpx;
            height: 88rpx;
            background: #FFFFFF;
            border: 2rpx solid #4466F0;
            border-radius: 12rpx;
            font-weight: 500;
            font-size: 32rpx;
            color: #3D5BD6;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .right {
            border: none;
            background-image: linear-gradient(-78deg, #556AF5 0%, #7197FF 100%);
            border-radius: 12rpx;
            color: #FFFFFF;
        }
    }

}