_order.css 6.08 KB
$black: #000;
$white: #fff;

.main-wrap,
#home-order-list,
#refund-order-list {
    height: 100%;
}

.order-wrapper {
    background: #f6f6f6;

    .order-item {
        background: $white;
        margin-top: 20px;
        border-bottom: 1px solid #eee;

        &:first-child {
            margin-top: 0;
        }
    }

    .order-detail {
        padding: 0 30px;

        .order-code,
        .order-option,
        .goods-info {
            display: flex;

            > div {
                box-sizing: border-box;
            }
        }
    }

    .order-code {
        height: 88px;
        font-size: 34px;
        border-bottom: 1px solid #eee;
        line-height: 88px;
        position: relative;

        > p:first-child {
            flex: 1;
        }

        .exchange {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            height: 40%;
            line-height: 1.2;
            padding: 5px 18px;
            color: #fffefe;
            background: #b0b0b0;
            border-radius: 20px;
            font-size: 20px;
            margin-left: 20px;
        }
    }

    .order-goods {
        .goods-info {
            position: relative;
            padding: 20px 0;
            border-bottom: 1px solid #eee;

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

            > a {
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                top: 0;
                width: 100%;
                opacity: 0;
            }
        }

        .img-box {
            position: relative;
            width: 98px;
            height: 130px;
            overflow: hidden;

            label {
                position: absolute;
                left: 0;
                bottom: 0;
                width: 100%;
                height: 30px;
                line-height: 30px;
                background: rgba(0, 0, 0, 0.2);
                color: $white;
                text-align: center;

                &.price-gift {
                    background: #eb76aa;
                }
            }

            img {
                width: 100%;
                height: 100%;
            }
        }

        .goods-detail {
            flex: 1;
            margin: 0 24px;
            font-size: 24px;

            span {
                margin-right: 40px;
            }

            .name {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                text-overflow: ellipsis;

                /* height: 2.4em; */
                line-height: 1.25;
                overflow: hidden;
                font-size: 28px;
            }

            .size {
                color: #b0b0b0;
                margin: 20px 0;
            }
        }

        .goods-price {
            text-align: right;

            p:first-of-type {
                font-size: 28px;
            }

            p:last-of-type {
                font-size: 20px;
                color: #b0b0b0;
            }
        }
    }

    .order-option {
        padding: 30px 0;
        border-top: 1px solid #eee;

        .goods-total {
            flex: 1;
            font-size: 28px;
            line-height: 68px;
        }

        .options {
            a {
                padding: 0 20px;
                height: 68px;
                line-height: 68px;
                color: $black;
                text-align: center;
                -webkit-appearance: none;
                border: 0 none;
                background: $white;
                font-size: 28px;
                float: left;

                &.leftpad {
                    padding-right: 42px;
                }
            }

            button {
                padding: 0 20px;
                height: 68px;
                line-height: 68px;
                color: $black;
                text-align: center;
                -webkit-appearance: none;
                border: 0 none;
                background: $white;
                font-size: 28px;
                float: left;

                &.black {
                    width: 192px;
                    color: $white;
                    background: $black;
                }

                &.countdown {
                    color: $white;
                    background: $black;
                }

                &.normal {
                    width: 192px;
                    padding: 0;
                    border: 1px solid $black;
                    color: $black;
                }

                &.leftpad {
                    padding-right: 42px;
                }

                &:focus {
                    outline: none;
                }
            }

            .count-down {
                display: inline-block;
                width: 110px;
                text-align: left;
            }
        }
    }
}

.return-goods {
    .order-code {
        height: 128px;

        .code-time {
            flex: 1;

            p:first-child {
                margin-top: 8px;
                line-height: 60px;
            }

            p:nth-child(2) {
                font-size: 28px;
                line-height: 30px;
                color: #b0b0b0;
            }
        }

        > p:last-child {
            line-height: 128px;
            color: #4a90e2;
        }
    }
}

.order-empty {
    width: 100%;
    height: 100%;
    text-align: center;
    background: $white;

    &:before {
        content: "";
        display: inline-block;
        width: 153px;
        height: 195px;
        margin-top: 290px;
        background: resolve("me/noorder.png") no-repeat;
        background-size: 100%;
    }

    p {
        color: #b0b0b0;
    }

    p:first-of-type {
        font-size: 34px;
        margin: 50px 0 20px;
    }

    a {
        display: inline-block;
        width: 414px;
        height: 94px;
        margin-top: 60px;
        background: $black;
        color: $white;
        line-height: 94px;
        font-size: 28px;
    }
}

.cancel-reason {
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}