index.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. flex: 1;
  121. display: flex;
  122. flex-direction: column;
  123. gap: 6rpx;
  124. .text-title {
  125. color: #333333;
  126. font-size: 28rpx;
  127. }
  128. .text-price {
  129. font-size: 24rpx;
  130. color: #999999;
  131. }
  132. }
  133. }
  134. .item-right {
  135. color: #333333;
  136. font-size: 28rpx;
  137. }
  138. }
  139. }
  140. .gifts {
  141. @include flex(space-between);
  142. font-size: 28rpx;
  143. color: #333333;
  144. .gifs-right {
  145. color: #ea1717;
  146. }
  147. }
  148. .all-price {
  149. color: #333333;
  150. font-size: 28rpx;
  151. }
  152. .border-box {
  153. width: 100%;
  154. height: 2rpx;
  155. background-color: #d8d8d8;
  156. }
  157. .order-state {
  158. text-align: end;
  159. color: #999999;
  160. font-size: 28rpx;
  161. margin-top: 3rpx;
  162. }
  163. }
  164. }
  165. }
  166. .order-empty{
  167. position: fixed;
  168. top: 41%;
  169. left: 50%;
  170. transform: translate(-50%);
  171. @include flex(center,column,32rpx);
  172. font-size: 32rpx;
  173. image{
  174. width: 460rpx;
  175. height: 460rpx;
  176. }
  177. .empty-title{
  178. color: #666666;
  179. }
  180. .empty-info{
  181. color: #999999;
  182. }
  183. }
  184. }