index.wxss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. page {
  28. height: 100%;
  29. background-color: #fff;
  30. }
  31. .content {
  32. height: 100%;
  33. display: flex;
  34. flex-direction: column;
  35. }
  36. .content .top-content {
  37. width: 100%;
  38. z-index: 10;
  39. }
  40. .content .top-content .top-title {
  41. height: 88rpx;
  42. line-height: 88rpx;
  43. font-size: 42rpx;
  44. font-family: Source Han Sans CN;
  45. font-weight: bold;
  46. color: #222222;
  47. padding-left: 41rpx;
  48. background-color: #FFFFFF;
  49. }
  50. .content .top-content .search-cont {
  51. padding: 16rpx 30rpx;
  52. background-color: #FFFFFF;
  53. }
  54. .content .top-content .search-cont .inner {
  55. box-sizing: border-box;
  56. width: 100%;
  57. height: 72rpx;
  58. background: #F7F7F7;
  59. border-radius: 36rpx;
  60. display: flex;
  61. align-items: center;
  62. padding: 0 30rpx;
  63. }
  64. .content .top-content .search-cont .inner .icon-search {
  65. width: 28rpx;
  66. height: 28rpx;
  67. margin-right: 20rpx;
  68. }
  69. .content .top-content .search-cont .inner input {
  70. height: 60rpx;
  71. line-height: 60rpx;
  72. flex: 1;
  73. }
  74. .content .medic-box {
  75. display: flex;
  76. }
  77. .content .medic-box .cate-list {
  78. box-sizing: border-box;
  79. width: 200rpx;
  80. background: #F2F5F9;
  81. display: flex;
  82. flex-direction: column;
  83. padding: 20rpx 0;
  84. overflow-y: scroll;
  85. }
  86. .content .medic-box .cate-list .item {
  87. height: 100rpx;
  88. line-height: 100rpx;
  89. padding-left: 30rpx;
  90. font-size: 28rpx;
  91. font-family: PingFang SC;
  92. font-weight: 500;
  93. color: #333333;
  94. position: relative;
  95. }
  96. .content .medic-box .cate-list .item.active {
  97. color: #2BC7B9;
  98. }
  99. .content .medic-box .cate-list .item.active::after {
  100. content: "";
  101. width: 8rpx;
  102. height: 50rpx;
  103. background: #2BC7B9;
  104. position: absolute;
  105. top: 25rpx;
  106. left: 0;
  107. }
  108. .content .medic-box .medic {
  109. box-sizing: border-box;
  110. width: calc(100% - 200rpx);
  111. height: 100%;
  112. padding: 0 30rpx;
  113. }
  114. .content .medic-box .medic .banner-box {
  115. margin-top: 30rpx;
  116. width: 100%;
  117. height: 160rpx;
  118. border-radius: 10rpx;
  119. overflow: hidden;
  120. }
  121. .content .medic-box .medic .banner-box .swiper,
  122. .content .medic-box .medic .banner-box .swiper-item,
  123. .content .medic-box .medic .banner-box .swiper-item image {
  124. width: 100%;
  125. height: 100%;
  126. }
  127. .content .medic-box .medic .medic-list {
  128. box-sizing: border-box;
  129. padding: 30rpx 0;
  130. overflow-y: auto;
  131. height: calc(100% - 220rpx);
  132. position: relative;
  133. }
  134. .content .medic-box .medic .medic-list .inner-list {
  135. display: flex;
  136. flex-wrap: wrap;
  137. }
  138. .content .medic-box .medic .medic-list .inner-list .definite {
  139. width: calc(33% - 20rpx);
  140. margin-right: 30rpx;
  141. margin-bottom: 30rpx;
  142. }
  143. .content .medic-box .medic .medic-list .inner-list .definite .img-box {
  144. width: 100%;
  145. height: 144rpx;
  146. background: #F5F5F5;
  147. border-radius: 8rpx;
  148. overflow: hidden;
  149. display: flex;
  150. align-items: center;
  151. }
  152. .content .medic-box .medic .medic-list .inner-list .definite .img-box image {
  153. max-width: 100%;
  154. }
  155. .content .medic-box .medic .medic-list .inner-list .definite .name {
  156. width: 100%;
  157. margin-top: 20rpx;
  158. font-size: 24rpx;
  159. font-family: PingFang SC;
  160. font-weight: 500;
  161. color: #666666;
  162. text-align: center;
  163. }
  164. .content .medic-box .medic .medic-list .inner-list .definite:nth-child(3n) {
  165. margin-right: 0;
  166. }