啊鑫
7 天以前 fca192d3c38c5dcfbb6ace8bc71d6078f6a079b2
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
105
106
107
108
109
@import '../style/var';
 
.van-card {
  position: relative;
  box-sizing: border-box;
  padding: @card-padding;
  color: @card-text-color;
  font-size: @card-font-size;
  background-color: @card-background-color;
 
  &:not(:first-child) {
    margin-top: @padding-xs;
  }
 
  &__header {
    display: flex;
  }
 
  &__thumb {
    position: relative;
    flex: none;
    width: @card-thumb-size;
    height: @card-thumb-size;
    margin-right: @padding-xs;
 
    img {
      border-radius: @card-thumb-border-radius;
    }
  }
 
  &__content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* hack for flex box ellipsis */
    min-height: @card-thumb-size;
 
    &--centered {
      justify-content: center;
    }
  }
 
  &__title,
  &__desc {
    word-wrap: break-word;
  }
 
  &__title {
    max-height: 32px;
    font-weight: @font-weight-bold;
    line-height: @card-title-line-height;
  }
 
  &__desc {
    max-height: @card-desc-line-height;
    color: @card-desc-color;
    line-height: @card-desc-line-height;
  }
 
  &__bottom {
    line-height: @line-height-md;
  }
 
  &__price {
    display: inline-block;
    color: @card-price-color;
    font-weight: @font-weight-bold;
    font-size: @card-price-font-size;
  }
 
  &__price-integer {
    font-size: @card-price-integer-font-size;
    font-family: @card-price-font-family;
  }
 
  &__price-decimal {
    font-family: @card-price-font-family;
  }
 
  &__origin-price {
    display: inline-block;
    margin-left: 5px;
    color: @card-origin-price-color;
    font-size: @card-origin-price-font-size;
    text-decoration: line-through;
  }
 
  &__num {
    float: right;
    color: @card-num-color;
  }
 
  &__tag {
    position: absolute;
    top: 2px;
    left: 0;
  }
 
  &__footer {
    flex: none;
    text-align: right;
 
    .van-button {
      margin-left: 5px;
    }
  }
}