orders.less 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  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 0;
  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 16rpx;
  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: 0;
  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. font-weight: bold;
  83. }
  84. .cancel {
  85. color: #777;
  86. }
  87. .red {
  88. color: #FE4600;
  89. }
  90. }
  91. .item-content {
  92. display: flex;
  93. &+.item-content {
  94. padding-top: 26rpx;
  95. }
  96. .goods-icon {
  97. width: 140rpx;
  98. height: 140rpx;
  99. margin-right: 20rpx;
  100. flex-shrink: 0;
  101. border-radius: 11rpx;
  102. overflow: hidden;
  103. }
  104. .goods-desc {
  105. flex: 1 auto;
  106. display: flex;
  107. flex-direction: column;
  108. }
  109. .goodsInfo {
  110. display: flex;
  111. justify-content: space-between;
  112. padding-top: 4rpx;
  113. .goods-name {
  114. flex: 1 auto;
  115. white-space: nowrap;
  116. overflow: hidden;
  117. font-weight: 600;
  118. font-size: 30rpx;
  119. color: #333;
  120. line-height: 50rpx;
  121. text-overflow: ellipsis;
  122. max-width: 280rpx;
  123. }
  124. .goods-price {
  125. flex-shrink: 0;
  126. font-family: DINAlternate, DINAlternate;
  127. font-weight: bold;
  128. font-size: 28rpx;
  129. color: #333333;
  130. line-height: 48rpx;
  131. text {
  132. font-size: 36rpx;
  133. padding-left: 4rpx;
  134. }
  135. }
  136. }
  137. .goods-type {
  138. display: flex;
  139. justify-content: space-between;
  140. align-items: center;
  141. padding-top: 12rpx;
  142. .goods-card {
  143. background: #FFF1E0;
  144. border-radius: 6rpx;
  145. font-size: 26rpx;
  146. color: #FE4600;
  147. line-height: 40rpx;
  148. padding: 0 12rpx;
  149. }
  150. .goods-num {
  151. font-size: 26rpx;
  152. color: #AAAAAA;
  153. line-height: 36rpx;
  154. text {
  155. padding-left: 4rpx;
  156. }
  157. }
  158. }
  159. }
  160. .item-footer {
  161. padding-top: 24rpx;
  162. margin-top: 24rpx;
  163. display: flex;
  164. flex-direction: column;
  165. justify-content: flex-end;
  166. align-items: flex-end;
  167. border-top: 2rpx solid #F2F2F2;
  168. // .order-price {
  169. // display: flex;
  170. // align-items: flex-end;
  171. // .desc {
  172. // font-size: 24rpx;
  173. // color: #999;
  174. // line-height: 40rpx;
  175. // flex-shrink: 0;
  176. // }
  177. // .currentPrice {
  178. // font-weight: bold;
  179. // font-family: DINAlternate, DINAlternate;
  180. // // display: flex;
  181. // // align-items: center;
  182. // color: #333;
  183. // .before {
  184. // font-size: 28rpx;
  185. // color: #131415;
  186. // font-weight: 400;
  187. // }
  188. // .stuff {
  189. // font-size: 28rpx;
  190. // padding: 2rpx 6rpx 0 4rpx;
  191. // }
  192. // .priceZ {
  193. // font-size: 36rpx;
  194. // line-height: 1;
  195. // }
  196. // // .priceF {
  197. // // font-size: 32rpx;
  198. // // }
  199. // }
  200. // // .line {
  201. // // margin: 0 12rpx 8rpx;
  202. // // background-color: #D2D2D2;
  203. // // width: 2rpx;
  204. // // height: 20rpx;
  205. // // }
  206. // .discountPrice {
  207. // font-size: 28rpx;
  208. // color: #FE4600;
  209. // font-weight: bold;
  210. // padding-left: 8rpx;
  211. // padding-right: 12rpx;
  212. // text {
  213. // font-size: 36rpx;
  214. // line-height: 1;
  215. // padding-left: 6rpx;
  216. // }
  217. // }
  218. // }
  219. .goodsInfo-count {
  220. display: flex;
  221. justify-content: flex-end;
  222. .goods-price {
  223. flex-shrink: 0;
  224. font-family: DINAlternate, DINAlternate;
  225. font-weight: bold;
  226. color: #131415;
  227. // line-height: 48rpx;
  228. display: flex;
  229. align-items: flex-end;
  230. .before {
  231. font-weight: 400;
  232. font-size: 24rpx;
  233. color: #777777;
  234. vertical-align: middle;
  235. padding-right: 6rpx;
  236. }
  237. .red {
  238. color: #FE4600;
  239. }
  240. .stuff {
  241. font-size: 28rpx;
  242. padding-right: 4rpx;
  243. line-height: 1.1;
  244. }
  245. .priceZ {
  246. font-size: 36rpx;
  247. line-height: 1;
  248. color: #FE4600;
  249. }
  250. .priceF {
  251. font-size: 24rpx;
  252. color: #FE4600;
  253. }
  254. .afterTxt {
  255. font-weight: 400;
  256. font-size: 24rpx;
  257. color: #777777;
  258. vertical-align: middle;
  259. padding-left: 12rpx;
  260. }
  261. .afterPrice {
  262. color: #333333;
  263. font-size: 36rpx;
  264. line-height: 1;
  265. }
  266. }
  267. }
  268. button {
  269. margin: 24rpx 0 0;
  270. background: linear-gradient(90deg, #544F4A 0%, #302F2B 100%);
  271. border-radius: 26rpx;
  272. font-weight: 600;
  273. font-size: 24rpx;
  274. color: #FEFFCA;
  275. width: auto;
  276. padding: 0 22rpx;
  277. line-height: 52rpx;
  278. }
  279. }
  280. }
  281. .bottom-section {
  282. // position: fixed;
  283. // bottom: 0;
  284. // left: 0;
  285. width: 100%;
  286. background-color: #FFFFFF;
  287. box-shadow: inset 0rpx 2rpx 0rpx 0rpx #F0F0F0;
  288. padding: 20rpx 32rpx 58rpx 32rpx;
  289. display: flex;
  290. align-items: center;
  291. box-sizing: border-box;
  292. justify-content: space-around;
  293. .orders {
  294. display: flex;
  295. align-items: center;
  296. margin-right: 40rpx;
  297. padding: 8rpx 0 16rpx;
  298. &.active {
  299. text {
  300. color: #131415;
  301. }
  302. }
  303. image {
  304. width: 44rpx;
  305. height: 44rpx;
  306. }
  307. text {
  308. padding-left: 16rpx;
  309. font-weight: 500;
  310. font-size: 28rpx;
  311. color: #AAAAAA;
  312. line-height: 44rpx;
  313. text-align: center;
  314. }
  315. }
  316. .btnSection {
  317. flex: 1 auto;
  318. button {
  319. width: 100%;
  320. line-height: 88rpx;
  321. background: linear-gradient(270deg, #FF204B 0%, #FE5B71 100%);
  322. border-radius: 44rpx;
  323. font-weight: 500;
  324. font-size: 32rpx;
  325. color: #FFFFFF;
  326. padding-top: 0;
  327. padding-bottom: 0;
  328. &[disabled][type=primary] {
  329. opacity: 0.7;
  330. }
  331. }
  332. }
  333. }
  334. .empty-box {
  335. position: absolute;
  336. left: 50%;
  337. top: 50%;
  338. transform: translate(-50%, -80%);
  339. font-size: 32rpx;
  340. font-family: PingFangSC-Regular, PingFang SC;
  341. font-weight: 400;
  342. color: #999999;
  343. image {
  344. width: 384rpx;
  345. height: 198rpx;
  346. }
  347. .empty-text {
  348. font-size: 28rpx;
  349. color: #777777;
  350. line-height: 40rpx;
  351. text-align: center;
  352. padding-top: 24rpx;
  353. }
  354. }