Blame view

public/scss/cart/index-new.scss 11.2 KB
1
.shopping-cart-page {
陈峰 authored
2 3
    margin-bottom: 120px;
    overflow-x: hidden;
陈峰 authored
4
陈峰 authored
5 6
    .cart-content {
        display: none;
陈峰 authored
7
        margin-top: 20px;
陈峰 authored
8
陈峰 authored
9 10 11
        &.active {
            display: block;
        }
陈峰 authored
12
陈峰 authored
13 14
        .tips {
            margin-top: -20px;
李靖 authored
15 16 17
            min-height: 70px;
            line-height: 40px;
            padding: 15px 0;
陈峰 authored
18
            font-size: 25px;
李靖 authored
19 20
            background: #ff7f81;
            color: #fff;
陈峰 authored
21 22
            padding-left: 30px;
            padding-right: 30px;
李靖 authored
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
            display: block;

            div {
                width: 570px;
                float: left;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .free-shipping {
                font-size: 25px;
                width: 120px;
                float: left;
                text-align: right;
                color: #fff;
            }
李靖 authored
40 41 42 43 44 45 46

            .precell-dia {
                .iconfont {
                    font-size: 50px;
                    vertical-align: middle;
                }
            }
陈峰 authored
47 48
        }
陈峰 authored
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
        .presell-info {
            margin-top: -20px;
            height: 105px;
            padding: 17px 35px;
            font-size: 25px;
            background: #f0f0f0;
            color: #b7b7b7;

            > span {
                display: block;
            }

            .iconfont {
                float: left;
                font-size: 52px;
            }

            .txt {
                height: 35px;
                line-height: 35px;
                margin-left: 93px;
            }
        }
陈峰 authored
72 73
    }
陈峰 authored
74 75 76
    .box {
        background-color: #fff;
        margin-top: 20px;
陈峰 authored
77
陈峰 authored
78 79 80
        &.cart-brand:first-child {
            margin-top: 0;
        }
81 82
    }
陈峰 authored
83
    .cart-nav {
陈峰 authored
84
        position: relative;
陈峰 authored
85 86 87
        color: #c6c6c6;
        border-bottom: 1PX solid #e0e0e0;
        background: #fff;
陈峰 authored
88 89 90
        display: none;

        .nav-item {
陈峰 authored
91 92 93
            padding: 35px 0;
            height: 35px;
            box-sizing: content-box;
陈峰 authored
94
            flex: 1;
陈峰 authored
95
            position: relative;
陈峰 authored
96
        }
97
陈峰 authored
98
        .nav-item.active {
陈峰 authored
99 100
            color: #000;
        }
101
陈峰 authored
102
        &.more {
郝肖肖 authored
103 104
            display: flex;
陈峰 authored
105 106 107 108 109 110 111 112 113 114
            .btn-edit {
                position: relative;
                margin-top: 24px;
                margin-right: 30px;
                top: initial;
                right: initial;
            }
        }

        .btn-edit {
陈峰 authored
115 116 117 118
            &:before {
                content: "编辑";
            }
陈峰 authored
119 120 121 122 123 124 125 126 127 128
            display: none;
            width: 100px;
            height: 60px;
            border-radius: 5PX;
            background-color: #efefef;
            color: #808080;
            position: absolute;
            top: 24px;
            right: 30px;
            font-size: 30px;
陈峰 authored
129
            padding: 0;
陈峰 authored
130 131
        }
陈峰 authored
132 133 134 135 136 137 138 139
        span {
            display: block;
            box-sizing: border-box;
            width: 100%;
            height: 35px;
            line-height: 35px;
            font-size: 35px;
            text-align: center;
陈峰 authored
140
            border-left: 1PX solid #e0e0e0;
陈峰 authored
141
        }
142
陈峰 authored
143 144
        .nav-item:first-child span {
            border: none;
陈峰 authored
145
        }
146
陈峰 authored
147
        .nav-item:last-child {
陈峰 authored
148 149
            position: relative;
        }
150
陈峰 authored
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
        .presell-tip {
            position: absolute;
            z-index: 1;
            left: -2rem;
            top: 1.75rem;
        }

        .triangle {
            width: 0;
            height: 0;
            border-left: 8PX solid transparent;
            border-right: 8PX solid transparent;
            border-bottom: 12PX solid #000;
            margin-left: 6rem;
        }

        .pt-content {
            position: relative;
            padding: 12px;
            background: #000;
            color: #fff;
            font-size: 14px;
            border-radius: 5PX;
            text-align: center;
            width: 7rem;
        }
177
    }
陈峰 authored
178
陈峰 authored
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
    .login-info {
        height: 54px;
        padding: 20px 23px;
        color: #24acaa;
        text-align: center;
        font-size: 33px;
        box-sizing: content-box;

        .iconfont {
            font-size: 33px;
        }

        .btn {
            display: inline-block;
            background: #ed0010;
            color: #fff;
            width: 94px;
            height: 54px;
            line-height: 54px;
        }
陈峰 authored
199 200 201
    }
}
陈峰 authored
202 203 204 205 206 207 208 209 210 211
.wechat-body {
    .cart-nav {
        display: flex;

        .btn-edit {
            display: block;
        }
    }
}
陈峰 authored
212
.more-box {
陈峰 authored
213
    transition: all 0.2s;
214
}
陈峰 authored
215
216 217
.promotion-header {
    width: 100%;
陈峰 authored
218 219 220 221
    height: 88px;
    overflow: hidden;
    padding: 11px 30px;
    border-bottom: solid 1PX #f0f0f0;
陈峰 authored
222
223
    .promo-item {
陈峰 authored
224 225 226 227
        height: 66px;
        line-height: 66px;
        font-size: 26px;
        color: #444;
228
        display: flex;
陈峰 authored
229
        width: 100%;
230
    }
陈峰 authored
231
陈峰 authored
232 233
    &.more-box {
        height: 108px;
陈峰 authored
234
陈峰 authored
235 236
        .promo-item {
            display: none;
陈峰 authored
237
陈峰 authored
238 239 240 241
            &:first-child {
                display: flex;
            }
        }
陈峰 authored
242
陈峰 authored
243 244
        .down-arrow {
            display: block;
245
        }
陈峰 authored
246
陈峰 authored
247 248
        &.down {
            height: auto;
陈峰 authored
249
            min-height: 108px;
陈峰 authored
250
陈峰 authored
251 252 253
            .promo-item {
                display: flex;
            }
陈峰 authored
254
陈峰 authored
255 256 257 258 259 260
            .down-arrow {
                .iconfont:before {
                    content: "\e608";
                }
            }
        }
陈峰 authored
261 262
    }
陈峰 authored
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
    .down-arrow {
        display: none;
        width: 100%;
        height: 34px;
        margin-top: -14px;
        text-align: center;

        .iconfont {
            color: #e0e0e0;
            font-size: 30px;

            &:before {
                content: "\e609";
            }
        }
陈峰 authored
278 279
    }
陈峰 authored
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
    .info {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        .cuxiao {
            margin-right: 11px;
            color: #ff575c;
            font-size: 30px;
        }

        .cuxiao:before {
            content: "\e6b5";
        }
295 296
    }
}
陈峰 authored
297
298
.to-gift {
陈峰 authored
299 300
    text-align: right;
    width: 139px;
陈峰 authored
301
302 303 304 305 306
    &.no-storage {
        a {
            color: #c6c6c6;
        }
    }
陈峰 authored
307
陈峰 authored
308 309 310 311
    a {
        color: #ff575c;
        font-size: 23px;
    }
312
}
陈峰 authored
313
314
.iconfont.to-arrow {
陈峰 authored
315 316
    color: #e0e0e0;
    margin-left: 11px;
陈峰 authored
317
陈峰 authored
318 319 320
    &:before {
        content: "\e604";
    }
321 322
}
陈峰 authored
323
.activity-title {
陈峰 authored
324 325 326
    background-color: #fff;
    font-size: 32px;
    padding: 20px 20px 0;
327 328
}
陈峰 authored
329
.activity {
陈峰 authored
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
    background-color: #fff;
    padding: 8px 20px 20px 32px;
    font-size: 26px;

    li:before {
        content: "";
        display: inline-block;
        margin-right: 11px;
        width: 8px;
        height: 8px;
        background-color: #000;
        border-radius: 50%;
        position: relative;
        left: 0;
        top: -0.12rem;
    }
346
}
陈峰 authored
347
348
.price-compute {
陈峰 authored
349 350 351 352
    background-color: #fff;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 28px;
陈峰 authored
353
    margin-bottom: 20px;
陈峰 authored
354 355 356 357 358 359 360 361 362

    .title {
        display: inline-block;
        width: 175px;
    }

    .minus {
        float: right;
    }
363
}
陈峰 authored
364
陈峰 authored
365
.main-wrap {
陈峰 authored
366
    background: #f0f0f0;
陈峰 authored
367
陈峰 authored
368 369 370 371
    .nav-btn {
        &:before {
            content: "编辑";
        }
陈峰 authored
372 373
    }
}
陈峰 authored
374
陈峰 authored
375
.main-wrap.edit {
陈峰 authored
376 377 378 379 380 381
    .nav-btn:before {
        content: "完成";
    }

    .btn-edit:before {
        content: "完成";
陈峰 authored
382
    }
陈峰 authored
383
陈峰 authored
384 385 386 387 388 389 390 391
    .all-gift-box {
        display: none;
    }

    .total {
        display: none;
    }
陈峰 authored
392 393 394 395 396 397
    .cart-content.active {
        .cart-footer {
            .check-all {
                .select {
                    display: none;
                }
陈峰 authored
398
陈峰 authored
399 400 401 402
                .edit {
                    display: block;
                }
            }
陈峰 authored
403
陈峰 authored
404 405 406 407
            .opts {
                &.edit {
                    display: flex;
                }
陈峰 authored
408
陈峰 authored
409 410 411 412
                &.bill {
                    display: none;
                }
            }
陈峰 authored
413 414 415 416
        }
    }
}
417
.cart-footer {
陈峰 authored
418
    z-index: 1;
陈峰 authored
419 420 421 422 423 424 425
    background-color: #fff;
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    height: 120px;
    display: flex;
陈峰 authored
426
陈峰 authored
427 428 429 430
    .check-all {
        width: 90px;
        text-align: center;
        padding-top: 20px;
陈峰 authored
431
陈峰 authored
432 433 434
        .select {
            display: block;
        }
陈峰 authored
435
陈峰 authored
436 437 438
        .edit {
            display: none;
        }
陈峰 authored
439
陈峰 authored
440 441 442 443
        p {
            font-size: 26px;
            color: #666;
        }
444
    }
陈峰 authored
445
陈峰 authored
446 447 448 449 450 451
    .opts {
        flex: 1;
        padding: 18px;
        text-align: right;
        display: flex;
        justify-content: flex-end;
陈峰 authored
452
陈峰 authored
453 454 455
        &.edit {
            display: none;
        }
456
陈峰 authored
457 458 459
        &.bill {
            display: flex;
        }
陈峰 authored
460
陈峰 authored
461
        .btn {
陈峰 authored
462
            display: block;
陈峰 authored
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477
            width: 170px;
            height: 88px;
            border-radius: 5px;
            color: #fff;
            margin-left: 14px;
            margin-right: 14px;

            &.btn-gray {
                background-color: #444;
            }

            &.btn-red {
                background-color: #d1021c;
            }
        }
陈峰 authored
478
陈峰 authored
479 480 481
        .total {
            flex: 1;
            padding-top: 11px;
陈峰 authored
482
陈峰 authored
483 484 485 486
            .price {
                color: #d0253b;
                font-size: 32px;
            }
陈峰 authored
487
陈峰 authored
488 489 490 491 492
            .intro {
                color: #b6b6b6;
                font-size: 23px;
            }
        }
陈峰 authored
493
    }
陈峰 authored
494
}
陈峰 authored
495
陈峰 authored
496 497 498 499
.all-gift-box {
    .gift-item {
        width: 100%;
        display: flex;
陈峰 authored
500
陈峰 authored
501 502 503 504
        &:last-child {
            .content {
                border: none;
            }
505
        }
陈峰 authored
506
陈峰 authored
507 508 509 510 511 512 513 514 515 516 517 518
        .flag {
            width: 80px;
            line-height: 80px;
            padding-right: 18px;
            text-align: right;
            color: #444;

            .iconfont {
                vertical-align: middle;
                font-size: 32px;

                &.gift:before {
陈峰 authored
519
                    content: "\e6ec";
陈峰 authored
520 521 522 523 524 525
                }

                &.price-gift:before {
                    content: "\e645";
                }
            }
526
        }
陈峰 authored
527
陈峰 authored
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545
        .content {
            flex: 1;
            width: 100%;
            display: flex;
            height: 88px;
            line-height: 88px;
            padding-right: 30px;
            border-bottom: solid 1PX #f1f1f1;

            .info {
                flex: 1;
            }

            .opt {
                text-align: right;
                width: 139px;
            }
        }
546 547
    }
}
陈峰 authored
548
549
.disable-box {
陈峰 authored
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564
    .remove-all {
        width: 100%;
        height: 122px;
        border-top: solid 1PX #f1f1f1;
        text-align: center;
        padding-top: 30px;

        .btn-remove {
            width: 229px;
            height: 60px;
            border: solid 1PX #b0b0b0;
            background-color: #fff;
            color: #444;
            font-size: 29px;
            border-radius: 4px;
ccbikai(👎🏻🍜) authored
565
            padding: 0;
陈峰 authored
566
        }
567
    }
陈峰 authored
568 569 570
}

.cart-zero {
陈峰 authored
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605
    width: 100%;
    height: auto;
    padding-top: 90px;
    padding-bottom: 20%;

    i {
        font-size: 144px;
        display: block;
        margin: 0 auto;
        text-align: center;
        color: #505050;
    }

    p {
        display: block;
        text-align: center;
        font-size: 24px;
        color: #444;
        padding: 0.6rem 0;
    }

    a {
        width: 27%;
        height: 56px;
        overflow: hidden;
        line-height: 56px;
        border: 1PX solid #505050;
        border-radius: 5PX;
        display: block;
        margin: 0 auto;
        text-align: center;
        color: #fff;
        background: #444;
        font-size: 24px;
    }
陈峰 authored
606
}