orders.less 4.2 KB

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