Modal.scss 1.8 KB
.modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9800;
    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;
    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-tip {
        font-weight: 600;
        font-size: 40rpx;
        color: #282829;
        padding-top: 116rpx;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        .color_price{
            color: #FC5B32;
        }
    }

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

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

        .right {
            background: #FC5B32;
            border: 1.6rpx solid #FC5B32;
            box-shadow: 0 4rpx 12rpx 4rpx #f13c3d1a;
            border-radius: 20rpx;
            color: #FFFFFF;
            margin-left: 16rpx;
        }
    }

}