index.module.less 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  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 /
  7. cover;
  8. display: flex;
  9. flex-direction: column;
  10. }
  11. .head {
  12. position: relative;
  13. display: flex;
  14. align-items: center;
  15. justify-content: space-between;
  16. padding: 19px 23px 8px 41px;
  17. transition: opacity 0.3s ease-in-out;
  18. .back {
  19. img {
  20. display: block;
  21. }
  22. }
  23. .tabs {
  24. :global {
  25. .van-tab {
  26. color: rgba(255, 255, 255, 0.9);
  27. font-size: 15px;
  28. padding: 0 16px;
  29. &.van-tab--active {
  30. color: #fff;
  31. }
  32. }
  33. .van-tabs__nav.van-tabs__nav--line {
  34. background: transparent;
  35. }
  36. .van-tabs__line {
  37. background: #fff;
  38. width: 18px;
  39. height: 4px;
  40. }
  41. }
  42. }
  43. }
  44. .downBtn {
  45. width: 84px;
  46. height: 32px;
  47. background: #f8f9fc;
  48. border-radius: 16px;
  49. border: none;
  50. padding: 0;
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. &.activeBtn {
  55. .icon {
  56. color: var(--van-primary-color) !important;
  57. }
  58. :global {
  59. .van-button__text {
  60. color: var(--van-primary-color);
  61. }
  62. }
  63. }
  64. :global {
  65. .van-button__content {
  66. width: 100%;
  67. }
  68. .van-button__text {
  69. width: 100%;
  70. height: 100%;
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. font-size: 13px;
  75. color: #333;
  76. font-weight: 400;
  77. }
  78. }
  79. .icon {
  80. width: 8px;
  81. height: 5px;
  82. margin-left: 4px;
  83. transition: transform 0.2s ease;
  84. }
  85. .iconUp {
  86. color: var(--van-primary-color);
  87. transform: rotate(180deg);
  88. transition: transform 0.2s ease;
  89. }
  90. }
  91. .popover {
  92. width: 83px;
  93. border: none;
  94. :global {
  95. .van-popover__action {
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. padding: 0;
  100. width: 100%;
  101. height: 36px;
  102. color: #999;
  103. font-size: 13px;
  104. }
  105. .van-popover__content {
  106. max-height: 70vh;
  107. overflow-x: hidden;
  108. overflow-y: auto;
  109. }
  110. }
  111. }
  112. .content {
  113. flex: 1;
  114. overflow-y: hidden;
  115. overflow-x: auto;
  116. display: flex;
  117. .wrap {
  118. position: relative;
  119. display: flex;
  120. height: 100%;
  121. padding: 20px 63px 0;
  122. &.emtpyWrap {
  123. width: 100%;
  124. }
  125. }
  126. :global {
  127. .van-empty__description {
  128. font-size: 14px;
  129. color: #fff;
  130. }
  131. .van-empty__image {
  132. width: 200px;
  133. height: 200px;
  134. }
  135. }
  136. }
  137. .wrapItem {
  138. position: relative;
  139. width: 154px;
  140. display: flex;
  141. flex-direction: column;
  142. align-items: center;
  143. padding: 0 16px;
  144. flex-shrink: 0;
  145. z-index: 1;
  146. .item {
  147. position: relative;
  148. margin-bottom: 15px;
  149. width: 100%;
  150. height: 170px;
  151. background-color: #edeff2;
  152. box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
  153. img {
  154. position: absolute;
  155. }
  156. &::before {
  157. content: '';
  158. position: absolute;
  159. top: 4px;
  160. right: -4px;
  161. width: 4px;
  162. height: calc(100% - 8px);
  163. background-color: #c5c5c5;
  164. z-index: 1;
  165. }
  166. &::after {
  167. content: '';
  168. position: absolute;
  169. top: 2px;
  170. right: -2px;
  171. width: 4px;
  172. height: calc(100% - 4px);
  173. background-color: #e7e7e7;
  174. z-index: 2;
  175. }
  176. }
  177. .name {
  178. font-size: 11px;
  179. font-weight: 400;
  180. color: #ffffff;
  181. line-height: 16px;
  182. text-align: center;
  183. }
  184. .favoriteBtn {
  185. position: absolute;
  186. top: 135px;
  187. right: 20px;
  188. z-index: 3;
  189. }
  190. }
  191. .containerImg {
  192. position: relative;
  193. display: block;
  194. width: 100%;
  195. height: 170px;
  196. &::before {
  197. content: '';
  198. position: absolute;
  199. top: 4px;
  200. right: -4px;
  201. width: 4px;
  202. height: calc(100% - 8px);
  203. background-color: #c5c5c5;
  204. z-index: 1;
  205. }
  206. &::after {
  207. content: '';
  208. position: absolute;
  209. top: 2px;
  210. right: -2px;
  211. width: 4px;
  212. height: calc(100% - 4px);
  213. background-color: #e7e7e7;
  214. z-index: 2;
  215. }
  216. }
  217. .cover {
  218. position: relative;
  219. z-index: 3;
  220. display: block;
  221. width: 100%;
  222. height: 170px;
  223. background-color: #edeff2;
  224. background-image: url('./image/icon_default.svg');
  225. background-repeat: no-repeat;
  226. background-position: center center;
  227. &::after {
  228. content: '';
  229. position: absolute;
  230. top: 0;
  231. left: 0;
  232. width: 100%;
  233. height: 100%;
  234. z-index: 2;
  235. background-repeat: no-repeat;
  236. background-image: linear-gradient(
  237. to right,
  238. rgba(0, 0, 0, 0.2) 0,
  239. rgba(255, 255, 255, 0.08) 0%,
  240. transparent 0.5%
  241. ),
  242. linear-gradient(
  243. to right,
  244. rgba(0, 0, 0, 0.1) 0.3%,
  245. rgba(255, 255, 255, 0.09) 1.1%,
  246. transparent 1.3%
  247. );
  248. background-size: 50% 100%, 50% 100%;
  249. background-position: 0% top, 9% top;
  250. }
  251. :global {
  252. img {
  253. width: 100%;
  254. height: 100%;
  255. opacity: 0;
  256. transition: opacity 0.3s ease-in-out;
  257. }
  258. }
  259. &.loaded {
  260. img {
  261. opacity: 1;
  262. }
  263. }
  264. }
  265. .book {
  266. position: fixed;
  267. top: 50%;
  268. left: 50%;
  269. width: 55vw;
  270. transform: translate(-50%, -50%) scale(0);
  271. z-index: 20;
  272. background-color: #fff;
  273. transition: all 0.3s ease-in-out;
  274. visibility: hidden;
  275. pointer-events: none;
  276. border-radius: 8px;
  277. box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  278. .bookWrap {
  279. height: 60vh;
  280. overflow-y: auto;
  281. ul {
  282. list-style: circle;
  283. padding: 10px 40px;
  284. }
  285. }
  286. &.show {
  287. visibility: visible;
  288. pointer-events: auto;
  289. transform: translate(-50%, -50%) scale(1);
  290. }
  291. }
  292. .popupContainer {
  293. background: #ffffff;
  294. border-radius: 12px;
  295. width: 298px;
  296. padding-top: 12px;
  297. .searchList {
  298. padding: 0 0px 0 11px;
  299. max-height: 58vh;
  300. overflow-x: hidden;
  301. overflow-y: auto;
  302. }
  303. .popoverTitle {
  304. display: flex;
  305. align-items: center;
  306. font-size: 14px;
  307. font-weight: 600;
  308. color: #333333;
  309. &::before {
  310. content: ' ';
  311. display: inline-block;
  312. width: 4px;
  313. height: 11px;
  314. background: #2aa4fe;
  315. border-radius: 2px;
  316. margin-right: 6px;
  317. }
  318. }
  319. .popupList {
  320. display: flex;
  321. flex-flow: wrap;
  322. justify-content: flex-start;
  323. // gap: 8px 9px;
  324. padding-top: 11px;
  325. padding-bottom: 14px;
  326. :global {
  327. .van-tag {
  328. padding: 7px 24px;
  329. height: 30px;
  330. font-size: 12px;
  331. background: #f6f6f6;
  332. border: none;
  333. color: #333333;
  334. margin-right: 8px;
  335. margin-bottom: 9px;
  336. }
  337. .van-tag--plain {
  338. background: rgba(42, 164, 254, 0.08);
  339. border: none;
  340. color: #2aa4fe;
  341. }
  342. }
  343. }
  344. .btnGroup {
  345. border: 1px solid #f2f2f2;
  346. padding: 16px 12px;
  347. display: flex;
  348. align-items: center;
  349. justify-content: space-between;
  350. :global {
  351. .van-button {
  352. font-size: 15px;
  353. color: #333333;
  354. line-height: 22px;
  355. padding: 0 48px;
  356. height: 37px;
  357. font-weight: 400;
  358. }
  359. }
  360. .btnSure {
  361. background: linear-gradient(135deg, #19f1e1 0%, #0094ff 100%),
  362. linear-gradient(73deg, #5becff 0%, #259cfe 100%);
  363. border: none;
  364. color: #fff;
  365. }
  366. }
  367. }