order-detail.scss 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. @import "../../../../themes/t.cell.scss";
  2. @import "../../../../themes/page.scss";
  3. /* module/order/pages/order-detail/order-detail.wxss */
  4. .page-scroll__container {
  5. flex: 0 1 auto;
  6. height: var(--page-container-safeHeight, 100vh);
  7. background: #f7f8fa;
  8. padding-bottom: 120rpx;
  9. }
  10. .bottom {
  11. padding-bottom: 0;
  12. }
  13. .service-package-placeholder {
  14. width: 160rpx;
  15. height: 160rpx;
  16. border-radius: 8rpx;
  17. margin-right: 20rpx;
  18. background-color: #f5f5f5;
  19. border: 1px solid #e8e8e8;
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. flex-shrink: 0;
  24. }
  25. .goods-list {
  26. background: transparent;
  27. margin-bottom: 20rpx;
  28. padding: 0 20rpx;
  29. }
  30. .category-title {
  31. padding: 28rpx 32rpx 0rpx;
  32. font-size: 32rpx;
  33. font-weight: 600;
  34. color: #333;
  35. background: #fff;
  36. position: sticky;
  37. top: 0;
  38. z-index: 10;
  39. border-radius: 10rpx 10rpx 0 0;
  40. margin-bottom: 0;
  41. }
  42. .goods-item {
  43. display: flex;
  44. align-items: center;
  45. padding: 24rpx 32rpx;
  46. background: #fff;
  47. border-radius: 0;
  48. transition: all 0.3s ease;
  49. &:last-child {
  50. border-radius: 0 0 10rpx 10rpx;
  51. margin-bottom: 20rpx;
  52. border-bottom: none;
  53. }
  54. &:not(:last-child) {
  55. border-bottom: 1rpx solid #f0f0f0;
  56. }
  57. &:active {
  58. background: #f7f8fa;
  59. }
  60. }
  61. .goods-checkbox {
  62. margin-right: 24rpx;
  63. margin-top: 8rpx;
  64. flex-shrink: 0;
  65. }
  66. .goods-image {
  67. width: 160rpx;
  68. height: 160rpx;
  69. border-radius: 8rpx;
  70. background: #f5f5f5;
  71. margin-right: 24rpx;
  72. flex-shrink: 0;
  73. border: 1rpx solid #f0f0f0;
  74. }
  75. .goods-info {
  76. flex: 1;
  77. display: flex;
  78. flex-direction: column;
  79. // min-width: 0;
  80. margin-right: 24rpx;
  81. height: 160rpx;
  82. }
  83. .goods-name {
  84. font-size: 30rpx;
  85. font-weight: 500;
  86. color: #333;
  87. line-height: 1.5;
  88. margin-bottom: 30rpx;
  89. display: -webkit-box;
  90. -webkit-box-orient: vertical;
  91. -webkit-line-clamp: 2;
  92. line-clamp: 2;
  93. overflow: hidden;
  94. text-overflow: ellipsis;
  95. }
  96. .goods-desc {
  97. font-size: 26rpx;
  98. color: #666;
  99. line-height: 1.4;
  100. }
  101. .goods-price-info {
  102. display: flex;
  103. flex-direction: column;
  104. align-items: center;
  105. // justify-content: center;
  106. flex-shrink: 0;
  107. height: 160rpx;
  108. }
  109. .goods-price {
  110. font-size: 32rpx;
  111. font-weight: 600;
  112. color: #333;
  113. letter-spacing: -0.5rpx;
  114. margin-bottom: 40rpx;
  115. }
  116. .quantity-selector {
  117. display: flex;
  118. align-items: center;
  119. border: 2rpx solid #e8e8e8;
  120. border-radius: 12rpx;
  121. overflow: hidden;
  122. background: #fff;
  123. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.04);
  124. }
  125. .quantity-btn {
  126. width: 64rpx;
  127. height: 64rpx;
  128. display: flex;
  129. align-items: center;
  130. justify-content: center;
  131. background: #f8f8f8;
  132. font-size: 36rpx;
  133. font-weight: 500;
  134. color: #333;
  135. user-select: none;
  136. transition: all 0.2s ease;
  137. position: relative;
  138. &.minus {
  139. border-right: 1rpx solid #e8e8e8;
  140. }
  141. &.plus {
  142. border-left: 1rpx solid #e8e8e8;
  143. }
  144. &:active:not(.disabled) {
  145. background: #1d6ff6;
  146. color: #fff;
  147. transform: scale(0.95);
  148. }
  149. &.disabled {
  150. opacity: 0.4;
  151. background: #f5f5f5;
  152. color: #ccc;
  153. cursor: not-allowed;
  154. }
  155. }
  156. .quantity-input {
  157. width: 90rpx;
  158. height: 64rpx;
  159. text-align: center;
  160. font-size: 30rpx;
  161. font-weight: 500;
  162. color: #333;
  163. background: #fff;
  164. border: none;
  165. padding: 0;
  166. &[disabled] {
  167. background: #f8f8f8;
  168. color: #999;
  169. opacity: 0.6;
  170. }
  171. }
  172. .quantity-text {
  173. font-size: 26rpx;
  174. font-weight: 400;
  175. color: #666;
  176. }
  177. .footer-placeholder {
  178. height: 120rpx;
  179. }
  180. .footer-bar {
  181. position: fixed;
  182. bottom: 0;
  183. left: 0;
  184. right: 0;
  185. width: 100%;
  186. min-height: 100rpx;
  187. background: #fff;
  188. display: flex;
  189. align-items: center;
  190. padding: 20rpx 10rpx 0 0;
  191. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.08);
  192. z-index: 100;
  193. box-sizing: border-box;
  194. border-top: 1rpx solid #f0f0f0;
  195. }
  196. .footer-left {
  197. flex-shrink: 0;
  198. margin-right: 32rpx;
  199. }
  200. .footer-center {
  201. flex: 1;
  202. display: flex;
  203. align-items: baseline;
  204. font-size: 28rpx;
  205. color: #333;
  206. line-height: 1.4;
  207. padding-left: 20px;
  208. }
  209. .footer-text {
  210. color: #666;
  211. font-size: 26rpx;
  212. }
  213. .footer-price {
  214. color: #ff4444;
  215. font-weight: 700;
  216. font-size: 36rpx;
  217. margin-left: 8rpx;
  218. letter-spacing: -0.5rpx;
  219. }
  220. .footer-right {
  221. flex-shrink: 0;
  222. padding-right: 10px;
  223. }
  224. .checkout-btn {
  225. line-height: 76rpx;
  226. text-align: center;
  227. background: linear-gradient(135deg, #1d6ff6 0%, #4a90ff 100%);
  228. color: #fff;
  229. font-size: 30rpx;
  230. font-weight: 600;
  231. border-radius: 38rpx;
  232. box-shadow: 0 4rpx 12rpx rgba(29, 111, 246, 0.3);
  233. transition: all 0.3s ease;
  234. padding: 0 20px;
  235. user-select: none;
  236. &:active:not(.checkout-btn--loading) {
  237. opacity: 0.9;
  238. transform: scale(0.98);
  239. box-shadow: 0 2rpx 8rpx rgba(29, 111, 246, 0.4);
  240. }
  241. &.checkout-btn--loading {
  242. opacity: 0.7;
  243. pointer-events: none;
  244. cursor: not-allowed;
  245. }
  246. }
  247. .t-checkbox--block {
  248. padding: 0 !important;
  249. }
  250. // 选择地址的css
  251. .info-box {
  252. padding: 10rpx 20rpx 20rpx 20rpx;
  253. background: #f7f8fa;
  254. }
  255. .show-bttom{
  256. padding: 20rpx;
  257. }
  258. .delivery-address {
  259. font-weight: 500;
  260. font-size: 30rpx;
  261. color: #333;
  262. padding: 23rpx 20rpx;
  263. }
  264. .order-no {
  265. font-size: 28rpx;
  266. color: black;
  267. margin: 24rpx 0 0 0;
  268. }
  269. .address-card {
  270. background: #fff;
  271. border-radius: 16rpx;
  272. overflow: hidden;
  273. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
  274. &.address-card--clickable {
  275. cursor: pointer;
  276. transition: all 0.3s ease;
  277. &:active {
  278. opacity: 0.8;
  279. transform: scale(0.98);
  280. }
  281. }
  282. &.address-card--disabled {
  283. opacity: 0.9;
  284. pointer-events: none;
  285. }
  286. }
  287. .address-content {
  288. display: flex;
  289. align-items: flex-start;
  290. padding: 25rpx 24rpx;
  291. position: relative;
  292. }
  293. .address-icon-wrapper {
  294. flex-shrink: 0;
  295. width: 64rpx;
  296. height: 64rpx;
  297. display: flex;
  298. align-items: center;
  299. justify-content: center;
  300. margin-right: 10rpx;
  301. border-radius: 50%;
  302. }
  303. .address-icon {
  304. width: 36rpx;
  305. height: 36rpx;
  306. }
  307. .address-info {
  308. flex: 1;
  309. min-width: 0;
  310. display: flex;
  311. flex-direction: column;
  312. gap: 12rpx;
  313. }
  314. .address-header {
  315. display: flex;
  316. align-items: center;
  317. gap: 24rpx;
  318. flex-wrap: wrap;
  319. }
  320. .address-name {
  321. font-weight: 500;
  322. font-size: 30rpx;
  323. color: #333;
  324. line-height: 1.4;
  325. margin-right: 20rpx;
  326. }
  327. .address-phone {
  328. font-weight: 400;
  329. font-size: 28rpx;
  330. color: #333;
  331. line-height: 1.4;
  332. }
  333. .address-detail {
  334. color: #666;
  335. font-size: 26rpx;
  336. line-height: 1.6;
  337. word-break: break-all;
  338. }
  339. .address-actions {
  340. flex-shrink: 0;
  341. display: flex;
  342. align-items: center;
  343. gap: 20rpx;
  344. margin-left: 16rpx;
  345. }
  346. .edit-icon {
  347. font-size: 32rpx;
  348. color: #666;
  349. opacity: 0.7;
  350. }
  351. .arrow-icon {
  352. font-size: 40rpx;
  353. color: #ccc;
  354. margin-left: 10rpx;
  355. }
  356. .price-total-wrapper {
  357. padding: 0 20rpx 24rpx;
  358. margin-top: -24rpx;
  359. }
  360. .price-total {
  361. display: flex;
  362. justify-content: flex-end;
  363. align-items: baseline;
  364. background: #fff;
  365. border-radius: 10rpx;
  366. padding: 32rpx;
  367. .price-value {
  368. font-size: 40rpx;
  369. color: black;
  370. font-weight: 600;
  371. }
  372. }
  373. // 价格汇总区域
  374. .price-summary-section {
  375. padding: 0 20rpx 20rpx;
  376. background: #f7f8fa;
  377. }
  378. .price-summary-card {
  379. background: #fff;
  380. border-radius: 10rpx;
  381. padding: 32rpx;
  382. display: flex;
  383. gap: 24rpx;
  384. }
  385. .price-row {
  386. justify-content: flex-end;
  387. align-items: baseline;
  388. }
  389. .price-label {
  390. font-size: 30rpx;
  391. color: #333;
  392. font-weight: 400;
  393. }
  394. .payable-value {
  395. font-size: 40rpx;
  396. color: #333;
  397. font-weight: 700;
  398. }
  399. // 订单信息区域
  400. .order-info-section {
  401. padding: 0 20rpx 20rpx;
  402. background: #f7f8fa;
  403. }
  404. .info-card {
  405. background: #fff;
  406. border-radius: 0;
  407. margin-bottom: 0;
  408. padding: 0 32rpx;
  409. overflow: hidden;
  410. margin-top: 20rpx;
  411. border-radius: 10rpx;
  412. &:first-child {
  413. margin-top: 0;
  414. }
  415. }
  416. .info-item {
  417. display: flex;
  418. align-items: center;
  419. justify-content: space-between;
  420. padding: 32rpx 0;
  421. min-height: 88rpx;
  422. box-sizing: border-box;
  423. }
  424. .info-label {
  425. font-size: 28rpx;
  426. color: #333;
  427. font-weight: 400;
  428. flex-shrink: 0;
  429. }
  430. .info-value {
  431. font-size: 28rpx;
  432. color: #333;
  433. text-align: right;
  434. flex: 1;
  435. word-break: break-all;
  436. margin-left: 24rpx;
  437. }
  438. .info-value-row {
  439. display: flex;
  440. align-items: center;
  441. justify-content: flex-end;
  442. flex: 1;
  443. gap: 16rpx;
  444. margin-left: 24rpx;
  445. }
  446. .copy-btn {
  447. font-size: 28rpx;
  448. color: #1d6ff6;
  449. flex-shrink: 0;
  450. margin-left: 10px;
  451. }
  452. .info-divider {
  453. height: 1rpx;
  454. background: #f0f0f0;
  455. margin: 0;
  456. width: 100%;
  457. }
  458. // 备注相关样式
  459. .remark-item {
  460. padding: 32rpx 0;
  461. display: flex;
  462. flex-direction: column;
  463. }
  464. .remark-input-wrapper {
  465. margin-top: 20rpx;
  466. position: relative;
  467. width: 100%;
  468. }
  469. .remark-textarea {
  470. width: 100%;
  471. min-height: 120rpx;
  472. padding: 20rpx;
  473. font-size: 28rpx;
  474. color: #333;
  475. background: #f7f8fa;
  476. border-radius: 8rpx;
  477. box-sizing: border-box;
  478. line-height: 1.6;
  479. border: 1rpx solid #e8e8e8;
  480. &:focus {
  481. border-color: #1d6ff6;
  482. background: #fff;
  483. }
  484. }
  485. .remark-count {
  486. display: flex;
  487. justify-content: flex-end;
  488. margin-top: 12rpx;
  489. }
  490. .remark-count-text {
  491. font-size: 24rpx;
  492. color: #999;
  493. }