大数据展示系统-前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

383 lines
7.6 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. #bookshelf{
  2. width: 100%;
  3. height: 100vh;
  4. // padding-top: 60px;
  5. font-size: 30px;
  6. background: url('~@/assets/images/home/bg.png') no-repeat left top;
  7. background-size: cover;
  8. overflow: hidden;
  9. overflow-y: auto;
  10. }
  11. //c-s壳占位
  12. .top-bg{
  13. height: 60px;
  14. background-color: #3F92F6;
  15. }
  16. // 首页
  17. .bookshelf-header{
  18. position: relative;
  19. height: 254px;
  20. text-align: center;
  21. background: url('~@/assets/images/home/top.png') no-repeat left top;
  22. background-size: cover;
  23. z-index: 9;
  24. h2{
  25. height: 118px;
  26. line-height: 118px;
  27. font-family: "YouSheBiaoTiHei";
  28. font-weight: normal;
  29. font-size: 60px;
  30. }
  31. .shelf-num{
  32. display: block;
  33. position: absolute;
  34. top: 30px;
  35. right: 40px;
  36. width: 180px;
  37. height: 58px;
  38. line-height: 60px;
  39. background: linear-gradient(90deg, #ACDAFF 0%, #9BCEFF 100%);
  40. border-radius: 29px;
  41. }
  42. }
  43. .book-category{
  44. position: relative;
  45. display: flex;
  46. justify-content: space-between;
  47. justify-items: center;
  48. text-align: center;
  49. height: 198px;
  50. line-height: 168px;
  51. padding: 0 120px;
  52. margin-top: -132px;
  53. background: url('~@/assets/images/home/type-bg.png') no-repeat center center;
  54. background-size: cover;
  55. z-index: 99;
  56. p{
  57. flex: 1;
  58. font-size: 60px;
  59. letter-spacing: 6px;
  60. }
  61. }
  62. .book-nav{
  63. display: flex;
  64. justify-content: space-between;
  65. text-align: center;
  66. padding: 0 40px;
  67. margin-bottom: 30px;
  68. li{
  69. flex: 1;
  70. font-size: 36px;
  71. img{
  72. display: inline-block;
  73. margin-bottom: 20px;
  74. }
  75. }
  76. }
  77. // 本架图书
  78. .book-rack{
  79. height: 770px;
  80. margin: 0 40px;
  81. padding: 0 40px 40px 40px;
  82. background-color: #fff;
  83. border-radius: 30px;
  84. box-shadow: 0px 0px 20px 1px #B8D3FF;
  85. }
  86. .list-top{
  87. display: flex;
  88. justify-content: space-between;
  89. justify-items: center;
  90. align-items: center;
  91. padding: 30px 0 25px 0;
  92. font-size: 36px;
  93. .list-top-title{
  94. display: flex;
  95. justify-content: flex-start;
  96. font-size: 40px;
  97. line-height: 50px;
  98. .icon{
  99. width: 50px;
  100. height: 50px;
  101. margin-right: 20px;
  102. }
  103. }
  104. .more{
  105. .iconfont{
  106. font-size: 30px;
  107. margin-left: 20px;
  108. }
  109. }
  110. }
  111. // 本架图书list
  112. .rack-list{
  113. display: flex;
  114. justify-content: space-between;
  115. }
  116. .list-item{
  117. border: 1px solid #A2CCFF;
  118. border-radius: 4px;
  119. overflow: hidden;
  120. .book-info{
  121. position: relative;
  122. }
  123. .book-title{
  124. font-weight: normal;
  125. line-height: 40px;
  126. margin-bottom: 10px;
  127. }
  128. .book-author{
  129. font-size: 24px;
  130. }
  131. .book-num{
  132. position: absolute;
  133. bottom: 20px;
  134. display: flex;
  135. justify-content: flex-start;
  136. font-size: 20px;
  137. color: #999;
  138. .icon{
  139. width: 20px;
  140. height: 22px;
  141. margin-right: 10px;
  142. }
  143. }
  144. }
  145. .list-big{
  146. .list-item{
  147. width: 435px;
  148. height: 625px;
  149. margin-right: 45px;
  150. img{
  151. display: block;
  152. width: 100%;
  153. height: 520px;
  154. border-radius: 4px;
  155. }
  156. .book-info{
  157. padding: 12px 0 20px 44px;
  158. }
  159. .book-num{
  160. right: 16px;
  161. }
  162. }
  163. }
  164. .list-middle{
  165. flex: 1;
  166. display: flex;
  167. flex-direction: column;
  168. justify-content: space-between;
  169. height: 625px;
  170. .list-item{
  171. display: flex;
  172. height: calc(100%/2 - 20px);
  173. justify-content: space-between;
  174. img{
  175. display: block;
  176. width: 244px;
  177. height: 100%;
  178. margin-right: 20px;
  179. }
  180. .book-info{
  181. padding: 20px 0 0 0;
  182. }
  183. .book-num{
  184. left: 0;
  185. bottom: 12px;
  186. }
  187. }
  188. }
  189. // 新书推荐
  190. .new-recommend{
  191. height: 448px;
  192. margin: 30px 40px 0 40px;
  193. }
  194. .list-small{
  195. display: flex;
  196. justify-items: center;
  197. margin-left: -40px;
  198. .list-item{
  199. width: 200px;
  200. border: none;
  201. margin-left: 40px;
  202. .book-img{
  203. display: flex;
  204. align-items: center;
  205. width: 100%;
  206. height: 240px;
  207. margin-bottom: 10px;
  208. }
  209. img{
  210. display: block;
  211. width: 100%;
  212. }
  213. .book-title{
  214. margin-bottom: 0;
  215. }
  216. }
  217. }
  218. //本架图书页面
  219. .rack-box{
  220. padding: 30px 0;
  221. width: 100%;
  222. .rack-item{
  223. position: relative;
  224. margin-bottom: 30px;
  225. overflow: hidden;
  226. .rack-box-list{
  227. // display: flex;
  228. // justify-content: space-between;
  229. height: 314px;
  230. padding: 0 40px;
  231. width: 1080px;
  232. background: url('~@/assets/images/list/list-rack.png') no-repeat -31px 205px;
  233. overflow: hidden;
  234. // overflow-x: auto;
  235. white-space: nowrap;
  236. .list-item{
  237. margin-right: 1.7px;
  238. display: inline-block;
  239. border: none;
  240. height: 254px;
  241. width: 65px;
  242. background-size: 93px 266px;
  243. position: relative;
  244. .box-txt{
  245. position: absolute;
  246. top: 12%;
  247. left: 50%;
  248. transform: translateX(-40%);
  249. .book-name,.book-writer{
  250. writing-mode:vertical-rl;
  251. height: 235px;
  252. overflow: hidden;
  253. white-space: nowrap;
  254. text-overflow: ellipsis;
  255. }
  256. .book-name{
  257. font-size: 20px;
  258. }
  259. .book-writer{
  260. font-size: 18px;
  261. }
  262. }
  263. }
  264. }
  265. }
  266. .rack-floor{
  267. position: absolute;
  268. left: 0;
  269. bottom: 2px;
  270. height: 50px;
  271. width: 100%;
  272. display: flex;
  273. color: #fff;
  274. align-items: center;
  275. justify-content: space-between;
  276. padding: 0 40px;
  277. z-index: 999;
  278. .icon-l,.icon-r{
  279. font-size: 24px;
  280. }
  281. }
  282. }
  283. .bookshelf-header .icon-l{
  284. color: #fff;
  285. font-size: 40px;
  286. position: absolute;
  287. left: 40px;
  288. top: 50%;
  289. transform: translateY(-50%);
  290. }
  291. .bookshelf-header .rack-direct{
  292. position: absolute;
  293. top: 30px;
  294. right: 40px;
  295. width: 220px;
  296. height: 60px;
  297. line-height: 60px;
  298. // background: linear-gradient(90deg, #ACDAFF 0%, #9BCEFF 100%);
  299. background: #fff;
  300. border-radius: 30px;
  301. display: flex;
  302. padding: 6px;
  303. span{
  304. flex: 1;
  305. text-align: center;
  306. line-height: 48px;
  307. &.rack-direct-active{
  308. background: linear-gradient(267deg, #7285FB 0%, #7285FB 9%, #4377FE 55%, #2487FF 100%);
  309. z-index: 1;
  310. border-radius: 24px;
  311. color: #fff;
  312. }
  313. }
  314. }
  315. .rack-box-list .list-item{
  316. &:nth-child(15n+1){
  317. background: url('~@/assets/images/list/1.png') no-repeat -15px -13px;
  318. }
  319. &:nth-child(15n+2){
  320. background: url('~@/assets/images/list/2.png') no-repeat -15px -13px;
  321. }
  322. &:nth-child(15n+3){
  323. background: url('~@/assets/images/list/3.png') no-repeat -15px -13px;
  324. }
  325. &:nth-child(15n+4){
  326. background: url('~@/assets/images/list/4.png') no-repeat -15px -13px;
  327. }
  328. &:nth-child(15n+5){
  329. background: url('~@/assets/images/list/5.png') no-repeat -15px -13px;
  330. }
  331. &:nth-child(15n+6){
  332. background: url('~@/assets/images/list/6.png') no-repeat -15px -13px;
  333. }
  334. &:nth-child(15n+7){
  335. background: url('~@/assets/images/list/7.png') no-repeat -15px -13px;
  336. }
  337. &:nth-child(15n+8){
  338. background: url('~@/assets/images/list/8.png') no-repeat -15px -13px;
  339. }
  340. &:nth-child(15n+9){
  341. background: url('~@/assets/images/list/9.png') no-repeat -15px -13px;
  342. }
  343. &:nth-child(15n+10){
  344. background: url('~@/assets/images/list/10.png') no-repeat -15px -13px;
  345. }
  346. &:nth-child(15n+11){
  347. background: url('~@/assets/images/list/11.png') no-repeat -15px -13px;
  348. }
  349. &:nth-child(15n+12){
  350. background: url('~@/assets/images/list/12.png') no-repeat -15px -13px;
  351. }
  352. &:nth-child(15n+13){
  353. background: url('~@/assets/images/list/13.png') no-repeat -15px -13px;
  354. }
  355. &:nth-child(15n+14){
  356. background: url('~@/assets/images/list/14.png') no-repeat -15px -13px;
  357. }
  358. &:nth-child(15n+15){
  359. background: url('~@/assets/images/list/15.png') no-repeat -15px -13px;
  360. }
  361. }
  362. ::-webkit-scrollbar {
  363. width: 0;
  364. height: 0;
  365. }