_order.css 8.05 KB
.order-page {
    background: #f0f0f0;

    .reason-mask,
    .refund-reason-mask {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 5;
        visibility: hidden;

        .reason-box,
        .refund-reason-box {
            border-bottom: 1px solid #ccc;
            font: inherit;
            position: absolute;
            vertical-align: baseline;
            bottom: 0;
            width: 100%;
            height: 380px;
            color: #444;
            background: #fff;
            padding-bottom: 20px;

            .box-head {
                height: 60px;
                line-height: 60px;
                text-align: right;
                font-size: 36px;
                background: rgb(240, 240, 240);
                padding-right: 30px;
            }

            .box-main,
            .refund-box-main {
                background: #fff;
                padding: 20px;
                height: 300px;

                .active-mask {
                    width: 500px;
                    height: 60px;
                    position: absolute;
                    left: 50%;
                    top: 47%;
                    margin-top: -18px;
                    margin-left: -250px;
                    z-index: 8;
                    background: rgba(255, 255, 255, 0.1);
                    border-bottom: 1px solid rgb(223, 224, 224);
                    border-top: 1px solid rgb(223, 224, 224);
                }
            }

            li {
                text-align: center;
                background: #fff;
                color: rgba(0, 0, 0, 0.5);
                font-size: 28px;
            }

            .swiper-slide-active {
                padding-top: 0;
                font-style: normal;
                font-size: 32px;
                color: rgb(0, 0, 0);
                line-height: 58px;
            }
        }
    }

    .order {
        position: relative;
        display: block;
        background: #fff;
        margin: 30px 0;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;

        &:last-child {
            margin-bottom: 0;
        }

        .header,
        .footer {
            height: 90px;
            line-height: 90px;
            font-size: 30px;
            padding: 0 30px;
        }

        .header {
            border-bottom: 1px solid #e0e0e0;
        }

        .order-status {
            float: right;
        }

        .footer {
            text-align: right;
            border-top: 1px solid #e0e0e0;
        }

        .sum-cost {
            color: #e01;
            margin-left: 5px;
        }

        .order-opt {
            padding: 20px 0;
            padding-right: 20px;
            border-top: 1px solid #e0e0e0;
            text-align: right;
            overflow: hidden;

            .btn {
                display: inline-block;
                box-sizing: border-box;
                height: 60px;
                line-height: 60px;
                width: 140px;
                font-size: 24px;
                text-align: center;
                border: 1px solid #000;
                border-radius: 5PX;
                margin-left: 15px;
                margin-top: 5px;
            }

            .pay {
                background: #d0021b;
                color: #fff;
                border: none;
            }

            .count-down {
                list-style: none;
                padding: 0;
                display: inline-block;
                text-align: right;
                font-size: 24px;
                color: #b0b0b0;
                float: left;
                margin-left: 30px;
                margin-top: 20px;

                .count-down-icon {
                    margin-top: -8px;
                    font-size: 30px;
                }

                &.hide {
                    display: none;
                }

                li {
                    display: inline-block;
                }

                li span {
                    font-size: 24px;
                    line-height: 24px;
                }
            }

            .order-opt-info {
                color: #b6b6b6;
            }

            .after-sales {
                border: 1px solid #d0021b;
                color: #d0021b;
                text-align: center;
            }
        }
    }

    .no-order {
        position: fixed;
        background: #fff;
        text-align: center;
        top: 50%;
        margin-top: -220px;
        width: 100%;

        .icon {
            width: 153px;
            height: 196px;
            background: resolve("home/no-order.png") no-repeat;
            background-size: 100%;
            margin: 0 auto;
        }

        span {
            display: block;
            color: #444;
            font-size: 24px;
            margin: 30px 0 80px;
        }

        .walk-way {
            display: block;
            height: 80px;
            line-height: 80px;
            width: 70%;
            margin: 0 auto;
            text-align: center;
            font-size: 30px;
            color: #fff;
            background: #444;
            border-radius: 5PX;
        }
    }
}

.order-nav {
    border-bottom: 1px solid #e0e0e0;
    background: #fff;

    a {
        display: block;
        height: 100%;
        width: 100%;
        color: #b0b0b0;
    }

    > li {
        float: left;
        height: 90px;
        width: 25%;
        line-height: 90px;
        color: #b0b0b0;
        font-size: 26px;
        text-align: center;

        &.active a {
            color: #000;
        }
    }
}

.order-good {
    position: relative;
    margin: 20px 0;
    margin-left: 34px;
    height: 160px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 26px;

    &:last-child {
        border-bottom: none;
    }

    .thumb-wrap {
        position: relative;
        float: left;
        width: 120px;
        height: 160px;
    }

    .thumb {
        width: 100%;
        height: 100%;
    }

    .tag {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        color: #fff;
        text-align: center;
        font-size: 12px;

        &:before {
            display: block;
            line-height: 1;
            transform: scale(0.833);
        }
    }

    .gift-tag {
        height: 25px;
        background: #a1ce4e;

        &:before {
            content: "赠品";
        }
    }

    .advance-buy-tag {
        height: 25px;
        background: #eb76aa;

        &:before {
            content: "加价购";
        }
    }

    .deps {
        margin-left: 135px;
    }

    .name {
        font-size: 28px;
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .row:nth-child(2) {
        height: 45px;
        line-height: 45px;
        width: 90%;

        > span {
            margin-right: 15px;
        }
    }

    .row .color {
        display: inline-block;
        max-width: 4rem;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        vertical-align: bottom;
    }

    .color,
    .size {
        color: #b6b6b6;
    }

    .price-wrap {
        position: absolute;
        top: 0;
        right: 30px;
        text-align: right;
    }

    .price {
        color: #e01;
    }

    .count {
        display: block;
        color: #999;
        text-align: right;
        line-height: 45px;
    }

    .appear-date {
        color: #f00;
    }
}

.modal-btn {
    width: 100%;
    height: 60px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    display: inline-block;

    button {
        width: 268px;
        border: 0;
        float: left;
        height: 68px;
        background-color: #fff;
        border-top: 1px solid #ccc;
    }

    button:first-child {
        border-bottom-left-radius: 4px;
        border-right: 1px solid #ccc;
    }

    button:last-child {
        border-bottom-right-radius: 4px;
        color: #d0021b;
    }
}