_home.scss 3.27 KB
.my-page {
    background: #f0f0f0;

    .user-info {
        position: relative;
        padding: 0 pxToRem(30px);
        color: #fff;
        font-size: pxToRem(34px);
        line-height: pxToRem(168px);
        height: pxToRem(168px);
        background: image-url("me/index/header-bg.jpg");
        background-size: cover;

        .user-avatar {
            float: left;
            position: relative;
            top: pxToRem(16px);
            width: pxToRem(126px);
            height: pxToRem(126px);
            border-radius: 50%;
            border: pxToRem(6px) solid #a7a8a9; 
        }

        .username {
            padding: 0 pxToRem(16px);
        }

        .vip-icon {
            display: inline-block;
            width: pxToRem(72px);
            height: pxToRem(32px);
            vertical-align: middle;
        }

        .vip-3 {
            @include rem-sprite($vip, vip-3); 
        }

        .vip-2 {
            @include rem-sprite($vip, vip-2);
        }

        .vip-1 {
            @include rem-sprite($vip, vip-1);
        }

        .more-icon {
            position: absolute;
            top: 0;
            right: 30rem / $pxConvertRem;
        }
    }

    .my-link {
        margin-bottom: pxToRem(30px);
        padding: pxToRem(6px) 0;
        text-align: center;
        background: #121314;
        height: pxToRem(76px);

        .link-item {
            float: left;
            color: #fff;
            font-size: pxToRem(22px);
            line-height: pxToRem(38px);
            width: pxToRem(213px);

        }
    }

    .my-order {
        margin-bottom: pxToRem(30px);
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        background: #fff;

        .order-title {
            padding: 0 pxToRem(30px);
            font-size: pxToRem(32px);
            line-height: pxToRem(88px);

            a {
                color: #e0e0e0;
                float: right;
            }
        }

        .order-type {
            padding: pxToRem(20px) pxToRem(30px);
            text-align: center;
            border-top: 1px solid #e0e0e0;

            .type-item {
                float: left;
                color: #444;
                font-size: pxToRem(28px);
                line-height: 1.5;
                width: pxToRem(193px);
            }

            .iconfont {
                font-size: pxToRem(60px);
            }
        }
    }

    .group-list {
        margin-bottom: pxToRem(30px);
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        background: #fff;

        .list-item {
            display: block;
            position: relative;
            padding: 0 pxToRem(30px);
            font-size: pxToRem(32px);
            line-height: pxToRem(88px);
            &:after {
                content: '';
                position: absolute;
                right: 0;
                bottom: 0;
                width: pxToRem(540px);
                height: 0;
                border-top: 1px solid #e0e0e0;
            }

            &:last-child:after {
                content: none;
            }
        }

        .icon {
            margin-right: pxToRem(10px);
            font-size: pxToRem(50px);
        }

        .num {
            color: #e0e0e0;
            float: right;
        }
    }
}