other-detail.scss 11 KB

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