orders.less 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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. padding: 0 30rpx;
  28. font-weight: 500;
  29. color: rgba(0, 0, 0, 0.4);
  30. &.active {
  31. font-size: 32rpx;
  32. font-family: PingFangSC-Semibold, PingFang SC;
  33. font-weight: 600;
  34. color: #131415;
  35. position: relative;
  36. z-index: 2;
  37. &::before {
  38. content: "";
  39. position: absolute;
  40. left: 50%;
  41. margin-left: -17rpx;
  42. bottom: -12rpx;
  43. z-index: -1;
  44. width: 34rpx;
  45. height: 4rpx;
  46. background: #534E49;
  47. }
  48. }
  49. }
  50. }
  51. .record-list {
  52. flex: 1;
  53. overflow-y: scroll;
  54. box-sizing: border-box;
  55. }
  56. .list-item-group {
  57. padding-bottom: 88rpx;
  58. }
  59. .list-item {
  60. background: #FFFFFF;
  61. border-radius: 20rpx;
  62. margin: 24rpx 26rpx 0;
  63. padding: 24rpx 24rpx 26rpx;
  64. .item-top {
  65. display: flex;
  66. justify-content: space-between;
  67. font-weight: 600;
  68. font-size: 30rpx;
  69. line-height: 48rpx;
  70. padding-bottom: 26rpx;
  71. .item-mid {
  72. color: #131415;
  73. font-size: 28rpx;
  74. color: #999999;
  75. font-weight: 400;
  76. }
  77. >text {
  78. color: #777;
  79. }
  80. .cancel {
  81. color: #AAA;
  82. }
  83. .red {
  84. color: #DDA64C;
  85. }
  86. }
  87. .item-content {
  88. display: flex;
  89. &+.item-content {
  90. padding-top: 60rpx;
  91. }
  92. .goods-icon {
  93. width: 140rpx;
  94. height: 140rpx;
  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: 30rpx;
  115. color: #131415;
  116. line-height: 50rpx;
  117. text-overflow: ellipsis;
  118. max-width: 480rpx;
  119. }
  120. }
  121. .goods-price {
  122. flex-shrink: 0;
  123. font-family: DINAlternate, DINAlternate;
  124. font-weight: bold;
  125. color: #131415;
  126. line-height: 48rpx;
  127. .stuff {
  128. font-size: 28rpx;
  129. padding-right: 4rpx;
  130. }
  131. .priceZ {
  132. font-size: 40rpx;
  133. }
  134. .priceF {
  135. font-size: 32rpx;
  136. }
  137. }
  138. .origin-price {
  139. font-weight: 400;
  140. font-size: 24rpx;
  141. color: #6D4718;
  142. line-height: 1;
  143. text {
  144. text-decoration: line-through;
  145. padding-left: 6rpx;
  146. }
  147. }
  148. .goods-type {
  149. display: flex;
  150. align-items: center;
  151. padding-top: 28rpx;
  152. .goods-card {
  153. height: 40rpx;
  154. background: #fdf2e2;
  155. border-radius: 6rpx;
  156. font-size: 26rpx;
  157. color: #502f00;
  158. line-height: 40rpx;
  159. padding: 0 12rpx;
  160. }
  161. .goods-num {
  162. font-size: 28rpx;
  163. color: #777;
  164. line-height: 36rpx;
  165. }
  166. }
  167. }
  168. .item-footer {
  169. margin-top: 26rpx;
  170. border-top: 2rpx solid #F2F2F2;
  171. padding-top: 24rpx;
  172. display: flex;
  173. flex-direction: column;
  174. justify-content: space-between;
  175. align-items: flex-end;
  176. font-size: 28rpx;
  177. color: #777777;
  178. .order-price {
  179. display: flex;
  180. align-items: center;
  181. .countPrice {
  182. padding-left: 24rpx;
  183. color: #131415;
  184. .suffix {
  185. color: #131415;
  186. }
  187. .price {
  188. color: #333333;
  189. }
  190. }
  191. .suffix {
  192. padding-left: 6rpx;
  193. font-size: 28rpx;
  194. line-height: 48rpx;
  195. color: #FF0047;
  196. }
  197. .price {
  198. font-family: DINAlternate, DINAlternate;
  199. font-weight: bold;
  200. font-size: 36rpx;
  201. line-height: 48rpx;
  202. color: #FF0047;
  203. }
  204. }
  205. button {
  206. margin: 0;
  207. border-radius: 76rpx;
  208. background-color: #FFFFFF;
  209. border: 2rpx solid #DCDCDC;
  210. font-weight: 500;
  211. font-size: 24rpx;
  212. color: #333333;
  213. width: auto;
  214. padding: 10rpx 22rpx;
  215. line-height: 40rpx;
  216. }
  217. .sure {
  218. margin-top: 24rpx !important;
  219. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  220. border-radius: 76rpx;
  221. border: none;
  222. font-size: 24rpx;
  223. color: #FBEAC9;
  224. width: 140rpx !important;
  225. line-height: 52rpx !important;
  226. padding: 0 !important;
  227. }
  228. }
  229. }
  230. .empty-box {
  231. position: absolute;
  232. left: 50%;
  233. top: 50%;
  234. transform: translate(-50%, -80%);
  235. font-size: 32rpx;
  236. font-family: PingFangSC-Regular, PingFang SC;
  237. font-weight: 400;
  238. color: #999999;
  239. image {
  240. width: 408rpx;
  241. height: 204rpx;
  242. }
  243. .empty-text {
  244. font-size: 28rpx;
  245. color: #AAA;
  246. line-height: 40rpx;
  247. text-align: center;
  248. padding-top: 36rpx;
  249. }
  250. }