index.less 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. @red:#F01740;
  2. @grey: #666666;
  3. .title {
  4. font-weight: Medium;
  5. font-size: 36rpx;
  6. color: #222222;
  7. }
  8. .text-large {
  9. font-size: 36rpx;
  10. }
  11. .text {
  12. font-size: 30rpx;
  13. word-break: keep-all;
  14. }
  15. .text-small {
  16. font-size: 24rpx;
  17. word-break: keep-all;
  18. }
  19. .grey {
  20. color:#666666;
  21. }
  22. .horizontal {
  23. padding: 20rpx;
  24. font-size: 24rpx;
  25. .goods {
  26. display: flex;
  27. align-items:end;
  28. width: 100%;
  29. padding: 10rpx;
  30. margin-top: 20rpx;
  31. background: #ffffff;
  32. border-radius: 20rpx;
  33. .goods-image-wrapper {
  34. width: 180rpx;
  35. height: 180rpx;
  36. .goods-image {
  37. width: 100%;
  38. height: 100%;
  39. text-align: center;
  40. border-radius: 20rpx;
  41. }
  42. }
  43. .goods-detail {
  44. flex:1;
  45. padding: 0 20rpx;
  46. .goods-name {
  47. width: 100%;
  48. margin: 10rpx 0;
  49. font-size: 30rpx;
  50. color:#222222;
  51. overflow: hidden; //一定要写
  52. text-overflow: ellipsis; //超出省略号
  53. display: -webkit-box; //一定要写
  54. -webkit-line-clamp: 1; //控制行数
  55. -webkit-box-orient: vertical; //一定要写
  56. }
  57. .goods-describe {
  58. width: 100%;
  59. margin: 10rpx 0;
  60. min-height: 80rpx;
  61. overflow: hidden; //一定要写
  62. text-overflow: ellipsis; //超出省略号
  63. display: -webkit-box; //一定要写
  64. -webkit-line-clamp: 2; //控制行数
  65. -webkit-box-orient: vertical; //一定要写
  66. }
  67. .goods-tags {
  68. width: 100%;
  69. margin:8rpx 0;
  70. min-height: 60rpx;
  71. overflow: hidden; //一定要写
  72. text-overflow: ellipsis; //超出省略号
  73. display: -webkit-box; //一定要写
  74. -webkit-line-clamp: 2; //控制行数
  75. -webkit-box-orient: vertical; //一定要写
  76. }
  77. .goods-detail-bottom {
  78. display: flex;
  79. align-items: center;
  80. justify-content: space-between;
  81. .goods-price-wrapper {
  82. display: flex;
  83. color: @red;
  84. margin-top: 10rpx;
  85. .goods-price-text {
  86. margin: 0 10rpx 0 0;
  87. }
  88. .goods-price-num{
  89. font-size: 28rpx;
  90. font-weight: 600;
  91. }
  92. }
  93. .bottom-btns {
  94. width: 180rpx;
  95. .btn-text {
  96. letter-spacing: 6rpx;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. }
  103. .vertical {
  104. display: flex;
  105. justify-content: space-between;
  106. flex-wrap: wrap;
  107. padding: 20rpx;
  108. font-size: 24rpx;
  109. .goods {
  110. width: 48%;
  111. // padding: 10rpx;
  112. margin-top: 20rpx;
  113. background: #ffffff;
  114. border-radius: 20rpx;
  115. .goods-image-wrapper {
  116. width: 100%;
  117. height: 240rpx;
  118. .goods-image {
  119. width: 100%;
  120. height: 100%;
  121. text-align: center;
  122. border-radius: 20rpx;
  123. }
  124. }
  125. .goods-detail {
  126. flex:1;
  127. padding: 10rpx 20rpx;
  128. .goods-name {
  129. margin-top: 10rpx;
  130. min-height: 80rpx;
  131. font-size: 30rpx;
  132. color:#222222;
  133. overflow: hidden; //一定要写
  134. text-overflow: ellipsis; //超出省略号
  135. display: -webkit-box; //一定要写
  136. -webkit-line-clamp: 2; //控制行数
  137. -webkit-box-orient: vertical; //一定要写
  138. }
  139. .goods-describe {
  140. width: 100%;
  141. margin: 10rpx 0;
  142. min-height: 80rpx;
  143. overflow: hidden; //一定要写
  144. text-overflow: ellipsis; //超出省略号
  145. display: -webkit-box; //一定要写
  146. -webkit-line-clamp: 2; //控制行数
  147. -webkit-box-orient: vertical; //一定要写
  148. }
  149. .goods-tags {
  150. width: 100%;
  151. margin:8rpx 0;
  152. overflow: hidden; //一定要写
  153. text-overflow: ellipsis; //超出省略号
  154. display: -webkit-box; //一定要写
  155. -webkit-line-clamp: 2; //控制行数
  156. -webkit-box-orient: vertical; //一定要写
  157. }
  158. .goods-price-wrapper {
  159. display: flex;
  160. color: @red;
  161. margin-top: 10rpx;
  162. .goods-price-text {
  163. margin: 0 10rpx 0 0;
  164. }
  165. .goods-price-num{
  166. font-size: 28rpx;
  167. font-weight: 600;
  168. }
  169. }
  170. .address {
  171. margin-top: 10rpx;
  172. display: flex;
  173. .hotel-address {
  174. color:@grey;
  175. }
  176. }
  177. }
  178. }
  179. }