conpon-new.page.css 6.34 KB
body {
    background-color: #f0f0f0;
}

.yoho-header {
    position: fixed;
    top: 0;
    left: 0;
}

.coupon-new-page {
    padding-top: 194px;

    .filter-box {
        width: 100%;
        height: 88px;
        display: flex;
        padding: 14px 0;
        box-shadow: 0 0 16px 0 #eee;
        background-color: #fff;
        position: fixed;
        top: 106px;
        left: 0;
        z-index: 2;

        .filter-btn-box {
            flex: 1;
            line-height: 60px;
            text-align: center;
            color: #b0b0b0;
            border-right: 1px solid #e0e0e0;
        }

        .filter-btn-box:last-child {
            border-right: none;
        }

        .show-filter-btn {
            color: #b0b0b0;
        }

        .active {
            color: #444;
        }
    }

    .filter-item {
        display: flex;
        width: 100%;
        height: 130px;
        justify-content: space-around;
        align-items: center;
        background-color: #fff;
        position: fixed;
        top: 192px;
        left: 0;
        z-index: 2;

        button {
            width: 150px;
            height: 70px;
            background-color: #fff;
            color: #444;
            font-size: 28px;
            border: 1px solid #e0e0e0;
            border-radius: 4px;

            &.active {
                background-color: #444;
                color: #fff;
            }
        }
    }

    .exchange-box {
        height: 90px;
        padding: 16px 20px;
        background-color: #fff;

        input {
            width: 580px;
            height: 60px;
            margin-right: 12px;
            padding: 0 20px;
            background-color: #f0f0f0;
            border-radius: 4px;
            border: none;
        }

        .exchange-coupon-btn {
            width: 110px;
            height: 60px;
            border-radius: 4px;
            font-size: 28px;
            color: #fff;
            background-color: #b0b0b0;
        }

        .active {
            background-color: #444;
        }
    }

    .coupon-list {
        padding: 20px;

        .coupon-section {
            margin-bottom: 20px;
        }

        .coupon {
            position: relative;
            width: 710px;
            height: 200px;

            .coupon-left {
                width: 200px;
                height: 200px;
                background-image: resolve("home/coupon/bg_left@2x.png");
                background-size: 100% 100%;
                float: left;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;
            }

            .coupon-left > p {
                color: #fc5960;
                font-size: 24px;
                font-weight: 300;

                &.value > span {
                    font-size: 60px;
                    font-weight: 600;
                }
            }

            .coupon-right {
                width: 510px;
                height: 200px;
                background-image: resolve("home/coupon/bg_right@2x.png");
                background-size: 100% 100%;
                float: left;
                padding: 22px;
                font-size: 22px;
                color: #b0b0b0;
                position: relative;

                .type-shop {
                    color: #efaf46;
                }

                .type-activity {
                    color: #fc5960;
                }

                .type-freight {
                    color: #222;
                }

                .title {
                    font-size: 24px;
                    color: #444;
                    margin-bottom: 40px;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                }

                .time {
                    margin-bottom: 26px;
                }

                .tip {
                    position: absolute;
                    top: 0;
                    right: 0;
                }
            }

            .use-now {
                font-size: 22px;
                position: absolute;
                width: 130px;
                height: 50px;
                line-height: 50px;
                text-align: center;
                border: 1px solid #444;
                border-radius: 25px;
                background-color: #fff;
                color: #444;
                bottom: 20px;
                right: 20px;
            }

            .stamp {
                position: absolute;
                width: 126px;
                height: 114px;
                right: 20px;
                top: 50%;
                transform: translateY(-50%);
                background-image: resolve("home/coupon/timeout@2x.png");
                background-size: 100% 100%;
            }

            .top-tip {
                width: 84px;
                height: 84px;
                background-image: resolve("home/coupon/top-tip@2x.png");
                background-size: 100% 100%;
                position: absolute;
                top: 0;
                right: 0;
            }
        }

        .freight-coupon {
            > .coupon-left {
                font-size: 48px;
            }
        }

        .coupon-overtime {
            > .coupon-left > p {
                color: #b0b0b0;
            }

            > .coupon-right > .title {
                color: #b0b0b0;

                & > .type-activity {
                    color: #b0b0b0;
                }

                & > .type-freight {
                    color: #b0b0b0;
                }

                & > .type-shop {
                    color: #b0b0b0;
                }
            }
        }

        .coupon-intro {
            background: rgba(255, 255, 255, 0.7);
            margin-top: -12px;
            padding: 36px 44px 22px;
            list-style: disc;

            li {
                font-size: 22px;
                color: #444;
            }
        }
    }

    .no-conpon-now {
        text-align: center;
        padding-top: 262px;
        color: #b0b0b0;

        .icon-not {
            width: 208px;
            height: 130px;
            background-image: resolve("home/employ/not.png");
            background-size: 100% 100%;
            margin: auto auto 30px;
        }

        p {
            font-size: 28px;
        }
    }

    .hide {
        display: none;
    }
}