_home.scss 4.69 KB
.my-page {
    color: #444;
    background: #f0f0f0;

    a {
        color: #444;
    }

    .user-info {
        display: block;
        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; 
            background-image: image-url("me/index/user-avatar.png");
            background-size: 100%;
        }

        .username {
            float: left;
            padding: 0 pxToRem(16px);
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            max-width: pxToRem(290px);
        }

        .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;
        }
    }

    .login-btn {
        display: block;
        position: absolute;
        top: pxToRem(40px);
        left: pxToRem(194px);
        width: pxToRem(244px);
        height: pxToRem(82px);
        line-height: pxToRem(82px);
        color: #fff;
        border: pxToRem(4px) solid #fff;
        text-align: center;
    }

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

        .link-item {
            position: relative;
            float: left;
            color: #fff;
            font-size: pxToRem(22px);
            line-height: pxToRem(38px);
            width: pxToRem(213px);
            
            &:after {
                content: '';
                position: absolute;
                right: 0;
                top: pxToRem(24px);
                width: 0;
                height: pxToRem(44px);
                border-right: 1px solid #fff;
            }

            &:last-of-type:after {
                content: none;
            }
        }

        &.no-login {
            padding: 0;
            height: pxToRem(88px);
            .link-item {
                font-size: pxToRem(32px);
                line-height: pxToRem(88px);
            }
        }
    }

    .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);

                &.highlight {
                    background: #eee;
                }
            }

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

    .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);
            
            &.highlight {
                background: #eee;
            }

            &: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;
        }
    }
}