_order.scss 3.87 KB
.order-page {
    background: #f0f0f0;

    .order {
        display: block;
        background: #fff;
        margin: 30rem / $pxConvertRem 0;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;

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

        .header, .footer {
            height: 90rem / $pxConvertRem;
            line-height: 90rem / $pxConvertRem;
            font-size: 30rem / $pxConvertRem;
            padding: 0 30rem / $pxConvertRem;
        }

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

        .order-status {
            float: right;
        }

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

        .sum-cost {
            color: #e01;
        }

        .order-opt {
            padding: 30rem / $pxConvertRem 0;
            padding-right: 30rem / $pxConvertRem;
            border-top: 1px solid #e0e0e0;
            text-align: right;

            .btn {
                display: inline-block;
                box-sizing: border-box;
                height: 60rem / $pxConvertRem;
                line-height: 60rem / $pxConvertRem;
                width: 140rem / $pxConvertRem;
                font-size: 24rem / $pxConvertRem;
                text-align: center;
                border: 1px solid #000;
                @include border-radius(5px);
            }

            .pay {
                background: #d0021b;
                color: #fff;
                border: none;
                margin-left: 20rem / $pxConvertRem;
            }
        }
    }

    .no-order {
        text-align: center;
        color: #f0f0f0;

        .iconfont {
            font-size: 50px;
        }

        .walk-way {
            display: block;
            color: #fff;
            background: #fff;
            @include border-radius(5px);
        }
    }
}

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

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

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

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

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

    .thumb-wrap {
        position: relative;
        float: left;
        width: 120rem / $pxConvertRem;
        height: 160rem / $pxConvertRem;
    }

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

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

    .gift-tag {
        height: 25rem / $pxConvertRem;
        background: #a1ce4e;
        &:before {
            content: '赠品';
        }
    }

    .advance-buy-tag {
        height: 25rem / $pxConvertRem;
        background: #eb76aa;
        &:before {
            content: '加价购';
        }
    }

    .deps {
        margin-left: 135rem / $pxConvertRem;
    }

    .name {
        font-size: 28rem / $pxConvertRem;
        max-width: 70%;
    }

    .row:nth-child(2) {
        height: 45rem / $pxConvertRem;
        line-height: 45rem / $pxConvertRem;

        > span {
            margin-right: 15rem / $pxConvertRem;
        }
    }

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

    .price-wrap {
        position: absolute;
        top: 20rem / $pxConvertRem;
        right: 30rem / $pxConvertRem;
    }

    .price {
        color: #e01;
    }

    .count {
        display: block;
        color: #999;
        text-align: right;
        line-height: 45rem / $pxConvertRem;
    }
}