index.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. .order {
  2. width: 100vw;
  3. min-height: 100vh;
  4. background-color: rgb(247, 247, 247);
  5. .order-box {
  6. width: 100%;
  7. height: 100%;
  8. @include flex(center);
  9. }
  10. .order-top {
  11. width: 100%;
  12. padding: 28rpx 32rpx 0rpx;
  13. box-sizing: border-box;
  14. background-color: #ffffff;
  15. .search-box {
  16. width: auto;
  17. height: 80rpx;
  18. border-radius: 300rpx;
  19. background-color: #f1f1f1;
  20. line-height: 80rpx;
  21. padding-left: 84rpx;
  22. box-sizing: border-box;
  23. color: #999999;
  24. position: relative;
  25. font-size: 28rpx;
  26. .search-icon {
  27. position: absolute;
  28. top: 50%;
  29. transform: translateY(-50%);
  30. left: 36rpx;
  31. }
  32. }
  33. .order-state {
  34. margin-top: 54rpx;
  35. .scroll-X {
  36. white-space: nowrap;
  37. .scroll-item {
  38. display: inline-block;
  39. padding-bottom: 16rpx;
  40. margin-left: 36rpx;
  41. font-size: 28rpx;
  42. color: #999999;
  43. &:first-of-type {
  44. margin-left: 0;
  45. }
  46. }
  47. .act {
  48. color: $primary-color;
  49. position: relative;
  50. &::after {
  51. content: "";
  52. position: absolute;
  53. left: 0;
  54. bottom: 0;
  55. width: 100%;
  56. height: 4rpx;
  57. background-color: $primary-color;
  58. border-radius: 20rpx;
  59. }
  60. }
  61. }
  62. }
  63. }
  64. .order-container {
  65. padding: 0 32rpx 32rpx;
  66. .order-list {
  67. .order-item {
  68. width: auto;
  69. margin-top: 32rpx;
  70. padding: 32rpx;
  71. box-sizing: border-box;
  72. background-color: #ffffff;
  73. border-radius: 16rpx;
  74. display: flex;
  75. justify-content: center;
  76. gap: 24rpx;
  77. flex-direction: column;
  78. .order-number {
  79. width: 100%;
  80. @include flex(space-between);
  81. .number {
  82. font-size: 32rpx;
  83. font-weight: 700;
  84. }
  85. .number-icon {
  86. color: #999999;
  87. @include flex(center);
  88. font-size: 28rpx;
  89. text {
  90. padding-bottom: 2rpx;
  91. }
  92. }
  93. }
  94. .text-info {
  95. font-size: 28rpx;
  96. color: #999999;
  97. }
  98. .commodity-list {
  99. width: 100%;
  100. display: flex;
  101. justify-content: center;
  102. gap: 12rpx;
  103. flex-direction: column;
  104. .commodity-item {
  105. display: flex;
  106. justify-content: space-between;
  107. .item-left {
  108. display: flex;
  109. gap: 12rpx;
  110. .left-image {
  111. width: 124rpx;
  112. height: 124rpx;
  113. image {
  114. width: 100%;
  115. height: 100%;
  116. border-radius: 12rpx;
  117. }
  118. }
  119. .left-text {
  120. display: flex;
  121. flex-direction: column;
  122. gap: 6rpx;
  123. .text-title {
  124. color: #333333;
  125. font-size: 28rpx;
  126. }
  127. .text-price {
  128. font-size: 24rpx;
  129. color: #999999;
  130. }
  131. }
  132. }
  133. .item-right {
  134. color: #333333;
  135. font-size: 28rpx;
  136. }
  137. }
  138. }
  139. .gifts {
  140. @include flex(space-between);
  141. font-size: 28rpx;
  142. color: #333333;
  143. .gifs-right {
  144. color: #ea1717;
  145. }
  146. }
  147. .all-price {
  148. color: #333333;
  149. font-size: 28rpx;
  150. }
  151. .border-box {
  152. width: 100%;
  153. height: 2rpx;
  154. background-color: #d8d8d8;
  155. }
  156. .order-state {
  157. text-align: end;
  158. color: #999999;
  159. font-size: 28rpx;
  160. margin-top: 3rpx;
  161. }
  162. }
  163. }
  164. }
  165. .order-empty{
  166. position: fixed;
  167. top: 41%;
  168. left: 50%;
  169. transform: translate(-50%);
  170. @include flex(center,column,32rpx);
  171. font-size: 32rpx;
  172. image{
  173. width: 460rpx;
  174. height: 460rpx;
  175. }
  176. .empty-title{
  177. color: #666666;
  178. }
  179. .empty-info{
  180. color: #999999;
  181. }
  182. }
  183. }