discover.wxss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  1. /* pages/discover/discover.wxss */
  2. page {
  3. /* background: #000; */
  4. }
  5. .tabs {
  6. position: fixed;
  7. top: 0;
  8. padding: 13px 0;
  9. left: 50%;
  10. transform: translateX(-50%);
  11. z-index: 2;
  12. }
  13. .tabs .item {
  14. height: 62rpx;
  15. display: inline-block;
  16. font-weight: bold;
  17. line-height: 48rpx;
  18. color: #FFFFFF;
  19. text-shadow: 1px 0px 2px rgba(0, 0, 0, 0.16);
  20. opacity: 0.5;
  21. font-size: 34rpx;
  22. position: relative;
  23. }
  24. .tabs .item:first-child {
  25. margin-right: 60rpx;
  26. }
  27. .tabs .item.active {
  28. opacity: 1;
  29. }
  30. .tabs .zw {
  31. z-index: 999;
  32. position: absolute;
  33. width: 80%;
  34. left: 50%;
  35. transform: translateX(-50%);
  36. bottom: 3px;
  37. height: 2px;
  38. border-radius: 2px;
  39. background: #fff;
  40. display: none;
  41. }
  42. .tabs .item.active .zw {
  43. display: block;
  44. }
  45. .live-tabs {
  46. background-color: #fff;
  47. left: 0;
  48. width: 100%;
  49. transform: none;
  50. text-align: center;
  51. }
  52. .live-tabs .item {
  53. color: #131D34;
  54. opacity: 1;
  55. }
  56. .live-tabs .item.active {
  57. color: #ED5D18;
  58. }
  59. .live-tabs .item.active .zw {
  60. background-color: #ED5D18;
  61. }
  62. .live {
  63. position: fixed;
  64. z-index: 1;
  65. left: 0;
  66. top: 0;
  67. width: 100vw;
  68. height: 100vh;
  69. box-sizing: border-box;
  70. background: rgb(247,247,247);
  71. overflow-y: scroll;
  72. }
  73. .live .item:first-child {
  74. margin-top: 128rpx;
  75. }
  76. .live .item {
  77. height: 160px;
  78. border-radius: 12px;
  79. background-color: #fff;
  80. display: flex;
  81. margin: 0 30rpx 30rpx;
  82. }
  83. .live .cover {
  84. flex: 0 0 auto;
  85. height: 100%;
  86. width: 160px;
  87. position: relative;
  88. }
  89. .live .cover .img {
  90. width: 100%;
  91. height: 100%;
  92. }
  93. .live .cover .count {
  94. position: absolute;
  95. left: 20rpx;
  96. top: 20rpx;
  97. height: 28rpx;
  98. border-radius: 14rpx;
  99. background: rgba(0, 0, 0, 0.3);
  100. display: flex;
  101. align-items: center;
  102. }
  103. .live .cover .count .icon {
  104. width: 28rpx;
  105. height: 28rpx;
  106. }
  107. .live .cover .count .text {
  108. color: #fff;
  109. padding: 0 16rpx 0 4rpx;
  110. font-size: 18rpx;
  111. }
  112. .live .info {
  113. padding: 22rpx 30rpx;
  114. display: flex;
  115. flex-direction: column;
  116. justify-content: space-between;
  117. }
  118. .info .title {
  119. font-size: 30rpx;
  120. font-weight: bold;
  121. font-family: PingFang SC;
  122. line-height: 42rpx;
  123. color: #131D34;
  124. white-space: normal
  125. }
  126. .info .brandName {
  127. font-size: 22rpx;
  128. font-weight: 400;
  129. font-family: PingFang SC;
  130. line-height: 32rpx;
  131. color: #999999;
  132. white-space: normal;
  133. justify-self: self-start;
  134. margin: 8rpx 0;
  135. flex: 1;
  136. display: flex;
  137. align-items: center;
  138. }
  139. .info .brandName cover-image {
  140. width: 20rpx;
  141. height: 20rpx;
  142. margin-right: 6rpx;
  143. vertical-align: baseline;
  144. }
  145. .goods {
  146. display: flex;
  147. justify-content: space-between;
  148. }
  149. .good {
  150. width: 140rpx;
  151. height: 140rpx;
  152. border-radius: 4px;
  153. position: relative;
  154. }
  155. .good-cover {
  156. width: 100%;
  157. height: 100%;
  158. }
  159. .money {
  160. position: absolute;
  161. height: 32rpx;
  162. background: rgba(0, 0, 0, 0.3);
  163. text-align: center;
  164. line-height: 32rpx;
  165. font-size: 22rpx;
  166. color: #fff;
  167. bottom: 0;
  168. left: 0;
  169. width: 100%;
  170. }
  171. .bgd {
  172. position: fixed;
  173. left: 0;
  174. right: 0;
  175. top: 0;
  176. bottom: 0;
  177. z-index: 0;
  178. }
  179. .mo {
  180. position: fixed;
  181. left: 0;
  182. top: 0;
  183. width: 100%;
  184. height: 100%;
  185. background-color: rgba(0,0,0,0.6);
  186. z-index: 5;
  187. }
  188. .dialog {
  189. position: fixed;
  190. left: 10%;
  191. right: 10%;
  192. background-color: rgba(0,0,0,1);
  193. opacity: .9;
  194. color: #fff;
  195. z-index: 9999;
  196. border-radius: 5px;
  197. padding: 70rpx;
  198. }
  199. .concat-view {
  200. top: 20%;
  201. }
  202. .concat-view .icon {
  203. position: absolute;
  204. right: 6rpx;
  205. top: 6rpx;
  206. width: 27rpx;
  207. height: 27rpx;
  208. padding: 30rpx;
  209. }
  210. .concat-view .title {
  211. font-size: 36rpx;
  212. font-weight: bold;
  213. margin-bottom: 40rpx;
  214. }
  215. .concat-view .item:nth-last-child(1) {
  216. margin-top: 34rpx;
  217. }
  218. .concat-view .item .desc {
  219. line-height: 40rpx;
  220. text-align: center;
  221. font-size: 24rpx;
  222. }
  223. .invitation-view {
  224. top: 50%;
  225. transform: translateY(-50%);
  226. color:rgba(255,255,255,0.88);
  227. }
  228. .invitation-view .title {
  229. font-size: 36rpx;
  230. font-weight: bold;
  231. margin-bottom: 40rpx;
  232. }
  233. .invitation-view .content {
  234. font-size: 30rpx;
  235. line-height: 36rpx;
  236. margin-bottom: 40rpx;
  237. white-space:pre-wrap;
  238. }
  239. .invitation-view .btns {
  240. text-align: center;
  241. }
  242. .btn {
  243. width: 100%;
  244. background-color: #fff;
  245. border-radius: 4px;
  246. height: 90rpx;
  247. line-height: 90rpx;
  248. font-size: 36rpx;
  249. color: #131D34;
  250. text-align: center;
  251. padding: 0;
  252. }
  253. .bottom-dialog {
  254. position: fixed;
  255. top: 23%;
  256. bottom: -20px;
  257. padding-bottom: 20px;
  258. left: 0;
  259. right: 0;
  260. z-index: 99;
  261. background-color: #fff;
  262. border-radius: 14px 14px 0 0 !important;
  263. display: flex;
  264. flex-direction: column;
  265. }
  266. .bottom-dialog .title {
  267. flex: 0 0 auto;
  268. padding: 36rpx 32rpx;
  269. border-bottom: 1px solid rgb(236,236,236);
  270. position: relative;
  271. }
  272. .bottom-dialog .title .text {
  273. font-size: 32rpx;
  274. color: #131D34;
  275. font-weight: bold;
  276. }
  277. .bottom-dialog .icon {
  278. position: absolute;
  279. top: 50%;
  280. transform: translateY(-50%);
  281. width: 27rpx;
  282. height: 27rpx;
  283. padding: 32rpx;
  284. right: 0;
  285. }
  286. .commodity-view {
  287. /* position: fixed;
  288. top: 23%;
  289. bottom: 0;
  290. left: 0;
  291. right: 0;
  292. z-index: 99;
  293. background-color: #fff;
  294. border-radius: 14px 14px 0 0; */
  295. display: flex;
  296. flex-direction: column;
  297. }
  298. .commodity-view .content {
  299. margin-top: 10rpx;
  300. flex: 1;
  301. padding: 0 32rpx;
  302. position: relative;
  303. /* display: flex;
  304. flex-direction: column; */
  305. }
  306. .commodity-view .scene-icon {
  307. position: absolute;
  308. left: 2rpx;
  309. bottom: 2rpx;
  310. width: 40rpx;
  311. height: 40rpx;
  312. z-index: 3;
  313. }
  314. .commodity-view .c-tabs {
  315. flex: 0 0 auto;
  316. height: 76rpx;
  317. width: 100%;
  318. overflow-x: scroll;
  319. padding-bottom: 4px;
  320. position: relative;
  321. }
  322. .commodity-view .c-tabs .text {
  323. float: left;
  324. height: 76rpx;
  325. line-height: 76rpx;
  326. color: #131D34;
  327. font-size: 16px;
  328. margin-right: 10px;
  329. text-align: center;
  330. }
  331. .commodity-view .c-tabs .text.active {
  332. color: #ED5D18;
  333. font-size: 16px;
  334. position: relative;
  335. }
  336. .commodity-view .c-tabs .text.active cover-view {
  337. position: absolute;
  338. bottom: 0;
  339. left: 0;
  340. right: 0;
  341. height: 4rpx;
  342. background-color: #ED5D18;
  343. margin: 0 20rpx;
  344. }
  345. .commodity-view .current-tab {
  346. flex: 0 0 auto;
  347. height: 60rpx;
  348. margin-left: -32rpx;
  349. width: calc(100% + 64rpx);
  350. background-color: #F8F8F8;
  351. padding: 0 32rpx;
  352. line-height: 60rpx;
  353. font-size: 26rpx;
  354. color: #999999;
  355. }
  356. .commoditys {
  357. position: absolute;
  358. left: 32rpx;
  359. right: 32rpx;
  360. top: 76rpx;
  361. bottom: 0;
  362. height: calc(100% - 100rpx);
  363. overflow-y: scroll;
  364. }
  365. .commodity-item {
  366. margin-top: 34rpx;
  367. display: flex;
  368. align-items: center;
  369. position: relative;
  370. }
  371. .commodity-view .cover {
  372. flex: 0 0 auto;
  373. width: 180rpx;
  374. height: 180rpx;
  375. }
  376. .commodity-view .item-content {
  377. flex: 1;
  378. margin-left: 28rpx;
  379. }
  380. .commodity-view .item-content .desc {
  381. font-size: 14px;
  382. color: #131D34;
  383. line-height: 40rpx;
  384. white-space:pre-wrap;
  385. }
  386. .commodity-view .item-info {
  387. margin-top: 32rpx;
  388. display: flex;
  389. align-items: center;
  390. justify-content: space-between;
  391. height: 54rpx;
  392. }
  393. .commodity-view .item-info > .c-money {
  394. flex: 0 0 auto;
  395. }
  396. .commodity-view .item-info > .oper {
  397. flex: 1;
  398. text-align: right;
  399. position: relative;
  400. }
  401. .oper .lack {
  402. position: absolute;
  403. left: 50%;
  404. top: 50%;
  405. transform: translate(-50%, -50%);
  406. width: 200rpx;
  407. height: 200rpx;
  408. }
  409. .commodity-view .c-money .text {
  410. display: inline;
  411. color: #ED5D18;
  412. }
  413. .commodity-view .c-money .text:nth-child(1), .c-money .text:nth-child(3) {
  414. font-size: 24rpx;
  415. margin-right: 10rpx;
  416. vertical-align: baseline;
  417. }
  418. .commodity-view .c-money .text:nth-child(2) {
  419. font-size: 36rpx;
  420. vertical-align: baseline;
  421. }
  422. .oper-btn {
  423. display: inline-block;
  424. border-radius: 4px;
  425. height: 52rpx;
  426. line-height: 52rpx;
  427. padding: 0 16rpx !important;
  428. color: #fff;
  429. font-size: 24rpx;
  430. }
  431. .commodity-view .oper {
  432. height: 54rpx;
  433. display: flex;
  434. }
  435. .commodity-view .oper-btn:nth-child(1) {
  436. background-color: #FFCD3C;
  437. margin-right: 10rpx;
  438. }
  439. .commodity-view .oper-btn:nth-child(2) {
  440. background-color: #ED5D18;
  441. }
  442. .coupon-view .layer {
  443. flex: 1;
  444. overflow-y: scroll;
  445. }
  446. .coupon-view .content {
  447. padding: 0 34rpx;
  448. }
  449. .coupon-item {
  450. height: 185rpx;
  451. padding-right:30rpx;
  452. background:#EF9B3A;
  453. border-radius:4px;
  454. margin-top: 34rpx;
  455. display: flex;
  456. position: relative;
  457. align-items: center;
  458. }
  459. .coupon-item .item-before,
  460. .coupon-item .item-after {
  461. position: absolute;
  462. border-radius: 50%;
  463. background-color: rgba(255,255,255,0.16);
  464. z-index: 1;
  465. }
  466. .coupon-item .item-before {
  467. width: 88rpx;
  468. height: 106rpx;
  469. left: 0;
  470. top: 0;
  471. transform: translate(-50%, -50%);
  472. }
  473. .coupon-item .item-after {
  474. width: 140rpx;
  475. height: 186rpx;
  476. right: 0;
  477. bottom: 0;
  478. transform: translate(40%, 50%);
  479. }
  480. .coupon-item .info-before,
  481. .coupon-item .info-after {
  482. position: absolute;
  483. background-color: #fff;
  484. z-index: 99;
  485. width: 40rpx;
  486. height: 40rpx;
  487. border-radius: 50%;
  488. right: 196rpx;
  489. transform: translateX(50%);
  490. }
  491. .coupon-item .info-before {
  492. top: 0;
  493. margin-top: -20rpx;
  494. }
  495. .coupon-item .info-after {
  496. bottom: 0;
  497. margin-bottom: -20rpx;
  498. }
  499. .coupon-item .o-money {
  500. flex: 0 0 auto;
  501. width: 230rpx;
  502. font-size: 138rpx;
  503. color: #fff;
  504. font-weight: bold;
  505. position: relative;
  506. /* height: 130rpx;
  507. line-height: 138rpx; */
  508. text-align: center;
  509. box-sizing: border-box;
  510. display: flex;
  511. align-items: center;
  512. justify-content: center;
  513. overflow: auto;
  514. height: 138rpx;
  515. }
  516. .poa {
  517. width: 100%;
  518. text-align: center;
  519. font-size: 26rpx;
  520. }
  521. .coupon-item .used {
  522. position: absolute;
  523. z-index: 99;
  524. background-color: rgba(255,255,255,0.6);
  525. left: 0;
  526. right: 0;
  527. top: 0;
  528. bottom: 0;
  529. }
  530. .coupon-item .money-before {
  531. display: inline;
  532. font-size: 26rpx;
  533. /* width: 40rpx;
  534. height: 40rpx;
  535. text-align: center;
  536. line-height: 40rpx;
  537. border: 1px solid #EF9B3A;
  538. color:#EF9B3A;
  539. border-radius: 50%;
  540. position: absolute;
  541. bottom: 0;
  542. right: 0rpx;
  543. font-size: 26rpx;
  544. background-color: #fff; */
  545. }
  546. .coupon-item .info {
  547. flex: 1;
  548. display: flex;
  549. flex-direction: column;
  550. padding: 25rpx 10rpx 10rpx;
  551. height: 92rpx;
  552. }
  553. .coupon-item .info .full {
  554. font-size: 30rpx;
  555. color: #fff;
  556. width: 100%;
  557. height: 52rpx;
  558. margin: 0;
  559. line-height: 32rpx;
  560. white-space: nowrap;
  561. text-overflow: ellipsis;
  562. }
  563. .coupon-item .info button {
  564. width: 168rpx;
  565. color: #EF533A;
  566. text-align: center;
  567. height: 38rpx;
  568. line-height: 32rpx;
  569. border-radius: 19rpx;
  570. font-size: 22rpx;
  571. margin: 10rpx 0;
  572. }
  573. .coupon-item .info .date {
  574. height: 28rpx;
  575. font-size: 16rpx;
  576. color: #fff;
  577. margin: 0;
  578. line-height: 22rpx;
  579. width: 100%;
  580. }
  581. .coupon-item .oper {
  582. flex: 0 0 auto;
  583. font-size: 34rpx;
  584. color: #fff;
  585. width: 166rpx;
  586. text-align: right;
  587. display: flex;
  588. align-items: center;
  589. justify-content: center;
  590. height: 100%;
  591. position: relative;
  592. }
  593. .coupon-item .oper .dotted {
  594. position: absolute;
  595. width: 1px;
  596. left: 0;
  597. top: 20%;
  598. height: 60%;
  599. z-index: 9999999;
  600. }
  601. .coupon-item .oper cover-view {
  602. z-index: 2;
  603. }
  604. .commodity-ctrl {
  605. position: fixed;
  606. bottom: 218rpx;
  607. right: 40rpx;
  608. width: 140rpx;
  609. height: 140rpx;
  610. border-radius: 50%;
  611. /* background:rgba(237,93,24,1);
  612. box-shadow:0px 1px 6px rgba(0,0,0,0.16); */
  613. display: flex;
  614. flex-direction: column;
  615. align-items: center;
  616. justify-content: center;
  617. }
  618. .commodity-ctrl .bg {
  619. width: 130rpx;
  620. height: 130rpx;
  621. position: absolute;
  622. left: 50%;
  623. top: 50%;
  624. z-index: -1;
  625. transform: translate(-50%, -50%);
  626. }
  627. .commodity-ctrl .ig {
  628. width: 18px;
  629. height: 18px;
  630. }
  631. .commodity-ctrl cover-view {
  632. font-size: 20rpx;
  633. color: rgba(255,255,255,0.88);
  634. line-height: 26rpx;
  635. width: 100%;
  636. text-align: center;
  637. }
  638. .cancel {
  639. line-height: 86rpx;
  640. margin-top: 20rpx;
  641. background-color: rgba(0,0,0,0);
  642. color: #fff;
  643. border: 1px solid #fff;
  644. width: 100%;
  645. box-sizing: border-box;
  646. }
  647. .un-content {
  648. width: 100%;
  649. height: 100%;
  650. text-align: center;
  651. }
  652. .lay {
  653. margin-top: 180rpx;
  654. }
  655. .un-content cover-image {
  656. display: inline-block;
  657. width: 250rpx;
  658. height: 274rpx;
  659. }
  660. .un-content .text {
  661. color: #666C7D;
  662. font-size: 30rpx;
  663. margin-top: 40rpx;
  664. }
  665. .state {
  666. position: absolute;
  667. left: 0;
  668. top: 0;
  669. width: 100%;
  670. height: 100%;
  671. display: flex;
  672. align-items: center;
  673. justify-content: center;
  674. }
  675. .state cover-image {
  676. width: 88rpx;
  677. height: 88rpx;
  678. }
  679. .commodity-view .zz {
  680. position: absolute;
  681. left: 0;
  682. top: 0;
  683. width: 100%;
  684. height: 100%;
  685. background: rgba(0, 0, 0, 0.6);
  686. z-index: 999;
  687. }
  688. .commodity-view .dialog-layer {
  689. position: absolute;
  690. left: 0;
  691. top: 0;
  692. width: 100%;
  693. padding: 0 32rpx 10rpx;
  694. box-sizing: border-box;
  695. background-color: #fff;
  696. z-index: 9999;
  697. }
  698. .commodity-view .dialog-layer .tabctrl {
  699. right: 32rpx;
  700. }
  701. .commodity-view .dialog-layer .dialog-tabs {
  702. padding-right: 86rpx;
  703. overflow: hidden;
  704. }
  705. .commodity-view .dialog-layer .dialog-tabs .text {
  706. float: left;
  707. width: calc(33% - 10rpx);
  708. text-align: center;
  709. padding: 14rpx 0;
  710. font-size: 24rpx;
  711. color: #131D34;
  712. border: 1px solid rgba(0, 0, 0, 0.1);
  713. border-radius: 4px;
  714. margin: 10rpx 0;
  715. overflow: hidden;
  716. text-overflow: ellipsis;
  717. white-space: nowrap;
  718. }
  719. .commodity-view .dialog-layer .dialog-tabs .text.active {
  720. background-color: rgba(237, 93, 24, 1);
  721. border-color: rgba(237, 93, 24, 1);
  722. color: #fff;
  723. }
  724. .commodity-view .dialog-layer .dialog-tabs .text:nth-child(3n-1) {
  725. margin: 10rpx;
  726. }
  727. .commodity-view .tabctrl {
  728. position: absolute;
  729. right: 0;
  730. top: 0;
  731. height: 76rpx;
  732. width: 76rpx;
  733. color: #000;
  734. }