orders.less 7.6 KB

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