_home.scss 5.75 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: pxToRem(40px);
            right: pxToRem(30px);
            width: pxToRem(88px);
            height: pxToRem(88px);
            line-height: pxToRem(88px);
            text-align: center;

            &.highlight {
                background: rgba(200,200,200,.1)!important;
            }
        }
    }

    .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: rgba(0,0,0,0.8);
        height: pxToRem(76px);

        .link-item {
            position: relative;
            float: left;
            color: #fff;
            font-size: pxToRem(28px);
            width: pxToRem(320px);
            // width: pxToRem(213px); 三栏宽度

            &.highlight {
                background: rgba(200,200,200,.1) !important;
            }

            p {
                font-size: pxToRem(24px);
            }

            &: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 p {
                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 {
            display: block;
            padding: 0 pxToRem(30px);
            font-size: 16px;
            line-height: pxToRem(88px);

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

            &.highlight {
                background: #eee;
            }
        }

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

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

                &.highlight {
                    background: #eee;
                }

                .num {
                    position: absolute;
                    top: pxToRem(-24px);
                    right: pxToRem(36px);
                    width: pxToRem(72px);
                    height: pxToRem(72px);
                    font-size: pxToRem(40px);
                    line-height: pxToRem(72px);
                    color: #fff;
                    background: #f03d35;
                    text-align: center;
                    border-radius: 50%;
                    @include transform(scale(0.5));
                }
            }

            .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: 16px;
            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;
        }
    }
}