orders.less 4.6 KB

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