Blame view

static/sass/me/_fav.scss 10.8 KB
lore-w authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
.yoho-favorite-page {
    width: 100%;
    height: auto;

    // 选项卡切换
    .fav-tab {
        width: 100%;
        height: pxToRem(88px);
        line-height: pxToRem(88px);
        border-bottom: 1px solid #e0e0e0;
        color: #b0b0b0;
        font-size: pxToRem(26px);

        li {
            width: 50%;
            height: 100%;
            float: left;
            text-align: center;

            &.active {
                color: #444;
            }

            &:nth-last-of-type(1) {
                float: right;
                position: relative;

                &:after {
                    content: '';
                    display: block;
                    width: 1px;
                    height: pxToRem(44px);
                    position: absolute;
                    left: 0;
                    top: pxToRem(22px);
                    background: #b0b0b0;
                }
            }
        }
    }

    //收藏主体
    .fav-content {
lore-w authored
44
        //padding: 0 pxToRem(30px);
lore-w authored
45
lore-w authored
46 47 48 49 50 51 52
        .fav-type {
            display: none;
        }
        .show {
            display: block;
        }
lore-w authored
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
        .fav-null {
            font-size: pxToRem(22px);
            color: #444;
            display: block;
            margin-top: pxToRem(100px);
            text-align: center;

            &:before {
                content: '';
                display: block;
                @include rem-sprite($fav, fav-null);
                width: pxToRem(image_width(sprite-file($fav, fav-null)));
                height: pxToRem(image_height(sprite-file($fav, fav-null)));

                margin: 0 auto pxToRem(45px) auto;
            }
        }

        .go-shopping {
            width: pxToRem(472px);
            height: pxToRem(88px);
            line-height: pxToRem(88px);
75
            margin: pxToRem(80px) auto 0 auto;
lore-w authored
76 77 78 79 80 81
            background: #444;
            text-align: center;
            color: #fff;
            display: block;
            font-size: pxToRem(26px);
        }
lore-w authored
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128

        .fav-product-list {
            list-style: none;
            margin-left: pxToRem(30px);

            li {
                height: auto;
                overflow: hidden;
                margin-top: pxToRem(20px);
            }

            .fav-img-box {
                width: pxToRem(90px);
                height: pxToRem(120px);
                float: left;
                margin-right: pxToRem(24px);

                img {
                    display: block;
                    overflow: hidden;
                    width: 100%;
                    height: 100%;
                }
            }

            .fav-info-list {
                color: #444;
                font-size: pxToRem(24px);
                border-bottom: 1px solid #e0e0e0;
                padding-bottom: pxToRem(20px);
                height: pxToRem(120px);
                overflow: hidden;
                position: relative;

                h2 {
                    width: pxToRem(430px);
                    @include ellipsis();
                }

                .fav-price {

                    .new-price {
                        color: #d1021c;
                    }

                    .price-underline {
                        text-decoration: line-through;
129
                        margin-left: pxToRem(15px);
lore-w authored
130
                        color: #b0b0b0;
lore-w authored
131 132 133 134 135 136 137 138 139 140 141
                    }
                }

                .save-price {
                    $width: pxToRem(image_width(sprite-file($fav, save-price)));
                    $height: pxToRem(image_height(sprite-file($fav, save-price)));

                    position: absolute;
                    bottom: pxToRem(20px);
                    left: 0;
                    width: 100%;
142
                    min-height: pxToRem(24px);
lore-w authored
143 144 145

                    &.save-price-number {
                        text-indent: $width + pxToRem(10px);
lore-w authored
146 147
                        color: #b0b0b0;
                        padding-top: pxToRem(3px);
lore-w authored
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162

                        &:before {
                            content: '';
                            display: block;

                            @include rem-sprite($fav, save-price);
                            width: $width;
                            height: $height;

                            position: absolute;
                            top: 50%;
                            left: 0;
                            margin-top: -$height / 2;

                        }
lore-w authored
163 164 165
                        span {
                            margin-left: pxToRem(15px);
                        }
166 167
                        .del-fav {
                            text-indent: 0;
lore-w authored
168
                            margin-left: 0;
169
                        }
lore-w authored
170 171 172 173 174 175 176 177 178 179 180 181 182 183
                    }

                    span {
                        color: #d1021c;

                        &.sell-out {
                            padding: pxToRem(5px) pxToRem(18px);
                            color: #fffefe;
                            @include border-radius(pxToRem(20px));
                            background: #7f7f7f;
                            font-size: pxToRem(22px);
                        }

                        &.del-fav {
184 185 186
                            width: 2rem;
                            height: 1.5rem;
                            line-height: 1.5rem;
lore-w authored
187 188
                            position: absolute;
                            top: 50%;
189 190
                            margin-top: -0.75rem;
                            right: 0;
191 192 193 194 195
                            color: #999;

                            padding-right: 0.75rem;
                            text-align: right;
lore-w authored
196 197 198 199 200 201 202
                        }
                    }
                }
            }
        }
        //品牌收藏
        .fav-brand-swiper {
lore-w authored
203 204 205
            border-top: 1px solid #e0e0e0;
            border-bottom: pxToRem(28px) solid #f0f0f0;
            position: relative;
206
lore-w authored
207 208 209 210 211 212 213 214 215 216 217 218 219
            &:nth-of-type(1) {
                border-top: 0;
            }

            &:after {
                content: '';
                position: absolute;
                left: 0;
                bottom: -2px;
                border-top: 1px solid #e0e0e0;
                display: block;
                width: 100%;
                height: 1px;
220
            }
lore-w authored
221 222

            .swiper-header {
lore-w authored
223
                height: pxToRem(100px);
lore-w authored
224 225
                padding: pxToRem(20px) pxToRem(30px);
                display: inline-block;
lore-w authored
226 227 228
                position: relative;
                width: 100%;
                @include box-sizing();
lore-w authored
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270

                .swiper-logo {
                    height: 100%;
                    display: inline-block;
                    float: left;
                    margin-right: pxToRem(45px);

                    > img {
                        max-height: 100%;
                        vertical-align: middle;
                    }
                }

                .brand-info {
                    float: left;

                    .brand-name {
                        font-size: pxToRem(28px);

                        b {
                            color: #b0b0b0;
                            font-weight: normal;
                        }
                    }

                    .brand-update {
                        font-size: pxToRem(22px);

                        b {
                            color: #b0b0b0;
                            font-weight: normal;
                        }

                        .brand-new {
                            color: #86bf4a;
                            margin-right: pxToRem(24px);
                        }
                        .brand-discount {
                            color: #d1021c;
                        }
                    }
                }
lore-w authored
271
                .fav-more {
272 273
                    width: 2.5rem;
                    height: 2.5rem;
lore-w authored
274
                    position: absolute;
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
                    top: 0;
                    right: 0;

                    &:after {
                        $width: pxToRem(image_width(sprite-file($fav, fav-more)));
                        $height: pxToRem(image_height(sprite-file($fav, fav-more)));

                        @include rem-sprite($fav, fav-more);
                        width: $width;
                        height: $height;

                        position: absolute;
                        top: 50%;
                        right: pxToRem(30px);
                        margin-top: -$height / 2;
                        content: '';
                    }
lore-w authored
292
                }
lore-w authored
293 294
            }
            .swiper-container {
lore-w authored
295
                height: pxToRem(365px);
lore-w authored
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
                margin: 0 pxToRem(30px);

                .swiper-slide {
                    width: pxToRem(225px);
                    //width: (225/580)*100%;
                    height: 100%;
                    float: left;
                    padding-right: pxToRem(30px);

                    &:nth-last-of-type(1) {
                        padding-right: 0;
                    }

                    img {
                        display: block;
                        width: 100%;
lore-w authored
312
                        height: pxToRem(300px);
lore-w authored
313 314
                        overflow: hidden;
                    }
lore-w authored
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
                    .brand-product {
                        height: pxToRem(65px);
                        line-height: pxToRem(65px);
                        text-align: center;
                        font-size: pxToRem(22px);

                        .price-discount {
                            span {
                                color: #d1021c
                            }
                            b {
                                color: #b0b0b0;
                                text-decoration: line-through;
                                font-weight: normal;
                                margin-left: pxToRem(13px);
                            }
                        }
                    }
lore-w authored
333 334 335
                }
            }
        }
lore-w authored
336
    }
337 338 339 340 341 342 343 344 345 346 347 348 349 350

    //上拉加载更多
    .fav-load-more,.fav-brand-load-more {
        width: 100%;
        height: 2rem;
        line-height: 2rem;
        text-align: center;
        color: #444;

        &.load-background {
            background: image_url('loading.gif') center center no-repeat;
            @include background-size(auto 40%);
        }
    }
351 352 353 354 355
    .fav-content-loading {
        width: 100%;
        height: 2rem;
        background: image_url('loading.gif') center center no-repeat;
        @include background-size(auto 40%);
356 357 358 359 360

        position: absolute;
        top: 50%;
        left: 0;
        margin-top: -1rem;
361
    }
lore-w authored
362
}