other-detail.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  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. // 申请售后 + 评价 按钮行(图示样式:左灰底、右白底蓝框)
  234. .action-btns {
  235. display: flex;
  236. flex-direction: row;
  237. align-items: center;
  238. justify-content: flex-end;
  239. margin-top: 16rpx;
  240. }
  241. .btn-aftersale {
  242. padding: 12rpx 28rpx;
  243. border-radius: 12rpx;
  244. font-size: 26rpx;
  245. text-align: center;
  246. background-color: #e8e8e8;
  247. color: #666;
  248. &.disabled-btn {
  249. background-color: transparent;
  250. color: #fa5151;
  251. font-weight: 600;
  252. padding: 12rpx 10rpx;
  253. }
  254. }
  255. .btn-review {
  256. padding: 12rpx 28rpx;
  257. border-radius: 12rpx;
  258. font-size: 26rpx;
  259. text-align: center;
  260. background-color: #fff;
  261. color: #1976d2;
  262. border: 1px solid #1976d2;
  263. margin-left: 20rpx;
  264. }
  265. .quantity-selector {
  266. display: flex;
  267. align-items: center;
  268. border: 2rpx solid #e8e8e8;
  269. border-radius: 12rpx;
  270. overflow: hidden;
  271. background: #fff;
  272. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.04);
  273. }
  274. .quantity-btn {
  275. width: 64rpx;
  276. height: 64rpx;
  277. display: flex;
  278. align-items: center;
  279. justify-content: center;
  280. background: #f8f8f8;
  281. font-size: 36rpx;
  282. font-weight: 500;
  283. color: #333;
  284. user-select: none;
  285. transition: all 0.2s ease;
  286. position: relative;
  287. &.minus {
  288. border-right: 1rpx solid #e8e8e8;
  289. }
  290. &.plus {
  291. border-left: 1rpx solid #e8e8e8;
  292. }
  293. &:active:not(.disabled) {
  294. background: #1d6ff6;
  295. color: #fff;
  296. transform: scale(0.95);
  297. }
  298. &.disabled {
  299. opacity: 0.4;
  300. background: #f5f5f5;
  301. color: #ccc;
  302. cursor: not-allowed;
  303. }
  304. }
  305. .quantity-input {
  306. width: 90rpx;
  307. height: 64rpx;
  308. text-align: center;
  309. font-size: 30rpx;
  310. font-weight: 500;
  311. color: #333;
  312. background: #fff;
  313. border: none;
  314. padding: 0;
  315. &[disabled] {
  316. background: #f8f8f8;
  317. color: #999;
  318. opacity: 0.6;
  319. }
  320. }
  321. .quantity-text {
  322. font-size: 28rpx;
  323. font-weight: 400;
  324. color: #666;
  325. padding: 0;
  326. }
  327. .footer-placeholder {
  328. height: 120rpx;
  329. }
  330. .footer-bar {
  331. position: fixed;
  332. bottom: 0;
  333. left: 0;
  334. right: 0;
  335. width: 100%;
  336. min-height: 100rpx;
  337. background: #fff;
  338. display: flex;
  339. align-items: center;
  340. padding: 20rpx 10rpx 0 0;
  341. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.08);
  342. z-index: 100;
  343. box-sizing: border-box;
  344. border-top: 1rpx solid #f0f0f0;
  345. }
  346. .footer-left {
  347. flex-shrink: 0;
  348. margin-right: 32rpx;
  349. }
  350. .footer-center {
  351. flex: 1;
  352. display: flex;
  353. align-items: baseline;
  354. font-size: 28rpx;
  355. color: #333;
  356. line-height: 1.4;
  357. padding-left: 20px;
  358. }
  359. .footer-text {
  360. color: #666;
  361. font-size: 26rpx;
  362. }
  363. .footer-price {
  364. color: #ff4444;
  365. font-weight: 700;
  366. font-size: 36rpx;
  367. margin-left: 8rpx;
  368. letter-spacing: -0.5rpx;
  369. }
  370. .footer-right {
  371. flex-shrink: 0;
  372. padding-right: 10px;
  373. }
  374. .checkout-btn {
  375. line-height: 76rpx;
  376. text-align: center;
  377. background: linear-gradient(135deg, #1d6ff6 0%, #4a90ff 100%);
  378. color: #fff;
  379. font-size: 30rpx;
  380. font-weight: 600;
  381. border-radius: 38rpx;
  382. box-shadow: 0 4rpx 12rpx rgba(29, 111, 246, 0.3);
  383. transition: all 0.3s ease;
  384. padding: 0 20px;
  385. user-select: none;
  386. &:active:not(.checkout-btn--loading) {
  387. opacity: 0.9;
  388. transform: scale(0.98);
  389. box-shadow: 0 2rpx 8rpx rgba(29, 111, 246, 0.4);
  390. }
  391. &.checkout-btn--loading {
  392. opacity: 0.7;
  393. pointer-events: none;
  394. cursor: not-allowed;
  395. }
  396. }
  397. .t-checkbox--block {
  398. padding: 0 !important;
  399. }
  400. .info-box {
  401. padding: 10rpx;
  402. }
  403. .delivery-address {
  404. font-weight: 500;
  405. font-size: 30rpx;
  406. color: #333;
  407. padding: 30rpx 20rpx;
  408. }
  409. .order-no {
  410. font-size: 28rpx;
  411. color: black;
  412. margin: 24rpx 0 0 0;
  413. }
  414. .address-card {
  415. background: #fff;
  416. border-radius: 16rpx;
  417. overflow: hidden;
  418. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
  419. &.address-card--clickable {
  420. cursor: pointer;
  421. transition: all 0.3s ease;
  422. &:active {
  423. opacity: 0.8;
  424. transform: scale(0.98);
  425. }
  426. }
  427. &.address-card--disabled {
  428. opacity: 0.9;
  429. pointer-events: none;
  430. }
  431. }
  432. .address-content {
  433. display: flex;
  434. align-items: flex-start;
  435. padding: 32rpx 24rpx;
  436. position: relative;
  437. }
  438. .address-icon-wrapper {
  439. flex-shrink: 0;
  440. width: 64rpx;
  441. height: 64rpx;
  442. display: flex;
  443. align-items: center;
  444. justify-content: center;
  445. margin-right: 10rpx;
  446. border-radius: 50%;
  447. }
  448. .address-icon {
  449. width: 36rpx;
  450. height: 36rpx;
  451. }
  452. .address-info {
  453. flex: 1;
  454. min-width: 0;
  455. display: flex;
  456. flex-direction: column;
  457. gap: 12rpx;
  458. }
  459. .address-header {
  460. display: flex;
  461. align-items: center;
  462. gap: 24rpx;
  463. flex-wrap: wrap;
  464. }
  465. .address-name {
  466. font-weight: 500;
  467. font-size: 30rpx;
  468. color: #333;
  469. line-height: 1.4;
  470. margin-right: 20rpx;
  471. }
  472. .address-phone {
  473. font-weight: 400;
  474. font-size: 28rpx;
  475. color: #333;
  476. line-height: 1.4;
  477. }
  478. .address-detail {
  479. color: #666;
  480. font-size: 26rpx;
  481. line-height: 1.6;
  482. word-break: break-all;
  483. }
  484. .address-actions {
  485. flex-shrink: 0;
  486. display: flex;
  487. align-items: center;
  488. gap: 20rpx;
  489. margin-left: 16rpx;
  490. }
  491. .edit-icon {
  492. font-size: 32rpx;
  493. color: #666;
  494. opacity: 0.7;
  495. }
  496. .arrow-icon {
  497. font-size: 40rpx;
  498. color: #ccc;
  499. margin-left: 10rpx;
  500. }
  501. // 价格汇总区域
  502. .price-summary-section {
  503. padding: 0 20rpx 20rpx;
  504. background: #f7f8fa;
  505. }
  506. .price-summary-card {
  507. background: #fff;
  508. border-radius: 10rpx;
  509. padding: 32rpx;
  510. display: flex;
  511. gap: 24rpx;
  512. }
  513. .price-row {
  514. justify-content: flex-end;
  515. align-items: baseline;
  516. }
  517. .price-label {
  518. font-size: 30rpx;
  519. color: #333;
  520. font-weight: 400;
  521. }
  522. .payable-value {
  523. font-size: 40rpx;
  524. color: #333;
  525. font-weight: 700;
  526. }
  527. // 订单信息区域
  528. .order-info-section {
  529. padding: 0 20rpx 20rpx;
  530. background: #f7f8fa;
  531. }
  532. .info-card {
  533. background: #fff;
  534. border-radius: 0;
  535. margin-bottom: 0;
  536. padding: 0 32rpx;
  537. overflow: hidden;
  538. margin-top: 20rpx;
  539. border-radius: 10rpx;
  540. &:first-child {
  541. margin-top: 0;
  542. }
  543. }
  544. .info-item {
  545. display: flex;
  546. align-items: center;
  547. justify-content: space-between;
  548. padding: 32rpx 0;
  549. min-height: 88rpx;
  550. box-sizing: border-box;
  551. }
  552. .info-label {
  553. font-size: 28rpx;
  554. color: #333;
  555. font-weight: 400;
  556. flex-shrink: 0;
  557. }
  558. .info-value {
  559. font-size: 28rpx;
  560. color: #333;
  561. text-align: right;
  562. flex: 1;
  563. word-break: break-all;
  564. margin-left: 24rpx;
  565. }
  566. .info-value-row {
  567. display: flex;
  568. align-items: center;
  569. justify-content: flex-end;
  570. flex: 1;
  571. gap: 16rpx;
  572. margin-left: 24rpx;
  573. }
  574. .copy-btn {
  575. font-size: 28rpx;
  576. color: #1d6ff6;
  577. flex-shrink: 0;
  578. margin-left: 10px;
  579. }
  580. .info-divider {
  581. height: 1rpx;
  582. background: #f0f0f0;
  583. margin: 0;
  584. width: 100%;
  585. }
  586. // 备注相关样式
  587. .remark-item {
  588. padding: 32rpx 0;
  589. display: flex;
  590. flex-direction: column;
  591. }
  592. .remark-input-wrapper {
  593. margin-top: 20rpx;
  594. position: relative;
  595. width: 100%;
  596. }
  597. .remark-textarea {
  598. width: 100%;
  599. min-height: 120rpx;
  600. padding: 20rpx;
  601. font-size: 28rpx;
  602. color: #333;
  603. background: #f7f8fa;
  604. border-radius: 8rpx;
  605. box-sizing: border-box;
  606. line-height: 1.6;
  607. border: 1rpx solid #e8e8e8;
  608. &:focus {
  609. border-color: #1d6ff6;
  610. background: #fff;
  611. }
  612. }
  613. .remark-count {
  614. display: flex;
  615. justify-content: flex-end;
  616. margin-top: 12rpx;
  617. }
  618. .remark-count-text {
  619. font-size: 24rpx;
  620. color: #999;
  621. }