spellGroupDetails.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. /* pages/SpellGroupDetails/spellGroupDetails.wxss */
  2. .clearfix::after {
  3. content: '';
  4. display: block;
  5. clear: both;
  6. }
  7. .top-box {
  8. position: relative;
  9. height: 370rpx;
  10. background: #fff;
  11. border-bottom: 15rpx solid #f2f2f2;
  12. }
  13. .top-bg {
  14. width: 150%;
  15. height: 450rpx;
  16. border-radius: 50%;
  17. position: relative;
  18. left: -27%;
  19. top: -135px;
  20. color: #fff;
  21. text-align: center;
  22. line-height: 100px;
  23. z-index: 1;
  24. background: -webkit-linear-gradient(left, #ff4f47, #fc3060); /* Safari 5.1 - 6.0 */
  25. background: -o-linear-gradient(right, #ff4f47, #fc3060); /* Opera 11.1 - 12.0 */
  26. background: -moz-linear-gradient(right, #ff4f47, #fc3060); /* Firefox 3.6 - 15 */
  27. background: linear-gradient(to right, #ff4f47, #fc3060); /* 标准*/
  28. }
  29. /* 商品内容 */
  30. .goods-content {
  31. position: absolute;
  32. top: 60rpx;
  33. left: 50%;
  34. transform: translateX(-50%);
  35. width: 85%;
  36. margin: 0 auto;
  37. padding: 15rpx;
  38. z-index: 11;
  39. background: #fff;
  40. border-radius: 15rpx;
  41. box-shadow: 0 7rpx 12rpx 0 #e9e9e9;
  42. }
  43. .goods-img-box {
  44. display: inline-block;
  45. width: 200rpx;
  46. height: 200rpx;
  47. margin-right: 20rpx;
  48. background: #eee;
  49. vertical-align: middle;
  50. border-radius: 10rpx;
  51. }
  52. .goods-img {
  53. width: 100%;
  54. height: 100%;
  55. }
  56. .goods-msg {
  57. display: inline-block;
  58. height: 100%;
  59. vertical-align: top;
  60. font-size: 28rpx;
  61. }
  62. .goods-title {
  63. display: inline-block;
  64. width: 400rpx;
  65. display: -webkit-box;
  66. word-break: break-all;
  67. overflow: hidden;
  68. text-overflow: ellipsis;
  69. -webkit-line-clamp: 2;
  70. -webkit-box-orient: vertical;
  71. }
  72. .goods-price {
  73. position: relative;
  74. top: 50rpx;
  75. }
  76. .spell-group-price {
  77. color: #e43130;
  78. margin-right: 0.5em;
  79. font-size: 34rpx;
  80. }
  81. .original-price {
  82. font-size: 28rpx;
  83. text-decoration: line-through;
  84. color: #888;
  85. }
  86. /* 拼团规则 */
  87. .tips-text {
  88. font-size: 28rpx;
  89. position: absolute;
  90. bottom: 1em;
  91. width: 85%;
  92. left: 50%;
  93. transform: translateX(-50%);
  94. text-align: left;
  95. }
  96. .thumb-icon {
  97. display: inline-block;
  98. width: 20rpx;
  99. height: 20rpx;
  100. margin-right: 15rpx;
  101. }
  102. .right-arrow-icon {
  103. padding-top: 4rpx;
  104. width: 25rpx;
  105. height: 25rpx;
  106. float: right;
  107. }
  108. /* 下方 */
  109. .condition {
  110. padding-top: 1em;
  111. background: #fff;
  112. font-size: 28rpx;
  113. text-align: center;
  114. }
  115. /* 剩余时间 */
  116. .time-remaining {
  117. position: relative;
  118. text-align: center;
  119. }
  120. .time-text {
  121. padding: 0 3em;
  122. color: #e43130;
  123. }
  124. .line {
  125. position: absolute;
  126. display: inline-block;
  127. top: 50%;
  128. transform: translateX(-50%);
  129. width: 3em;
  130. height: 5rpx;
  131. background-color: #e43130;
  132. }
  133. .round {
  134. position: absolute;
  135. top: 44%;
  136. transform: translateX(-40%);
  137. width: 10rpx;
  138. height: 10rpx;
  139. background-color: #e43130;
  140. border-radius: 50%;
  141. right: 62%;
  142. }
  143. .round:nth-child(2) {
  144. right: 36%;
  145. }
  146. .countdown {
  147. text-align: center;
  148. padding: 1em 0;
  149. color: #e43130;
  150. }
  151. .time-number {
  152. background: #e43130;
  153. color: #fff;
  154. border-radius: 8rpx;
  155. padding: 0 4rpx;
  156. }
  157. /* 人员 */
  158. .member {
  159. display: inline-block;
  160. margin: 1em 0;
  161. padding-left: 2.5em;
  162. }
  163. .captain, .group-member {
  164. display: inline-block;
  165. position: relative;
  166. width: 120rpx;
  167. height: 120rpx;
  168. z-index: 999;
  169. }
  170. .captain-img {
  171. box-sizing: border-box;
  172. width: 100%;
  173. height: 100%;
  174. border: 4rpx solid #e43130;
  175. border-radius: 50%;
  176. }
  177. .status {
  178. position: absolute;
  179. left: 50%;
  180. transform: translateX(-50%);
  181. bottom: 0;
  182. font-size: 23rpx;
  183. width: 3em;
  184. background: #e43130;
  185. color: #fff;
  186. border-radius: 10rpx;
  187. }
  188. .group-member-img {
  189. box-sizing: border-box;
  190. width: 100%;
  191. height: 100%;
  192. border: 3rpx dashed #e43130;
  193. border-radius: 50%;
  194. }
  195. .view-all {
  196. color: #e43130;
  197. border: 1px solid #e43130;
  198. width: 7em;
  199. margin: 0 auto;
  200. border-radius: 30rpx;
  201. padding: 0.2em 0;
  202. font-size: 22rpx;
  203. margin-bottom: 1.5em;
  204. }
  205. .invite-text {
  206. margin: 1em 0;
  207. font-size: 28rpx;
  208. }
  209. .invite-text > text {
  210. color: #e43130;
  211. }
  212. .display {
  213. display: none;
  214. }
  215. /* 立即参团 */
  216. .join-now, .check-order {
  217. box-sizing: border-box;
  218. width: 85%;
  219. margin: 1.5em auto;
  220. border-radius: 50rpx;
  221. font-size: 27rpx;
  222. }
  223. .join-now {
  224. color: #fff;
  225. height: 80rpx;
  226. line-height: 80rpx;
  227. background: -webkit-linear-gradient(left, #ff4f47, #fc3060); /* Safari 5.1 - 6.0 */
  228. background: -o-linear-gradient(right, #ff4f47, #fc3060); /* Opera 11.1 - 12.0 */
  229. background: -moz-linear-gradient(right, #ff4f47, #fc3060); /* Firefox 3.6 - 15 */
  230. background: linear-gradient(to right, #ff4f47, #fc3060); /* 标准*/
  231. }
  232. .check-order {
  233. border: 1px solid #e43130;
  234. color: #e43130;
  235. padding: 0.7em 0;
  236. }
  237. /* 弹框 */
  238. /*模态框*/
  239. .modals {
  240. position: fixed;
  241. z-index: 999;
  242. top: 0;
  243. left: 0;
  244. right: 0;
  245. bottom: 0;
  246. }
  247. .modals-cancel {
  248. position: absolute;
  249. z-index: 190;
  250. top: 0;
  251. left: 0;
  252. right: 0;
  253. bottom: 0;
  254. background-color: rgba(0, 0, 0, 0.5);
  255. }
  256. .bottom-dialog-body {
  257. position: absolute;
  258. z-index: 200;
  259. bottom: 0;
  260. left: 0;
  261. right: 0;
  262. height: auto;
  263. background-color: #fff;
  264. }
  265. /*动画前初始位置*/
  266. .bottom-pos {
  267. -webkit-transform: translateY(100%);
  268. transform: translateY(100%);
  269. }
  270. /* 上部内容 */
  271. .top-content {
  272. position: relative;
  273. border-bottom: 1px solid #f2f2f2;
  274. font-size: 25rpx;
  275. }
  276. .top-content-img-box {
  277. position: absolute;
  278. top: -25rpx;
  279. width: 150rpx;
  280. height: 150rpx;
  281. background: #f2f2f2;
  282. margin-left: 30rpx;
  283. }
  284. .top-content-img-box > image {
  285. width: 100%;
  286. height: 100%;
  287. }
  288. .goods-msg-box {
  289. position: relative;
  290. margin-left: 200rpx;
  291. margin-bottom: 1em;
  292. margin-top: 0.3em;
  293. }
  294. .goods-names {
  295. line-height: 2em;
  296. color: #000;
  297. width: 85%;
  298. }
  299. .group-tips {
  300. font-size: 20rpx;
  301. color: #e43130;
  302. padding: 0.3em 0;
  303. padding-top: 0;
  304. }
  305. .goods-prices {
  306. font-size: 30rpx;
  307. color: #e43130;
  308. margin-top: 5rpx;
  309. }
  310. .rmb-symbol {
  311. margin-right: 0.5em;
  312. }
  313. .close-btn {
  314. position: absolute;
  315. display: block;
  316. right: 20rpx;
  317. top: 10rpx;
  318. width: 35rpx;
  319. height: 35rpx;
  320. /* background: url('../../images/icon/close.png');
  321. background-size: 100% 100%; */
  322. z-index: 250;
  323. }
  324. .close-btn > image {
  325. width: 100%;
  326. height: 100%;
  327. }
  328. /* sku字体 */
  329. .sku-text {
  330. position: relative;
  331. padding: 1em;
  332. font-size: 25rpx;
  333. border-bottom: 1px solid #f2f2f2;
  334. }
  335. /* 数量选择 */
  336. .quantity {
  337. position: relative;
  338. padding: 1em;
  339. font-size: 25rpx;
  340. border-bottom: 1px solid #f2f2f2;
  341. }
  342. .left-text {
  343. line-height: 1.5em;
  344. }
  345. .left-text-bottom {
  346. font-size: 20rpx;
  347. color: #bbb;
  348. }
  349. /* choose-quantity */
  350. .right-choose {
  351. position: absolute;
  352. right: 1em;
  353. top: 1em;
  354. }
  355. .subtract, .show-num, .add {
  356. display: inline-block;
  357. background: #f5f5f5;
  358. color: #cfcfcf;
  359. padding: 7rpx 18rpx;
  360. }
  361. .show-num {
  362. margin: 0 3rpx;
  363. }
  364. .add {
  365. padding: 7rpx 12rpx;
  366. }
  367. .current-state {
  368. background: #ebebeb;
  369. color: #6d6d6e;
  370. }
  371. /* 确认按钮 */
  372. .confirm-btn {
  373. width: 100%;
  374. font-size: 27rpx;
  375. padding: 0.8em 0;
  376. color: #fff;
  377. background: #f44;
  378. text-align: center;
  379. margin-top: 0.5em;
  380. margin-bottom: 200rpx;
  381. }
  382. /** 规格弹窗**/
  383. .popup-hide {
  384. position: fixed;
  385. top: 0;
  386. bottom: 0;
  387. left: 0;
  388. right: 0;
  389. z-index: 999;
  390. background-color: rgba(0, 0, 0, 0.3);
  391. }
  392. .popup-box {
  393. position: absolute;
  394. bottom: 0;
  395. width: 100%;
  396. min-height: 375px;
  397. max-height: 475px;
  398. overflow: hidden;
  399. background-color: #fff;
  400. }
  401. .popup-tit {
  402. position: relative;
  403. height: 46px;
  404. line-height: 46px;
  405. padding-left: 10px;
  406. font-size: 16px;
  407. color: #333;
  408. background-color: #f7f7f7;
  409. }
  410. .close {
  411. color: #aaa;
  412. border-radius: 12px;
  413. line-height: 20px;
  414. text-align: center;
  415. height: 20px;
  416. width: 20px;
  417. font-size: 18px;
  418. padding: 1px;
  419. top: 10px;
  420. right: 10px;
  421. position: absolute;
  422. }
  423. .close::before {
  424. content: "\2716";
  425. }
  426. .popup-cnt {
  427. max-height: 429px;
  428. overflow: auto;
  429. padding: 0 10px;
  430. }
  431. .pup-sku {
  432. position: fixed;
  433. top: 0;
  434. bottom: 0;
  435. left: 0;
  436. right: 0;
  437. z-index: 999;
  438. background-color: rgba(0, 0, 0, 0.3);
  439. }
  440. .pup-sku-main {
  441. position: absolute;
  442. bottom: 0;
  443. width: 100%;
  444. min-height: 375px;
  445. max-height: 475px;
  446. background-color: #fff;
  447. }
  448. .pup-sku-header {
  449. position: relative;
  450. line-height: 46px;
  451. padding-left: 10px;
  452. font-size: 16px;
  453. color: #333;
  454. height: 70px;
  455. padding: 0 0 10px 110px;
  456. background-color: #fff;
  457. }
  458. .pup-sku-img {
  459. position: absolute;
  460. left: 10px;
  461. top: -20px;
  462. border-radius: 2px;
  463. width: 90px;
  464. height: 90px;
  465. border: 0 none;
  466. vertical-align: top;
  467. }
  468. .pup-sku-price {
  469. display: inline-block;
  470. height: 40px;
  471. line-height: 40px;
  472. color: #e4393c;
  473. font-size: 30rpx;
  474. }
  475. .pup-sku-price-int {
  476. font-size: 34rpx;
  477. }
  478. .pup-sku-prop {
  479. word-break: break-all;
  480. font-size: 28rpx;
  481. color: #333;
  482. line-height: 1.4em;
  483. padding-right: 10px;
  484. overflow: hidden;
  485. text-overflow: ellipsis;
  486. display: -webkit-box;
  487. -webkit-line-clamp: 2;
  488. -webkit-box-orient: vertical;
  489. }
  490. .pup-sku-prop text {
  491. color: #999;
  492. margin-right: 5px;
  493. }
  494. .pup-sku-body {
  495. box-sizing: border-box;
  496. max-height: 379px;
  497. padding-bottom: 100px;
  498. overflow: auto;
  499. }
  500. .pup-sku-area .sku-kind {
  501. font-size: 28rpx;
  502. color: #999;
  503. margin: 0 10px;
  504. height: 40px;
  505. line-height: 40px;
  506. }
  507. .pup-sku-area .sku-choose {
  508. overflow: hidden;
  509. margin-bottom: 3px;
  510. }
  511. .sku-choose-item {
  512. display: inline-block;
  513. padding: 0 10px;
  514. min-width: 20px;
  515. max-width: 270px;
  516. overflow: hidden;
  517. height: 28px;
  518. line-height: 28px;
  519. text-align: center;
  520. margin-left: 10px;
  521. margin-bottom: 10px;
  522. border-radius: 4px;
  523. color: #444;
  524. background-color: #f7f7f7;
  525. font-size: 26rpx;
  526. border:1px solid #aaa;
  527. }
  528. .sku-choose-item.active {
  529. background-color: #e43130;
  530. color: #fff;
  531. border:1px solid #e43130 !important;
  532. }
  533. .sku-choose-item.gray {
  534. background-color: #f9f9f9;
  535. color: #ddd;
  536. }
  537. .sku-choose-item.dashed {
  538. border:1px dashed #ccc;
  539. }
  540. .pup-sku-count {
  541. padding: 0 10px 13px;
  542. font-size: 28rpx;
  543. }
  544. .pup-sku-count .count-name {
  545. color: #999;
  546. height: 31px;
  547. line-height: 31px;
  548. width: 100rpx;
  549. }
  550. .pup-sku-count .num-wrap {
  551. position: relative;
  552. z-index: 0;
  553. width: 110px;
  554. float: right;
  555. vertical-align: middle;
  556. display: flex;
  557. }
  558. .num-wrap .minus, .num-wrap .plus {
  559. position: relative;
  560. max-width: 30px;
  561. min-width: 30px;
  562. height: 30px;
  563. line-height: 30px;
  564. background: #f7f7f7;
  565. text-align: center;
  566. }
  567. .num-wrap .minus {
  568. border-top-left-radius: 3px;
  569. border-bottom-left-radius: 3px;
  570. }
  571. .num-wrap .plus {
  572. border-top-right-radius: 3px;
  573. border-bottom-right-radius: 3px;
  574. }
  575. .num-wrap .row {
  576. border-radius: 20px;
  577. position: absolute;
  578. top: 50%;
  579. left: 50%;
  580. margin-left: -7px;
  581. margin-top: -1px;
  582. width: 14px;
  583. height: 2px;
  584. background-color: #ccc;
  585. }
  586. .num-wrap .col {
  587. border-radius: 20px;
  588. position: absolute;
  589. top: 50%;
  590. left: 50%;
  591. margin-left: -1px;
  592. margin-top: -7px;
  593. width: 2px;
  594. height: 14px;
  595. background-color: #999;
  596. }
  597. .pup-sku-count .text-wrap {
  598. position: relative;
  599. width: 45px;
  600. z-index: 0;
  601. margin: 0 1px;
  602. }
  603. .pup-sku-count .text-wrap input {
  604. height: 30px;
  605. width: 100%;
  606. color: #333;
  607. background: #fff;
  608. font-size: 12px;
  609. text-align: center;
  610. border: none;
  611. background: #f7f7f7;
  612. }
  613. .pup-sku-footer {
  614. position: fixed;
  615. bottom: 0;
  616. left: 0;
  617. width: 100%;
  618. display: flex;
  619. flex-direction: row nowrap;
  620. height: 98rpx;
  621. z-index: 999;
  622. box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  623. }
  624. .pup-sku-footer .btn {
  625. position: relative;
  626. display: flex;
  627. flex-grow: 1;
  628. justify-content: center;
  629. align-items: center;
  630. width: 0;
  631. background-color: #fff;
  632. font-size: 28rpx;
  633. flex-flow: column;
  634. }
  635. .pup-sku-footer .btn.cart {
  636. background: #584e61;
  637. color: #fff;
  638. }
  639. .pup-sku-footer .btn.buy {
  640. background: #e43130;
  641. color: #fff;
  642. }
  643. .pup-sku-footer .btn.buy.gray {
  644. background: #ddd;
  645. }