xwt
2025-07-17 66f29ab451014ca2e72fa9a5ff6373ab507ff67c
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
@import '../style/var';
@import '../style/mixins/ellipsis';
 
.van-coupon {
  margin: @coupon-margin;
  overflow: hidden;
  background-color: @coupon-background-color;
  border-radius: @coupon-border-radius;
  box-shadow: @coupon-box-shadow;
 
  &:active {
    background-color: @coupon-active-background-color;
  }
 
  &__content {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: @coupon-content-height;
    padding: @coupon-content-padding;
    color: @gray-8;
  }
 
  &__head {
    position: relative;
    min-width: @coupon-head-width;
    padding: 0 @padding-xs;
    color: @coupon-amount-color;
    text-align: center;
  }
 
  &__amount,
  &__condition,
  &__name,
  &__valid {
    .ellipsis();
  }
 
  &__amount {
    margin-bottom: 6px;
    font-weight: @font-weight-bold;
    font-size: @coupon-amount-font-size;
    .ellipsis();
 
    span {
      font-weight: normal;
      font-size: @coupon-currency-font-size;
 
      &:not(:empty) {
        margin-left: 2px;
      }
    }
  }
 
  &__condition {
    font-size: @font-size-sm;
    line-height: 16px;
    white-space: pre-wrap;
  }
 
  &__body {
    position: relative;
    flex: 1;
    border-radius: 0 @coupon-border-radius @coupon-border-radius 0;
  }
 
  &__name {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: @coupon-name-font-size;
    line-height: @line-height-md;
  }
 
  &__valid {
    font-size: @font-size-sm;
  }
 
  &__corner {
    position: absolute;
    top: 0;
    right: @padding-md;
    bottom: 0;
  }
 
  &__description {
    padding: @coupon-description-padding;
    font-size: @font-size-sm;
    border-top: 1px dashed @coupon-description-border-color;
  }
 
  &--disabled {
    &:active {
      background-color: @coupon-background-color;
    }
 
    .van-coupon-item__content {
      height: @coupon-content-height - 10px;
    }
 
    .van-coupon__head {
      color: inherit;
    }
  }
}