.coupons { :global { .van-tab { font-size: 16px; } .van-tab--active { color: #2dc7aa; } } } .list { margin: 14px; // padding: 12px 14px; border-radius: 10px; --coupon-point: #f6f8f9; } .item { // --coupon-point: #fff; position: relative; border-radius: 10px; background: #fae6e7; padding: 20px 10px 20px 18px; color: #fc1a19; + .item { margin-top: 14px; } &.USED, &.EXPIRED { background: #eaeaea; color: #666666; .conditionTag { background-color: #ebebeb; } } // 是否可以选择 &.select { padding-left: 40px; } // 优惠是否能使用 &.disabled { opacity: 0.6; } &::before, &::after { position: absolute; width: 16px; height: 16px; border-radius: 50%; content: ' '; z-index: 1; top: 50%; background: var(--coupon-point); margin-top: -8px; } &:before { left: -8px; } &:after { right: -8px; } .top, .bottom { display: flex; align-items: center; } .price { font-size: 36px; font-weight: bold; line-height: 42px; width: 112px; font-family: PingFangSC-Regular, PingFang SC; .suffix { font-size: 24px; line-height: 33px; } .number { display: inline-block; min-width: 40px; text-align: center; } } .type { max-width: 165px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; font-weight: 500; line-height: 22px; } .bottom { padding-top: 5px; font-size: 12px; } .condition { width: 112px; } .conditionTag { background: #fbd0d1; border-radius: 8px; font-weight: 600; line-height: 17px; min-width: 80px; display: inline-block; text-align: center; } .iconUsed, .iconExpired { position: absolute; top: 0; right: 0; width: 54px; height: 41px; } .iconUsed { background: url('./images/icon_used.png') no-repeat center; background-size: contain; } .iconExpired { background: url('./images/icon_expired.png') no-repeat center; background-size: contain; } .img-icon { position: absolute; top: 9px; left: 9px; width: 22px; height: 22px; } }