orders.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. /* pages/orders/orders.wxss */
  2. page {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F4F4F4;
  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: -17rpx;
  41. bottom: -12rpx;
  42. z-index: -1;
  43. width: 34rpx;
  44. height: 4rpx;
  45. background: #534E49;
  46. }
  47. }
  48. }
  49. }
  50. .record-list {
  51. flex: 1;
  52. overflow-y: scroll;
  53. box-sizing: border-box;
  54. }
  55. .list-item-group {
  56. padding-bottom: 88rpx;
  57. }
  58. .list-item {
  59. background: #FFFFFF;
  60. border-radius: 20rpx;
  61. margin: 24rpx 26rpx 0;
  62. padding: 24rpx 24rpx 20rpx;
  63. .item-top {
  64. display: flex;
  65. justify-content: space-between;
  66. font-weight: 600;
  67. font-size: 30rpx;
  68. line-height: 48rpx;
  69. padding-bottom: 24rpx;
  70. border-bottom: 1px solid #F2F2F2;
  71. margin-bottom: 24rpx;
  72. .item-mid {
  73. color: #131415;
  74. font-size: 28rpx;
  75. color: #999999;
  76. font-weight: 400;
  77. }
  78. > text {
  79. color: #777777;
  80. }
  81. .red {
  82. color: #DDA64C;
  83. }
  84. }
  85. .item-content {
  86. display: flex;
  87. .goods-icon {
  88. width: 140rpx;
  89. height: 140rpx;
  90. margin-right: 24rpx;
  91. flex-shrink: 0;
  92. border-radius: 6px;
  93. overflow: hidden;
  94. }
  95. .goods-desc {
  96. flex: 1 auto;
  97. display: flex;
  98. flex-direction: column;
  99. }
  100. .goodsInfo {
  101. display: flex;
  102. justify-content: space-between;
  103. padding-top: 4rpx;
  104. .goods-name {
  105. flex: 1 auto;
  106. white-space: nowrap;
  107. overflow: hidden;
  108. font-weight: 600;
  109. font-size: 28rpx;
  110. text-overflow: ellipsis;
  111. max-width: 310rpx;
  112. }
  113. .goods-price {
  114. flex-shrink: 0;
  115. font-family: DINAlternate, DINAlternate;
  116. font-weight: bold;
  117. font-size: 28rpx;
  118. color: #131415;
  119. line-height: 48rpx;
  120. }
  121. }
  122. .goods-type {
  123. display: flex;
  124. justify-content: space-between;
  125. align-items: center;
  126. padding-top: 12rpx;
  127. .goods-card {
  128. background: #FDF2E2;
  129. border-radius: 6rpx;
  130. font-size: 26rpx;
  131. color: #A76D1C;
  132. line-height: 36rpx;
  133. padding: 0 12rpx;
  134. }
  135. .goods-num {
  136. font-size: 28rpx;
  137. color: #777777;
  138. line-height: 36rpx;
  139. }
  140. }
  141. }
  142. .item-footer {
  143. padding-top: 18rpx;
  144. display: flex;
  145. justify-content: space-between;
  146. align-items: center;
  147. .order-price {
  148. font-weight: 600;
  149. font-size: 28rpx;
  150. color: #131415;
  151. line-height: 48rpx;
  152. .price {
  153. font-family: DINAlternate, DINAlternate;
  154. font-weight: bold;
  155. font-size: 28rpx;
  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: 10rpx 22rpx;
  170. line-height: 40rpx;
  171. }
  172. .sure {
  173. background: linear-gradient( 90deg, #544F4A 0%, #302F2B 100%);
  174. border-radius: 26rpx;
  175. border: none;
  176. color: #FFFFFF;
  177. }
  178. }
  179. }
  180. .empty-box {
  181. position: absolute;
  182. left: 50%;
  183. top: 50%;
  184. transform: translate(-50%, -80%);
  185. font-size: 32rpx;
  186. font-family: PingFangSC-Regular, PingFang SC;
  187. font-weight: 400;
  188. color: #999999;
  189. image {
  190. width: 408rpx;
  191. height: 204rpx;
  192. }
  193. .empty-text {
  194. font-size: 28rpx;
  195. color: #777777;
  196. line-height: 40rpx;
  197. text-align: center;
  198. padding-top: 36rpx;
  199. }
  200. }