orders.less 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. /* pages/orders/orders.wxss */
  2. .container {
  3. height: 100vh;
  4. display: flex;
  5. flex-direction: column;
  6. background: #F4F4F4;
  7. position: relative;
  8. &::before {
  9. content: '';
  10. position: absolute;
  11. top: 0;
  12. left: 0;
  13. width: 100%;
  14. height: 286rpx;
  15. background: linear-gradient(180deg, #FDEC00 0%, #FAD400 100%);
  16. }
  17. }
  18. .record-content {
  19. display: flex;
  20. flex-direction: column;
  21. width: 100%;
  22. flex: 1;
  23. overflow-y: auto;
  24. position: relative;
  25. }
  26. .record-tab {
  27. display: flex;
  28. align-items: center;
  29. justify-content: space-between;
  30. padding: 28rpx 24rpx 16rpx;
  31. >view {
  32. font-size: 32rpx;
  33. font-family: PingFangSC-Regular, PingFang SC;
  34. color: rgba(0, 0, 0, 0.5);
  35. padding: 0 34rpx;
  36. &.active {
  37. font-size: 32rpx;
  38. font-family: PingFangSC-Semibold, PingFang SC;
  39. font-weight: 600;
  40. color: #131415;
  41. position: relative;
  42. z-index: 2;
  43. &::before {
  44. content: "";
  45. position: absolute;
  46. left: 50%;
  47. margin-left: -19rpx;
  48. bottom: -16rpx;
  49. z-index: -1;
  50. width: 34rpx;
  51. height: 4rpx;
  52. background: #534E49;
  53. }
  54. }
  55. }
  56. }
  57. .record-list {
  58. flex: 1;
  59. overflow-y: scroll;
  60. box-sizing: border-box;
  61. background: #F4F4F4 !important;
  62. }
  63. .list-item-group {
  64. padding-bottom: 24rpx;
  65. }
  66. .list-item {
  67. background: #FFFFFF;
  68. border-radius: 20rpx;
  69. margin: 26rpx 26rpx 0;
  70. padding: 24rpx;
  71. .item-top {
  72. display: flex;
  73. justify-content: space-between;
  74. font-size: 28rpx;
  75. line-height: 48rpx;
  76. padding-bottom: 26rpx;
  77. .item-mid {
  78. color: #999999;
  79. }
  80. >text {
  81. color: #777;
  82. }
  83. .cancel {
  84. color: #777;
  85. }
  86. .red {
  87. color: #FE4600;
  88. }
  89. }
  90. .item-content {
  91. display: flex;
  92. &+.item-content {
  93. padding-top: 26rpx;
  94. }
  95. .goods-icon {
  96. width: 140rpx;
  97. height: 140rpx;
  98. margin-right: 20rpx;
  99. flex-shrink: 0;
  100. border-radius: 11rpx;
  101. overflow: hidden;
  102. }
  103. .goods-desc {
  104. flex: 1 auto;
  105. display: flex;
  106. flex-direction: column;
  107. }
  108. .goodsInfo {
  109. display: flex;
  110. justify-content: space-between;
  111. padding-top: 4rpx;
  112. .goods-name {
  113. flex: 1 auto;
  114. white-space: nowrap;
  115. overflow: hidden;
  116. font-weight: 600;
  117. font-size: 30rpx;
  118. color: #333;
  119. line-height: 50rpx;
  120. text-overflow: ellipsis;
  121. max-width: 280rpx;
  122. }
  123. .goods-price {
  124. flex-shrink: 0;
  125. font-family: DINAlternate, DINAlternate;
  126. font-weight: bold;
  127. font-size: 28rpx;
  128. color: #333333;
  129. line-height: 48rpx;
  130. text {
  131. font-size: 36rpx;
  132. padding-left: 4rpx;
  133. }
  134. }
  135. }
  136. .goods-type {
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. padding-top: 12rpx;
  141. .goods-card {
  142. background: #FEEDF0;
  143. border-radius: 6rpx;
  144. font-size: 26rpx;
  145. color: #FE2451;
  146. line-height: 40rpx;
  147. padding: 0 12rpx;
  148. }
  149. .goods-num {
  150. font-size: 26rpx;
  151. color: #AAAAAA;
  152. line-height: 36rpx;
  153. }
  154. }
  155. }
  156. .item-footer {
  157. padding-top: 24rpx;
  158. margin-top: 24rpx;
  159. display: flex;
  160. flex-direction: column;
  161. justify-content: flex-end;
  162. align-items: flex-end;
  163. border-top: 2rpx solid #F2F2F2;
  164. .order-price {
  165. display: flex;
  166. align-items: flex-end;
  167. .desc {
  168. font-size: 24rpx;
  169. color: #999;
  170. line-height: 40rpx;
  171. flex-shrink: 0;
  172. }
  173. .currentPrice {
  174. font-weight: bold;
  175. font-family: DINAlternate, DINAlternate;
  176. // display: flex;
  177. // align-items: center;
  178. color: #333;
  179. .before {
  180. font-size: 28rpx;
  181. color: #131415;
  182. font-weight: 400;
  183. }
  184. .stuff {
  185. font-size: 28rpx;
  186. padding: 2rpx 4rpx 0;
  187. }
  188. .priceZ {
  189. font-size: 36rpx;
  190. line-height: 1;
  191. }
  192. // .priceF {
  193. // font-size: 32rpx;
  194. // }
  195. }
  196. // .line {
  197. // margin: 0 12rpx 8rpx;
  198. // background-color: #D2D2D2;
  199. // width: 2rpx;
  200. // height: 20rpx;
  201. // }
  202. .discountPrice {
  203. font-size: 28rpx;
  204. color: #FE4600;
  205. font-weight: bold;
  206. padding-left: 8rpx;
  207. padding-right: 12rpx;
  208. text {
  209. font-size: 36rpx;
  210. line-height: 1;
  211. }
  212. }
  213. }
  214. button {
  215. margin: 24rpx 0 0;
  216. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  217. border-radius: 26rpx;
  218. font-weight: 600;
  219. font-size: 24rpx;
  220. color: #FEFFCA;
  221. width: auto;
  222. padding: 0 22rpx;
  223. line-height: 52rpx;
  224. }
  225. }
  226. }
  227. .bottom-section {
  228. // position: fixed;
  229. // bottom: 0;
  230. // left: 0;
  231. width: 100%;
  232. background-color: #FFFFFF;
  233. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  234. padding: 20rpx 32rpx 58rpx 32rpx;
  235. display: flex;
  236. align-items: center;
  237. box-sizing: border-box;
  238. justify-content: space-around;
  239. .orders {
  240. display: flex;
  241. align-items: center;
  242. margin-right: 40rpx;
  243. padding: 8rpx 0 16rpx;
  244. &.active {
  245. text {
  246. color: #131415;
  247. }
  248. }
  249. image {
  250. width: 44rpx;
  251. height: 44rpx;
  252. }
  253. text {
  254. padding-left: 16rpx;
  255. font-weight: 500;
  256. font-size: 28rpx;
  257. color: #AAAAAA;
  258. line-height: 44rpx;
  259. text-align: center;
  260. }
  261. }
  262. .btnSection {
  263. flex: 1 auto;
  264. button {
  265. width: 100%;
  266. line-height: 88rpx;
  267. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  268. border-radius: 44rpx;
  269. font-weight: 500;
  270. font-size: 32rpx;
  271. color: #FFFFFF;
  272. padding-top: 0;
  273. padding-bottom: 0;
  274. &[disabled][type=primary] {
  275. opacity: 0.7;
  276. }
  277. }
  278. }
  279. }
  280. .empty-box {
  281. position: absolute;
  282. left: 50%;
  283. top: 50%;
  284. transform: translate(-50%, -80%);
  285. font-size: 32rpx;
  286. font-family: PingFangSC-Regular, PingFang SC;
  287. font-weight: 400;
  288. color: #999999;
  289. image {
  290. width: 384rpx;
  291. height: 198rpx;
  292. }
  293. .empty-text {
  294. font-size: 28rpx;
  295. color: #777777;
  296. line-height: 40rpx;
  297. text-align: center;
  298. padding-top: 24rpx;
  299. }
  300. }