app.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. /**app.wxss**/
  2. page {
  3. font-family: PingFangSC-Regular;
  4. font-size: 32rpx;
  5. color: #333;
  6. background: #F5F5F5;
  7. }
  8. view {
  9. word-break: break-all;
  10. }
  11. image,
  12. text {
  13. display: inline-block;
  14. vertical-align: middle;
  15. }
  16. button,
  17. button::after {
  18. border: none;
  19. border-radius: 0;
  20. padding: 0;
  21. margin: 0;
  22. }
  23. .pb {
  24. padding-bottom: 98rpx;
  25. }
  26. .container {
  27. position: relative;
  28. }
  29. .wrapper {
  30. position: absolute;
  31. top: 0;
  32. left: 0;
  33. width: 100%;
  34. }
  35. .list {
  36. padding: 10rpx 40rpx;
  37. }
  38. .li {
  39. margin: 20rpx auto;
  40. background: #fff;
  41. border-radius: 18rpx;
  42. padding: 30rpx;
  43. }
  44. .li-label {
  45. font-size: 28rpx;
  46. color: #666;
  47. margin: 40rpx auto 20rpx auto;
  48. }
  49. /* 搜索框统一样式 ===== start ===== */
  50. .search-container {
  51. width: 100%;
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. }
  56. .search-wrapper {
  57. flex: 1;
  58. display: flex;
  59. justify-content: flex-start;
  60. align-items: center;
  61. padding: 16rpx 30rpx;
  62. margin-right: 30rpx;
  63. background:rgba(255,255,255,1);
  64. box-shadow:0px 4rpx 10rpx 0px rgba(11,71,94,0.2);
  65. border-radius:86rpx;
  66. }
  67. .search-icon {
  68. width: 30rpx;
  69. height: 30rpx;
  70. }
  71. .search-input {
  72. flex: 1;
  73. color: #666;
  74. font-size: 26rpx;
  75. margin: 0 20rpx;
  76. }
  77. .search-placeholder {
  78. color: #999;
  79. font-size: 26rpx;
  80. }
  81. .search-button {
  82. background:linear-gradient(90deg,rgba(81,206,255,1) 0%,rgba(0,183,255,1) 100%);
  83. box-shadow:0px 4rpx 10rpx 0rpx rgba(11,71,94,0.2);
  84. padding: 20rpx 39rpx;
  85. font-size: 28rpx;
  86. color: #fff;
  87. cursor: pointer;
  88. border-radius:86rpx;
  89. }
  90. .search-button-active {
  91. background: linear-gradient(90deg,rgba(81,206,255,1) 0%,rgba(0,183,255,1) 100%);
  92. }
  93. /* 搜索框统一样式 ===== end ===== */
  94. /* 弹框统一样式 ===== start ===== */
  95. .showModel{
  96. width: 100%;
  97. height: 100%;
  98. position: fixed;
  99. top: 0;
  100. left: 0;
  101. background: #000;
  102. opacity: 0.5;
  103. overflow: hidden;
  104. z-index: 1000;
  105. color: #fff;
  106. }
  107. .model{
  108. z-index: 1001;
  109. position: fixed;
  110. top: 30%;
  111. margin: 0 60rpx;
  112. background: #fff;
  113. border-radius:30rpx;
  114. text-align: center;
  115. }
  116. .screen-footer{
  117. padding: 40rpx
  118. }
  119. /* 弹框统一样式 ===== end ===== */
  120. /* 导航头部统一样式 ===== start ===== */
  121. .nav {
  122. display: flex;
  123. justify-content: center;
  124. align-items: center;
  125. background: #fff;
  126. }
  127. .nav-item {
  128. flex: 1;
  129. text-align: center;
  130. position: relative;
  131. }
  132. .nav-item-row {
  133. display: inline-flex;
  134. justify-content: center;
  135. align-items: center;
  136. padding: 25rpx 0;
  137. transition: all .3s;
  138. border-bottom: solid 6rpx transparent;
  139. }
  140. .nav-item-row-active {
  141. border-bottom: solid 6rpx #00B7FF;
  142. }
  143. .nav-item::after {
  144. content: "";
  145. position: absolute;
  146. right: 0;
  147. top: 24rpx;
  148. width: 2rpx;
  149. height: 46rpx;
  150. background: #e6e6e6;
  151. }
  152. .nav-item:nth-last-of-type(1):after {
  153. content: "";
  154. position: absolute;
  155. right: 0;
  156. top: 0;
  157. width: 0;
  158. height: 0;
  159. }
  160. .nav-item-text {
  161. font-size: 30rpx;
  162. color: #6C6C80;
  163. }
  164. .nav-item-text-active {
  165. color: #41414C;
  166. }
  167. .nav-item-button {
  168. font-size: 24rpx;
  169. color: #6C6C80;
  170. border-radius: 4rpx;
  171. padding: 0 14rpx;
  172. margin-left: 10rpx;
  173. border: 1rpx solid #6C6C80;
  174. }
  175. .nav-item-button-active {
  176. color: #41414C;
  177. border: 1rpx solid #41414C;
  178. }
  179. /* 导航头部统一样式 ===== end ===== */
  180. /* 底部按钮统一样式 ===== start ===== */
  181. .footer-box {
  182. position: fixed;
  183. bottom: 0;
  184. left: 0;
  185. width: 100%;
  186. padding: 20rpx 0;
  187. background: linear-gradient(90deg,rgba(81,206,255,1),rgba(0,183,255,1));
  188. opacity: 0.9;
  189. cursor: pointer;
  190. display: flex;
  191. justify-content: center;
  192. align-items: center;
  193. z-index: 99;
  194. }
  195. .footer-box-gray {
  196. background: #ccc;
  197. color: #999;
  198. }
  199. .footer-box-item {
  200. flex: 1;
  201. padding: 4rpx 0;
  202. text-align: center;
  203. font-size: 30rpx;
  204. color: #fff;
  205. border-right: solid 1rpx #fff;
  206. cursor: pointer;
  207. }
  208. .footer-box-item:nth-last-of-type(1) {
  209. border-right: none;
  210. }
  211. /* 底部按钮统一样式 ===== end ===== */
  212. /* 图书介绍统一样式 ===== start ===== */
  213. .book-container {
  214. width: 100%;
  215. }
  216. .book-wrapper {
  217. display: flex;
  218. justify-content: space-between;
  219. align-items: flex-start;
  220. }
  221. .book-content {
  222. flex: 1;
  223. }
  224. .book-images {
  225. width: 200rpx;
  226. height: 230rpx;
  227. box-shadow: 0rpx 0rpx 8rpx 0px rgba(204,204,204,1);
  228. border-radius: 6rpx;
  229. margin-right: 24rpx;
  230. overflow: hidden;
  231. position: relative;
  232. /* top:-24rpx; */
  233. }
  234. .book-image {
  235. position: absolute;
  236. top: 0;
  237. left: 0;
  238. width: 100%;
  239. height: 100%;
  240. }
  241. .book-tip {
  242. position: absolute;
  243. top: 0;
  244. left: 0;
  245. background: rgba(255,84,43,1);
  246. border-radius: 6rpx 0rpx 6rpx 0rpx;
  247. opacity: 0.8;
  248. font-size: 28rpx;
  249. color: #fff;
  250. padding: 14rpx 15rpx;
  251. }
  252. .book-tip-two {
  253. position: absolute;
  254. bottom: 0;
  255. left: 0;
  256. width: 100%;
  257. background:rgba(255,128,168,1);
  258. border-radius: 6rpx 0rpx 6rpx 0rpx;
  259. opacity: 0.8;
  260. font-size: 28rpx;
  261. color: #fff;
  262. padding: 14rpx 15rpx;
  263. text-align: center;
  264. }
  265. .book-title,
  266. .book-text,
  267. .book-content {
  268. display: -webkit-box;
  269. -webkit-box-orient: vertical;
  270. -webkit-line-clamp: 2;
  271. overflow: hidden;
  272. }
  273. .book-text,
  274. .book-context {
  275. font-size: 28rpx;
  276. color: #666;
  277. /* margin-top: 16rpx; */
  278. }
  279. .book-title {
  280. font-size: 32rpx;
  281. color: #333;
  282. }
  283. .book-text {
  284. -webkit-line-clamp: 1;
  285. }
  286. .book-footer {
  287. margin-top: 30rpx;
  288. display: flex;
  289. justify-content: space-between;
  290. align-items: center;
  291. }
  292. .book-footer-two {
  293. margin-top: 30rpx;
  294. display: flex;
  295. flex-direction: column;
  296. justify-content: center;
  297. align-items: center;
  298. }
  299. .book-footer-right {
  300. justify-content: flex-end;
  301. }
  302. .book-footer-item {
  303. position: relative;
  304. font-size: 28rpx;
  305. cursor: pointer;
  306. margin-left: 30rpx;
  307. }
  308. .book-footer-item-two {
  309. position: relative;
  310. font-size: 28rpx;
  311. cursor: pointer;
  312. margin-top: 30rpx;
  313. }
  314. .book-footer-item:nth-of-type(1) {
  315. margin-left: 0;
  316. }
  317. .book-footer-item-two:nth-of-type(1) {
  318. margin-top: 0;
  319. }
  320. .book-icon {
  321. width: 30rpx;
  322. height: 30rpx;
  323. margin-right: 14rpx;
  324. }
  325. .book-icon-two {
  326. width: 28rpx;
  327. height: 34rpx;
  328. margin-right: 14rpx;
  329. }
  330. .book-text-large {
  331. font-size: 32rpx;
  332. }
  333. .book-text-blue {
  334. color: #00B7FF;
  335. }
  336. .book-text-gray {
  337. color: #999;
  338. }
  339. .book-text-red {
  340. color: #FF80A8;
  341. }
  342. .book-text-yellow {
  343. color: #FF542B;
  344. }
  345. .book-button-yellow {
  346. background: rgba(255,255,255,1);
  347. border-radius: 200rpx;
  348. border: 1rpx solid rgba(255,84,43,1);
  349. color: rgba(255,84,43,1);
  350. padding: 12rpx 24rpx;
  351. min-width: 98rpx;
  352. text-align: center;
  353. }
  354. .book-button-blue {
  355. background: rgba(255,255,255,1);
  356. border-radius: 200rpx;
  357. border: 1rpx solid rgba(0,183,255,1);
  358. color: rgba(0,183,255,1);
  359. padding: 12rpx 24rpx;
  360. min-width: 98rpx;
  361. text-align: center;
  362. }
  363. .book-button-fill-blue {
  364. background: linear-gradient(90deg,rgba(81,206,255,1) 0%,rgba(0,183,255,1) 100%);
  365. border-radius: 200rpx;
  366. border: 1rpx solid transparent;
  367. color: rgba(255,255,255,1);
  368. padding: 12rpx 24rpx;
  369. min-width: 98rpx;
  370. text-align: center;
  371. }
  372. .book-modal {
  373. position: absolute;
  374. top: 200%;
  375. right: -30rpx;
  376. width: 400rpx;
  377. padding: 30rpx;
  378. background: rgba(0,0,0,1);
  379. border-radius: 16rpx;
  380. opacity: 0.5;
  381. font-size: 30rpx;
  382. color: #fff;
  383. line-height: 42rpx;
  384. z-index: 9;
  385. }
  386. .book-modal::after {
  387. content: "";
  388. position: absolute;
  389. top: -18rpx;
  390. right: 15%;
  391. border-left: solid 16rpx transparent;
  392. border-right: solid 16rpx transparent;
  393. border-bottom: solid 20rpx rgba(0,0,0,1);
  394. }
  395. @keyframes snake {
  396. 0%, 20%, 40%, 60%, 80% {
  397. transform: translate(0, 0);
  398. opacity: 0.5;
  399. }
  400. 5%, 15%, 25%, 35%, 45%, 55%, 65%, 75% {
  401. transform: translate(0, -10rpx);
  402. opacity: 0.4;
  403. }
  404. 10%, 30%, 50%, 70% {
  405. transform: translate(0, 10rpx);
  406. opacity: 0.6;
  407. }
  408. 90% {
  409. opacity: 0;
  410. z-index: 9;
  411. }
  412. 100% {
  413. z-index: -9;
  414. opacity: 0;
  415. }
  416. }
  417. @keyframes snake-slow {
  418. 0%, 100% {
  419. transform: translate(0%, 0);
  420. }
  421. 25%, 75% {
  422. transform: translate(0%, -10rpx);
  423. }
  424. 50% {
  425. transform: translate(0%, 10rpx);
  426. }
  427. }
  428. .book-nav{
  429. display: flex;
  430. justify-content: space-between
  431. }
  432. .canvas {
  433. position: absolute;
  434. top: 0;
  435. bottom: 0;
  436. left: 0;
  437. right: 0;
  438. display: flex;
  439. flex-direction: column;
  440. height: 617rpx;
  441. align-items: center;
  442. justify-content: space-between;
  443. box-sizing: border-box;
  444. }
  445. /* 图书介绍统一样式 ===== end ===== */
  446. /* 列表2.0统一样式 ===== end ===== */
  447. .ul{
  448. display: flex;
  449. justify-content: flex-start;
  450. align-items: center;
  451. background:rgba(255,255,255,1);
  452. border-radius:18rpx;
  453. margin-bottom: 50rpx;
  454. position: relative;
  455. }
  456. .ui-image{
  457. position: relative;
  458. top: -30rpx;
  459. }
  460. .li-img{
  461. width: 178rpx;
  462. height: 210rpx;
  463. box-shadow:0px 0px 8rpx 0px rgba(204,204,204,1);
  464. border-radius:6rpx;
  465. }
  466. .li-right{
  467. color: #333333;
  468. font-size: 34rpx;
  469. margin-left: 10rpx;
  470. padding: 20rpx;
  471. }
  472. .li-right-tips{
  473. margin: 20rpx 0;
  474. }
  475. .li-right-tips-items{
  476. height:40rpx;
  477. line-height: 40rpx;
  478. border-radius:8rpx;
  479. border:2rpx solid rgba(103,163,255,1);
  480. color: #67A3FF;
  481. font-size: 24rpx;
  482. padding:0 8rpx;
  483. display: inline-block;
  484. /* margin: 10rpx 0; */
  485. }
  486. .li-right-grade{
  487. width: 28rpx;
  488. height: 34rpx;
  489. margin-right: 10rpx;
  490. }
  491. .ul-num{
  492. position: absolute;
  493. bottom: 42rpx;
  494. right: 30rpx;
  495. }
  496. .ul-num-img{
  497. width: 50rpx;
  498. height: 50rpx;
  499. }
  500. .ul-num-text{
  501. color: #666666;
  502. font-size: 30rpx;
  503. margin: 0 20rpx;
  504. }
  505. /* 加载统一样式 ===== end ===== */
  506. .load{
  507. color: #999999;
  508. font-size: 26rpx;
  509. text-align: center;
  510. margin: 30rpx;
  511. }
  512. .load-img{
  513. width: 40rpx;
  514. height: 40rpx;
  515. animation: loading 3s linear infinite;
  516. }
  517. @keyframes loading {
  518. 0% {
  519. transform: rotate(0deg);
  520. }
  521. 100% {
  522. transform: rotate(360deg);
  523. }
  524. }
  525. .firstaddBooks{
  526. height:60rpx;
  527. text-align:center;
  528. line-height:60rpx;
  529. width:160rpx;
  530. background: linear-gradient(#51CEFF, #00B7FF);
  531. color:#ffff;
  532. border-radius:36rpx;
  533. font-size:14px;
  534. padding:5rpx 10rpx;
  535. margin: 0 auto;
  536. margin-top:100rpx;
  537. }
  538. /* 书籍列表迭代样式 */
  539. .list-items{
  540. margin: 0;
  541. padding: 0;
  542. }
  543. .list-items-title{
  544. color: #41414C;
  545. font-size: 36rpx;
  546. margin: 40rpx 0;
  547. font-weight: bold;
  548. }
  549. .list-item{
  550. display: flex;
  551. justify-content: flex-start;
  552. margin-bottom: 50rpx;
  553. }
  554. .list-item-img-items{
  555. width:210rpx;
  556. height:220rpx;
  557. border-radius:10rpx;
  558. }
  559. .list-item-content{
  560. color: #41414C;
  561. font-size: 32rpx;
  562. margin-left: 40rpx;
  563. text-align: left;
  564. font-weight:500;
  565. }
  566. .list-item-content-tips{
  567. color: #6C6C80;
  568. font-size: 26rpx;
  569. margin: 8rpx 0;
  570. }
  571. .list-item-content-title{
  572. font-weight: bold;
  573. }
  574. .list-item-content-label{
  575. font-size: 24rpx;
  576. font-weight:400;
  577. }
  578. .list-item-content-label-one{
  579. color: #20A3E0;
  580. background:rgba(226,243,251,1);
  581. border-radius:20px;
  582. text-align: center;
  583. padding: 5rpx 15rpx;
  584. display: inline-block;
  585. margin-right: 15rpx;
  586. }
  587. .list-item-content-label-two{
  588. color: #D59F10;
  589. background:#FEF6DF;
  590. border-radius:20px;
  591. text-align: center;
  592. padding: 5rpx 15rpx;
  593. display: inline-block
  594. }
  595. .list-item-content-fire{
  596. width: 26rpx;
  597. height: 30rpx;
  598. margin:5rpx 0 0 13rpx;
  599. }
  600. .list-detail-head{
  601. display: flex;
  602. justify-content: space-between;
  603. color: #6C6C80;
  604. font-size: 30rpx;
  605. margin-bottom: 10rpx
  606. }
  607. .list-dedail-item{
  608. background:rgba(246,245,251,1);
  609. border-radius:20rpx;
  610. padding: 40rpx;
  611. margin-bottom: 18rpx;
  612. }
  613. .list-dedail-date{
  614. border-top: 1rpx solid #E6E6EC;
  615. padding-top: 25rpx;
  616. color: #A1A1B3;
  617. font-size: 26rpx;
  618. }