index.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /* pages/index/index.wxss */
  2. page {
  3. background: #fafafa;
  4. height: 100%;
  5. overflow: hidden;
  6. }
  7. .sp-tabs {
  8. position: fixed;
  9. height: 108rpx;
  10. width: 750rpx;
  11. top: 0;
  12. background: #fff;
  13. border-bottom: 1px solid #eee;
  14. z-index: 1000;
  15. }
  16. .sp-tabs text {
  17. display: inline-block;
  18. width: 250rpx;
  19. height: 104rpx;
  20. line-height: 104rpx;
  21. text-align: center;
  22. font-size: 30rpx;
  23. color: #999;
  24. }
  25. .sp-tabs text.active {
  26. color: #12c287;
  27. }
  28. .sp-tabs-line {
  29. position: absolute;
  30. width: 120rpx;
  31. height: 5rpx;
  32. bottom: -1rpx;
  33. background: #12c287;
  34. border-radius: 4rpx;
  35. }
  36. .sp-swiper {
  37. height: 100%;
  38. min-height: 100%;
  39. overflow: hidden;
  40. }
  41. .sp-swiper-item {
  42. overflow-x: hidden;
  43. overflow-y: auto;
  44. -webkit-overflow-scrolling: touch;
  45. }
  46. .sp-swiper-item::-webkit-scrollbar {
  47. display: none;
  48. }
  49. .sp-main {
  50. position: relative;
  51. min-height: 100%;
  52. overflow: hidden;
  53. }
  54. .sp-header-inner {
  55. width: 750rpx;
  56. height: 108rpx;
  57. }
  58. .sp-footer-inner {
  59. width: 750rpx;
  60. height: 140rpx;
  61. }
  62. .sp-footer {
  63. position: absolute;
  64. width: 750rpx;
  65. height: 140rpx;
  66. line-height: 140rpx;
  67. bottom: 0;
  68. text-align: center;
  69. }
  70. .sp-list-item {
  71. background: #fff;
  72. box-sizing: border-box;
  73. }
  74. .sp-list-item-hover {
  75. background: #fafafa;
  76. }
  77. .sp-list-item > image {
  78. width: 112rpx;
  79. height: 112rpx;
  80. margin: 30rpx;
  81. vertical-align: top;
  82. border-radius: 56rpx;
  83. }
  84. .sp-list-item > view {
  85. display: inline-block;
  86. width: 400rpx;
  87. margin: 41rpx 0;
  88. }
  89. .sp-list-item > view > text {
  90. display: block;
  91. line-height: 40rpx;
  92. }
  93. .sp-list-item > view > text.title {
  94. font-size: 34rpx;
  95. color: #333;
  96. }
  97. .sp-list-item > view > text.desc {
  98. margin: 10rpx 0 0;
  99. font-size: 28rpx;
  100. color: #999;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. }
  105. .sp-list-item > view > text.num {
  106. margin: 12rpx 0 0;
  107. font-size: 26rpx;
  108. color: #fe6d64;
  109. line-height: 36rpx;
  110. }
  111. .sp-list-item > button {
  112. display: inline-block;
  113. width: 108rpx;
  114. height: 64rpx;
  115. line-height: 60rpx;
  116. margin: 54rpx 0 0 40rpx;
  117. padding: 0;
  118. vertical-align: top;
  119. font-size: 28rpx;
  120. color: #12c287;
  121. border: 1px solid #12c287;
  122. border-radius: 8rpx;
  123. background: #fff;
  124. text-align: center;
  125. }
  126. .sp-list-item > button.button-hover {
  127. border: 1px solid #12c287;
  128. background: #12c287;
  129. color: #fff;
  130. }
  131. .sp-list-item > hr {
  132. display: block;
  133. width: 580rpx;
  134. margin-left: 170rpx;
  135. padding: 0;
  136. border-bottom: 1px solid #eee;
  137. }
  138. .sp-list-item > hr.hidden {
  139. display: none;
  140. }
  141. .sp-footer > hr {
  142. display: inline-block;
  143. width: 44rpx;
  144. height: 1rpx;
  145. margin: 72rpx 20rpx;
  146. background: #bbb;
  147. vertical-align: top;
  148. }
  149. .sp-footer > text {
  150. display: inline-block;
  151. font-size: 26rpx;
  152. color: #bbb;
  153. }