submit-order.wxss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. /* pages/submit-order/submit-order.wxss */
  2. page {
  3. background: #f4f4f4;
  4. }
  5. /* 收货地址 */
  6. .submit-order {
  7. margin: 20rpx 24rpx 120rpx;
  8. }
  9. .submit-order .delivery-addr {
  10. position: relative;
  11. background: #fff;
  12. border-radius: 16rpx;
  13. }
  14. .delivery-addr .addr-bg .add-addr .plus-sign {
  15. color: #FF4D3A;
  16. border: 2rpx solid #FF4D3A;
  17. padding: 0rpx 6rpx;
  18. margin-right: 10rpx;
  19. }
  20. .delivery-addr .addr-bg {
  21. padding: 0 30rpx;
  22. }
  23. .delivery-addr .addr-bg.whole {
  24. padding: 0 39rpx 0 77rpx;
  25. }
  26. .delivery-addr .addr-bg .add-addr {
  27. font-size: 28rpx;
  28. color: #666;
  29. display: flex;
  30. align-items: center;
  31. padding: 30rpx 0;
  32. }
  33. .submit-order .delivery-addr .addr-icon {
  34. width: 32rpx;
  35. height: 32rpx;
  36. display: block;
  37. position: absolute;
  38. left: 30rpx;
  39. top: 24rpx;
  40. }
  41. .submit-order .delivery-addr .addr-icon image {
  42. width: 100%;
  43. height: 100%;
  44. }
  45. .submit-order .delivery-addr .user-info {
  46. padding-top: 20rpx;
  47. line-height: 48rpx;
  48. word-wrap: break-word;
  49. word-break: break-all;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. display: -webkit-box;
  53. -webkit-line-clamp: 1;
  54. -webkit-box-orient: vertical;
  55. }
  56. .submit-order .delivery-addr .user-info .item {
  57. font-size: 30rpx;
  58. margin-right: 30rpx;
  59. vertical-align: top;
  60. display: inline-block;
  61. }
  62. .submit-order .delivery-addr .addr {
  63. font-size: 26rpx;
  64. line-height: 36rpx;
  65. color: #999;
  66. width: 90%;
  67. padding-bottom: 20rpx;
  68. margin-top: 15rpx;
  69. }
  70. .submit-order .delivery-addr .arrow {
  71. width: 15rpx;
  72. height: 15rpx;
  73. border-top: 2rpx solid #777;
  74. border-right: 2rpx solid #777;
  75. transform: rotate(45deg);
  76. position: absolute;
  77. right: 30rpx;
  78. top: 60rpx;
  79. }
  80. .submit-order .delivery-addr .arrow.empty {
  81. top: 39rpx;
  82. }
  83. .addr-bg .add-addr .plus-sign-img {
  84. width: 32rpx;
  85. height: 32rpx;
  86. font-size: 0;
  87. margin-right: 10rpx;
  88. }
  89. .addr-bg .add-addr .plus-sign-img image {
  90. width: 100%;
  91. height: 100%;
  92. }
  93. /* 会员积分 */
  94. .member-points {
  95. display: flex;
  96. justify-content: space-between;
  97. width: 100%;
  98. }
  99. .integral-icon {
  100. display: inline-block;
  101. width: 35rpx;
  102. height: 35rpx;
  103. vertical-align: middle;
  104. }
  105. .integral-icon > image {
  106. display: block;
  107. width: 100%;
  108. height: 100%;
  109. }
  110. .integral-deduction{
  111. display: flex;
  112. }
  113. .integral-tips {
  114. color: #999;
  115. display: flex;
  116. align-items: center;
  117. }
  118. .integral-tips > image {
  119. margin-left: 10rpx;
  120. width: 36rpx;
  121. height: 36rpx;
  122. }
  123. .integral-right-select {
  124. display: inline-block;
  125. line-height: 1em;
  126. }
  127. radio.item-group {
  128. display: block;
  129. width: 35rpx;
  130. height: 35rpx;
  131. text-align: center;
  132. }
  133. radio.item-group .wx-radio-input{
  134. border-radius: 50%;
  135. width: 32rpx;
  136. height: 32rpx;
  137. text-align: center;
  138. }
  139. /* 选中后的样式 (可根据设计稿需求自己修改) */
  140. /* radio .wx-radio-input.wx-radio-input-checked::before{ */
  141. /* border-radius: 50%; */
  142. /* width: 54rpx; */
  143. /* height: 54rpx; */
  144. /* line-height: 54rpx; */
  145. /* text-align: center; */
  146. /* font-size: 34rpx; 对勾大小 26rpx */
  147. /* color:#fff; 对勾颜色 */
  148. /* background: #faa845; */
  149. /* border-color: #faa845; */
  150. /* } */
  151. /* 商品列表 */
  152. .shop-item {
  153. margin-top: 20rpx;
  154. margin-bottom: 20rpx;
  155. border-radius: 16rpx;
  156. background-color: #fff;
  157. }
  158. .prod-item {
  159. background-color: #fff;
  160. /* margin-top: 15rpx; */
  161. font-size: 28rpx;
  162. }
  163. .prod-item .item-cont .prod-pic image {
  164. width: 180rpx;
  165. height: 180rpx;
  166. }
  167. .prod-item .order-num {
  168. padding: 20rpx 30rpx;
  169. display: flex;
  170. justify-content: space-between;
  171. font-size: 28rpx;
  172. }
  173. .order-state {
  174. display: flex;
  175. align-items: center;
  176. }
  177. /* .item-box {
  178. border-bottom: 10rpx solid #f2f2f2;
  179. } */
  180. /* 店铺 */
  181. .shop-box {
  182. padding: 20rpx;
  183. /* margin: 0 20rpx; */
  184. border-bottom: 1rpx solid #f2f2f2;
  185. }
  186. .shop-icon {
  187. display: inline-block;
  188. width: 35rpx;
  189. height: 35rpx;
  190. vertical-align: middle;
  191. margin-right: 15rpx;
  192. }
  193. .shop-icon > image {
  194. width: 100%;
  195. height: 100%;
  196. }
  197. .shop-name {
  198. font-size: 30rpx;
  199. display: inline-block;
  200. vertical-align: middle;
  201. max-width: 90%;
  202. white-space: nowrap;
  203. overflow: hidden;
  204. text-overflow: ellipsis;
  205. }
  206. .prod-item .item-cont {
  207. display: flex;
  208. align-items: center;
  209. padding: 30rpx 0;
  210. padding-right: 20rpx;
  211. margin-left: 30rpx;
  212. border-bottom: 2rpx solid #f1f1f1;
  213. }
  214. .prod-item .order-num .clear-btn {
  215. width: 32rpx;
  216. height: 32rpx;
  217. font-size: 0;
  218. vertical-align: top;
  219. margin-top: 6rpx;
  220. margin-left: 42rpx;
  221. position: relative;
  222. }
  223. .prod-item .order-num .clear-btn::after {
  224. content: " ";
  225. display: block;
  226. position: absolute;
  227. left: -10px;
  228. top: 1px;
  229. width: 1px;
  230. height: 12px;
  231. background: #ddd;
  232. }
  233. .prod-item .order-num .clear-btn .clear-list-btn {
  234. width: 100%;
  235. height: 100%;
  236. vertical-align: middle;
  237. }
  238. .prod-item .item-cont .prod-pic {
  239. font-size: 0;
  240. display: block;
  241. width: 160rpx;
  242. height: 160rpx;
  243. overflow: hidden;
  244. background: #fff;
  245. margin-right: 16rpx;
  246. }
  247. .prod-item .item-cont .prod-pic image {
  248. width: 100%;
  249. height: 100%;
  250. }
  251. .prod-item .item-cont .prod-info {
  252. margin-left: 10rpx;
  253. font-size: 28rpx;
  254. width: 100%;
  255. position: relative;
  256. height: 160rpx;
  257. -webkit-flex: 1;
  258. -ms-flex: 1;
  259. -webkit-box-flex: 1;
  260. -moz-box-flex: 1;
  261. flex: 1;
  262. }
  263. .prod-item .item-cont .prod-info .prodname {
  264. font-size: 30rpx;
  265. line-height: 40rpx;
  266. max-height: 86rpx;
  267. overflow: hidden;
  268. display: -webkit-box;
  269. -webkit-line-clamp: 2;
  270. -webkit-box-orient: vertical;
  271. text-overflow: ellipsis;
  272. word-break: break-all;
  273. }
  274. .prod-item .item-cont .prod-info .prod-info-cont {
  275. color: #888888;
  276. line-height: 40rpx;
  277. margin-top: 10rpx;
  278. font-size: 25rpx;
  279. overflow: hidden;
  280. display: -webkit-box;
  281. -webkit-line-clamp: 1;
  282. -webkit-box-orient: vertical;
  283. text-overflow: ellipsis;
  284. word-break: break-all;
  285. }
  286. .prod-item .total-num {
  287. text-align: right;
  288. padding: 20rpx 30rpx;
  289. font-size: 28rpx;
  290. }
  291. .prod-item .price-nums {
  292. margin-top: 10rpx;
  293. }
  294. .prod-item .price-nums .prodprice {
  295. display: block;
  296. /* position: absolute; */
  297. bottom: 0;
  298. color: #FF4D3A;
  299. font-size: 32rpx;
  300. }
  301. .prod-item .price-nums .prodcount {
  302. position: absolute;
  303. bottom: 5rpx;
  304. right: 0;
  305. color: #999;
  306. font-family: verdana;
  307. font-size: 30rpx;
  308. }
  309. .prod-item .total-num .prodprice {
  310. display: inline-block;
  311. color: #333;
  312. }
  313. .prod-item .total-num .prodcount {
  314. margin-right: 20rpx;
  315. }
  316. /* 促销样式 */
  317. .prod-item .prod-block {
  318. background: #fff;
  319. }
  320. .prod-item .prod-block.discount .item-cont{
  321. position: relative;
  322. }
  323. .prod-item .prod-block.discount .item-cont::after{
  324. content: "";
  325. position: absolute;
  326. left: -5rpx;
  327. top: 0;
  328. bottom: 0;
  329. width: 0;
  330. border-left: 1px dashed #e5e5e5;
  331. z-index:0;
  332. }
  333. .prod-item .prod-block .discount-tips {
  334. padding: 20rpx 0 10rpx 10rpx;
  335. height: 40rpx;
  336. line-height: 40rpx;
  337. border-top: 1rpx solid #f2f2f2;
  338. }
  339. .prod-item .prod-block .discount-tips .text-block {
  340. padding: 3rpx 5rpx;
  341. border-radius: 8rpx;
  342. font-size: 23rpx;
  343. background: #FF4D3A;
  344. color:#fff;
  345. position: relative;
  346. }
  347. .prod-item .prod-block .discount-tips .text-block::before{
  348. position: absolute;
  349. left: 5px;
  350. bottom: -4px;
  351. content: "";
  352. display: block;
  353. border-left: 4px solid transparent;
  354. border-right: 4px solid transparent;
  355. border-top: 4px solid #FF4D3A;
  356. }
  357. .prod-item .prod-block .discount-tips .text-list {
  358. font-size: 26rpx;
  359. margin-left: 10rpx;
  360. }
  361. .shop-item .prod-block .discount-tips .text-list.reduce-amount {
  362. font-weight: normal;
  363. color: #FF4D3A;
  364. padding-left: 20rpx;
  365. }
  366. /* 促销样式 */
  367. /*
  368. 订单信息 */
  369. .order-msg {
  370. background: #fff;
  371. font-size: 30rpx;
  372. border-radius: 16rpx;
  373. }
  374. .order-msg .msg-item {
  375. border-top: 1px solid #f1f1f1;
  376. }
  377. .order-msg .msg-item:first-child {
  378. border: 0;
  379. }
  380. .order-msg .msg-item .item {
  381. position: relative;
  382. display: flex;
  383. align-items: center;
  384. padding: 16rpx 30rpx;
  385. }
  386. .order-msg .msg-item .item.payment {
  387. border-top: 2rpx solid #f1f1f1;
  388. color: #FF4D3A;
  389. }
  390. .order-msg .msg-item .item .item-tit {
  391. line-height: 48rpx;
  392. font-size: 28rpx;
  393. color: #222;
  394. }
  395. .order-msg .msg-item .item .item-txt {
  396. -webkit-box-flex: 1;
  397. -moz-box-flex: 1;
  398. flex: 1;
  399. font-family: arial;
  400. max-height: 48rpx;
  401. overflow: hidden;
  402. line-height: 48rpx;
  403. display: -webkit-box;
  404. -webkit-line-clamp: 1;
  405. -webkit-box-orient: vertical;
  406. text-overflow: ellipsis;
  407. word-break: break-all;
  408. background: #fff;
  409. }
  410. .order-msg .msg-item .item .item-txt.none{
  411. color:#999;
  412. }
  413. .order-msg .msg-item .item.coupon {
  414. border-bottom: 2rpx solid #f1f1f1;
  415. }
  416. .order-msg .msg-item .item input {
  417. flex: 1;
  418. z-index: 0;
  419. }
  420. .order-msg .msg-item .item .coupon-btn {
  421. display: block;
  422. margin: 0 30rpx;
  423. line-height: 28rpx;
  424. color: #999;
  425. }
  426. .order-msg .msg-item .item .coupon-amount{
  427. color: #FF4D3A;
  428. position: absolute;
  429. right:60rpx;
  430. }
  431. .order-msg .msg-item .item .item-txt.price {
  432. text-align: right;
  433. }
  434. .order-msg .msg-item .item .arrow {
  435. width: 15rpx;
  436. height: 15rpx;
  437. border-top: 2rpx solid #999;
  438. border-right: 2rpx solid #999;
  439. transform: rotate(45deg);
  440. position: absolute;
  441. right: 30rpx;
  442. }
  443. /* 底部栏 */
  444. .submit-order-footer {
  445. position: fixed;
  446. bottom: 0;
  447. width: 100%;
  448. max-width: 750rpx;
  449. background: #fff;
  450. margin: auto;
  451. display: -webkit-flex;
  452. display: -webkit-box;
  453. display: -moz-box;
  454. display: -ms-flexbox;
  455. display: flex;
  456. align-items: center;
  457. font-size: 26rpx;
  458. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  459. }
  460. .submit-order-footer .sub-order {
  461. flex: 1;
  462. margin: 0 30rpx;
  463. line-height: 100rpx;
  464. display: block;
  465. text-align: left;
  466. font-size: 28rpx;
  467. background: #fff;
  468. z-index: 5;
  469. }
  470. .item-txt {
  471. height: 100rpx;
  472. line-height: 100rpx;
  473. }
  474. .submit-order-footer .footer-box {
  475. padding: 0 10rpx;
  476. width: 200rpx;
  477. background: #04358D;
  478. text-align: center;
  479. color: #fff;
  480. font-size: 28rpx;
  481. font-weight: bold;
  482. border-radius: 60rpx;
  483. height: 2.8em;
  484. line-height: 2.8em;
  485. margin-right: 20rpx;
  486. }
  487. .submit-order-footer .sub-order .item-txt .price {
  488. display: inline;
  489. color: #FF4D3A;
  490. font-size: 28rpx;
  491. }
  492. .clearfix:after {
  493. content: " ";
  494. display: table;
  495. clear: both;
  496. }
  497. /** 优惠券弹窗 **/
  498. .popup-hide {
  499. position: fixed;
  500. top: 0;
  501. bottom: 0;
  502. left: 0;
  503. right: 0;
  504. z-index: 999;
  505. background-color: rgba(0, 0, 0, 0.3);
  506. }
  507. .popup-box {
  508. position: absolute;
  509. bottom: 0;
  510. width: 100%;
  511. height: 80%;
  512. overflow: hidden;
  513. background-color: #fff;
  514. }
  515. .popup-tit {
  516. position: relative;
  517. height: 46px;
  518. line-height: 46px;
  519. padding-left: 10px;
  520. font-size: 16px;
  521. color: #333;
  522. font-weight: bold;
  523. }
  524. .close {
  525. color: #aaa;
  526. border-radius: 12px;
  527. line-height: 20px;
  528. text-align: center;
  529. height: 20px;
  530. width: 20px;
  531. font-size: 18px;
  532. padding: 1px;
  533. top: 10px;
  534. right: 10px;
  535. position: absolute;
  536. }
  537. .close::before {
  538. content: "\2716";
  539. }
  540. .coupon-tabs {
  541. display: flex;
  542. font-size: 14px;
  543. justify-content: space-around;
  544. border-bottom: 1px solid #f2f2f2;
  545. }
  546. .coupon-tab {
  547. padding: 10px 0;
  548. }
  549. .coupon-tab.on {
  550. border-bottom: 2px solid #04358D;
  551. font-weight: 600;
  552. }
  553. .popup-cnt {
  554. height: calc(100% - 88px);
  555. overflow: auto;
  556. padding: 0 10px;
  557. background: #f4f4f4;
  558. }
  559. .coupon-con{
  560. padding-bottom: 120rpx;
  561. }
  562. .coupon-ok {
  563. position: fixed;
  564. bottom: 0;
  565. width: 100%;
  566. height: 60px;
  567. line-height: 50px;
  568. font-size: 14px;
  569. text-align: center;
  570. box-shadow: 0px -1px 1px #ddd;
  571. background: rgba(255, 255, 255, 0.9);
  572. }
  573. .coupon-ok text {
  574. border-radius: 20px;
  575. display: inline-block;
  576. height: 20px;
  577. line-height: 20px;
  578. width: 450rpx;
  579. padding: 7px;
  580. background-color: #04358D;
  581. /* background: -o-linear-gradient(right, #f45c43, #04358D);
  582. background: linear-gradient(right, #f45c43, #04358D);
  583. background: -webkit-linear-gradient(right, #f45c43, #04358D); */
  584. color: #fff;
  585. box-shadow: -1px 3px 3px #aaa;
  586. }
  587. .botm-empty {
  588. height: 150rpx;
  589. line-height: 150rpx;
  590. font-size: 25rpx;
  591. color: #aaa;
  592. text-align: center;
  593. }
  594. /*checkbox 选项框大小 */
  595. checkbox .wx-checkbox-input {
  596. border-radius: 50%;
  597. width: 35rpx;
  598. height: 35rpx;
  599. }
  600. /*checkbox选中后样式 */
  601. checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  602. background: #FF4D3A;
  603. border-color: #FF4D3A;
  604. }
  605. /*checkbox选中后图标样式 */
  606. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  607. text-align: center;
  608. font-size: 22rpx;
  609. color: #fff;
  610. background: transparent;
  611. transform: translate(-50%, -50%) scale(1);
  612. -webkit-transform: translate(-50%, -50%) scale(1);
  613. }
  614. /* 修改积分弹出层 */
  615. .score-pop{
  616. height: 30%;
  617. top: 15%;
  618. left: 10%;
  619. transform: translateY(-15%);
  620. width: 80%;
  621. border-radius: 20rpx;
  622. padding: 0 40rpx;
  623. box-sizing: border-box;
  624. }
  625. .score-pop-con .popup-tit{
  626. align-content: flex-start;
  627. }
  628. .score-pop-con{
  629. display: flex;
  630. flex-direction: column;
  631. justify-content: space-around;
  632. align-items: center;
  633. height: 90%;
  634. margin-top: 30rpx;
  635. }
  636. .score-pop-item{
  637. width: 100%;
  638. -webkit-user-select: text !important;
  639. }
  640. input.score-int {
  641. -webkit-user-select: text !important;
  642. }
  643. .score-pop-tit{
  644. margin: 0;
  645. width: 100%;
  646. }
  647. .score-pop-item .confirm-btn{
  648. display: block;
  649. border-radius: 50rpx;
  650. background-color: #FF4D3A;
  651. color: #ffffff;
  652. padding: 10rpx;
  653. text-align: center;
  654. }
  655. .score-tips{
  656. color: #999;
  657. font-size: 26rpx;
  658. }
  659. .score-placeholder{
  660. font-size: 26rpx;
  661. }