orders.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /* pages/orders/orders.wxss */
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F5F6F7;
  7. }
  8. .container {
  9. display: flex;
  10. flex-direction: column;
  11. }
  12. .record-content {
  13. display: flex;
  14. flex-direction: column;
  15. width: 100%;
  16. flex: 1;
  17. overflow-y: auto;
  18. }
  19. .record-tab {
  20. display: flex;
  21. align-items: center;
  22. justify-content: space-between;
  23. padding: 28rpx 30rpx 16rpx;
  24. >view {
  25. font-size: 32rpx;
  26. font-family: PingFangSC-Regular, PingFang SC;
  27. font-weight: 500;
  28. color: rgba(0, 0, 0, 0.4);
  29. &.active {
  30. font-size: 32rpx;
  31. font-family: PingFangSC-Semibold, PingFang SC;
  32. font-weight: 600;
  33. color: #131415;
  34. position: relative;
  35. z-index: 2;
  36. &::before {
  37. content: "";
  38. position: absolute;
  39. left: 50%;
  40. margin-left: -24rpx;
  41. bottom: -8rpx;
  42. z-index: -1;
  43. width: 48rpx;
  44. height: 8rpx;
  45. background: linear-gradient( 90deg, #FF3C3C 0%, rgba(255,118,155,0.5) 100%);
  46. border-radius: 72rpx 72rpx 0rpx 0rpx;
  47. }
  48. }
  49. }
  50. }
  51. .record-list {
  52. flex: 1;
  53. overflow-y: scroll;
  54. box-sizing: border-box;
  55. }
  56. .list-item-group {
  57. padding-bottom: 88rpx;
  58. }
  59. .list-item {
  60. background: #FFFFFF;
  61. border-radius: 20rpx;
  62. margin: 24rpx 26rpx 0;
  63. padding: 28rpx 24rpx 32rpx;
  64. .item-top {
  65. display: flex;
  66. justify-content: space-between;
  67. font-size: 28rpx;
  68. line-height: 48rpx;
  69. padding-bottom: 24rpx;
  70. .item-mid {
  71. color: #131415;
  72. }
  73. > text {
  74. color: #777777;
  75. }
  76. .red {
  77. color: #FE2451;
  78. }
  79. }
  80. .item-content {
  81. display: flex;
  82. .goods-icon {
  83. width: 160rpx;
  84. height: 160rpx;
  85. margin-right: 24rpx;
  86. flex-shrink: 0;
  87. border-radius: 6px;
  88. overflow: hidden;
  89. }
  90. .goods-desc {
  91. flex: 1 auto;
  92. display: flex;
  93. flex-direction: column;
  94. }
  95. .goodsInfo {
  96. display: flex;
  97. justify-content: space-between;
  98. padding-top: 4rpx;
  99. .goods-name {
  100. flex: 1 auto;
  101. white-space: nowrap;
  102. overflow: hidden;
  103. font-weight: 600;
  104. font-size: 28rpx;
  105. text-overflow: ellipsis;
  106. max-width: 310rpx;
  107. }
  108. .goods-price {
  109. flex-shrink: 0;
  110. font-family: DINAlternate, DINAlternate;
  111. font-weight: bold;
  112. font-size: 28rpx;
  113. color: #131415;
  114. line-height: 48rpx;
  115. }
  116. }
  117. .goods-type {
  118. display: flex;
  119. justify-content: space-between;
  120. align-items: center;
  121. padding-top: 12rpx;
  122. .goods-card {
  123. background: #FEEDF0;
  124. border-radius: 6rpx;
  125. font-size: 26rpx;
  126. color: #FE2451;
  127. line-height: 40rpx;
  128. padding: 0 12rpx;
  129. }
  130. .goods-num {
  131. font-size: 28rpx;
  132. color: #777777;
  133. line-height: 36rpx;
  134. }
  135. }
  136. }
  137. .item-footer {
  138. padding-top: 24rpx;
  139. display: flex;
  140. justify-content: space-between;
  141. align-items: center;
  142. .order-price {
  143. font-weight: 600;
  144. font-size: 28rpx;
  145. color: #131415;
  146. line-height: 48rpx;
  147. .price-first {
  148. font-weight: bold;
  149. color: #FE2451;
  150. font-size: 28rpx;
  151. }
  152. .price {
  153. font-family: DINAlternate, DINAlternate;
  154. font-weight: bold;
  155. font-size: 36rpx;
  156. color: #FE2451;
  157. line-height: 48rpx;
  158. }
  159. }
  160. button {
  161. margin: 0;
  162. border-radius: 36rpx;
  163. background-color: #FFFFFF;
  164. border: 2rpx solid #DCDCDC;
  165. font-weight: 500;
  166. font-size: 28rpx;
  167. color: #333333;
  168. width: auto;
  169. padding: 14rpx 32rpx;
  170. line-height: 40rpx;
  171. }
  172. .sure {
  173. background: #FE2451;
  174. border-color: #FE2451;
  175. color: #FFFFFF;
  176. }
  177. }
  178. }
  179. .empty-box {
  180. position: absolute;
  181. left: 50%;
  182. top: 50%;
  183. transform: translate(-50%, -80%);
  184. font-size: 32rpx;
  185. font-family: PingFangSC-Regular, PingFang SC;
  186. font-weight: 400;
  187. color: #999999;
  188. image {
  189. width: 436rpx;
  190. height: 364rpx;
  191. }
  192. .empty-text {
  193. font-size: 28rpx;
  194. color: #777777;
  195. line-height: 40rpx;
  196. text-align: center;
  197. padding-top: 24rpx;
  198. }
  199. }