discover.wxss 13 KB

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