baseIndex.module.less 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. .container {
  2. position: relative;
  3. // width: 100vw;
  4. height: 100vh;
  5. overflow: hidden;
  6. background: url('../../common/images/icon_bg.png') no-repeat center center / cover;
  7. display: flex;
  8. flex-direction: column;
  9. padding: 61px 18px 18px 37px;
  10. }
  11. .back {
  12. position: fixed;
  13. left: 15px;
  14. top: 17px;
  15. width: 31px;
  16. height: 31px;
  17. &>img {
  18. width: 100%;
  19. height: 100%;
  20. object-fit: cover;
  21. }
  22. &:active {
  23. opacity: 0.8;
  24. }
  25. }
  26. .centerSearch {
  27. position: absolute;
  28. top: 15px;
  29. right: 18px;
  30. // padding: 6px 9px;
  31. width: 300px;
  32. :global {
  33. .van-search {
  34. width: 100%;
  35. z-index: 1;
  36. padding: 0px 0px;
  37. }
  38. .van-field__control::-webkit-input-placeholder {
  39. font-size: 12px;
  40. }
  41. }
  42. }
  43. .section {
  44. display: flex;
  45. // padding: 0 18px 0 27px;
  46. height: calc(100vh - 79px);
  47. .directorySection {
  48. width: 111px;
  49. // background: #B5E1FF;
  50. background: url('./image/d-top.png') no-repeat top center;
  51. background-size: contain;
  52. border-radius: 18px;
  53. margin-right: 15px;
  54. .directionc {
  55. overflow-y: auto;
  56. overflow-x: hidden;
  57. margin-top: 23px;
  58. padding: 12px 7px 12px;
  59. background: #B5E1FF;
  60. border-radius: 0 0 18px 18px;
  61. height: calc(100% - 24px);
  62. &::-webkit-scrollbar {
  63. width: 0;
  64. display: none;
  65. }
  66. }
  67. .dirItem {
  68. text-align: center;
  69. font-size: 13px;
  70. font-weight: 500;
  71. color: #131415;
  72. padding: 0 7px;
  73. height: 33px;
  74. line-height: 33px;
  75. text-align: center;
  76. white-space: nowrap;
  77. width: 100%;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. margin-bottom: 5px;
  81. &.active {
  82. background-color: #fff;
  83. background: #FEF8EF;
  84. border-radius: 6px;
  85. color: #0CA2EA;
  86. }
  87. }
  88. }
  89. }
  90. .content {
  91. overflow-y: auto;
  92. overflow-x: hidden;
  93. &::-webkit-scrollbar {
  94. width: 0;
  95. display: none;
  96. }
  97. // display: flex;
  98. flex: 1;
  99. // background-color: #FFFFFF;
  100. border-radius: 18px;
  101. padding: 0;
  102. padding-left: 4%;
  103. background: rgba(255, 255, 255, 0.8);
  104. border-radius: 18px;
  105. border: 2px solid rgba(255, 255, 255, 0.9);
  106. // border-image: linear-gradient(134deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9)) 2 2;
  107. .wrap {
  108. position: relative;
  109. display: flex;
  110. flex-wrap: wrap;
  111. padding-top: 18px;
  112. gap: 0 32px;
  113. // padding-left: 16px;
  114. // height: 100%;
  115. // padding: 20px 63px 0;
  116. &.emtpyWrap {
  117. width: 100%;
  118. padding-top: 0;
  119. }
  120. }
  121. :global {
  122. .van-empty {
  123. padding-bottom: 0 !important;
  124. }
  125. .van-empty__description {
  126. font-size: 14px;
  127. color: #fff;
  128. }
  129. .van-empty__image {
  130. width: 200px;
  131. height: 200px;
  132. }
  133. }
  134. }
  135. .wrapItem {
  136. position: relative;
  137. width: 102px;
  138. display: flex;
  139. flex-direction: column;
  140. align-items: center;
  141. padding: 0;
  142. flex-shrink: 0;
  143. z-index: 1;
  144. margin-bottom: 18px;
  145. .item {
  146. position: relative;
  147. margin-bottom: 15px;
  148. width: 100%;
  149. height: 144px;
  150. background-color: #edeff2;
  151. box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
  152. img {
  153. position: absolute;
  154. }
  155. &::before {
  156. content: '';
  157. position: absolute;
  158. top: 4px;
  159. right: -4px;
  160. width: 4px;
  161. height: calc(100% - 8px);
  162. background-color: #c5c5c5;
  163. z-index: 1;
  164. }
  165. &::after {
  166. content: '';
  167. position: absolute;
  168. top: 2px;
  169. right: -2px;
  170. width: 4px;
  171. height: calc(100% - 4px);
  172. background-color: #e7e7e7;
  173. z-index: 2;
  174. }
  175. }
  176. .name {
  177. font-size: 13px;
  178. font-weight: 400;
  179. color: #131415;
  180. line-height: 16px;
  181. text-align: left;
  182. }
  183. .favoriteBtn {
  184. position: absolute;
  185. top: 113px;
  186. right: 20px;
  187. z-index: 3;
  188. }
  189. }
  190. .containerImg {
  191. position: relative;
  192. display: block;
  193. width: 100%;
  194. height: 170px;
  195. &::before {
  196. content: '';
  197. position: absolute;
  198. top: 4px;
  199. right: -4px;
  200. width: 4px;
  201. height: calc(100% - 8px);
  202. background-color: #c5c5c5;
  203. z-index: 1;
  204. }
  205. &::after {
  206. content: '';
  207. position: absolute;
  208. top: 2px;
  209. right: -2px;
  210. width: 4px;
  211. height: calc(100% - 4px);
  212. background-color: #e7e7e7;
  213. z-index: 2;
  214. }
  215. }
  216. .cover {
  217. position: relative;
  218. z-index: 3;
  219. display: block;
  220. width: 100%;
  221. height: 170px;
  222. background-color: #edeff2;
  223. background-image: url('./image/icon_default.svg');
  224. background-repeat: no-repeat;
  225. background-position: center center;
  226. &::after {
  227. content: '';
  228. position: absolute;
  229. top: 0;
  230. left: 0;
  231. width: 100%;
  232. height: 100%;
  233. z-index: 2;
  234. background-repeat: no-repeat;
  235. background-image: linear-gradient(to right,
  236. rgba(0, 0, 0, 0.2) 0,
  237. rgba(255, 255, 255, 0.08) 0%,
  238. transparent 0.5%),
  239. linear-gradient(to right,
  240. rgba(0, 0, 0, 0.1) 0.3%,
  241. rgba(255, 255, 255, 0.09) 1.1%,
  242. transparent 1.3%);
  243. background-size: 50% 100%, 50% 100%;
  244. background-position: 0% top, 9% top;
  245. }
  246. :global {
  247. img {
  248. width: 100%;
  249. height: 100%;
  250. opacity: 0;
  251. transition: opacity 0.3s ease-in-out;
  252. }
  253. }
  254. &.loaded {
  255. img {
  256. opacity: 1;
  257. }
  258. }
  259. }