orders.less 6.4 KB

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