hot.wxss 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. .messageSection {
  2. width: 720rpx;
  3. height: 80rpx;
  4. background: #fff;
  5. border-radius: 40rpx;
  6. display: flex;
  7. align-items: center;
  8. position: relative;
  9. padding: 10rpx;
  10. box-sizing: border-box;
  11. margin: 15rpx auto 0;
  12. overflow: hidden;
  13. }
  14. .messageIcon {
  15. width: 60rpx;
  16. height: 60rpx;
  17. border-radius: 50%;
  18. /* flex-shrink:0; */
  19. }
  20. /* 跑马灯 */
  21. @keyframes marque-animation {
  22. from {
  23. transform: translateX(0);
  24. }
  25. to {
  26. transform: translateX(-33.33%);
  27. }
  28. }
  29. .marquee {
  30. width: 90%;
  31. height: 44rpx;
  32. line-height: 44rpx;
  33. /* background: #fff; */
  34. border: none;
  35. display: block;
  36. margin: 0 auto;
  37. overflow: hidden;
  38. white-space: nowrap;
  39. /* text-overflow: clip; */
  40. /* position: relative; */
  41. /* font-size: 28rpx; */
  42. border-radius: 40rpx;
  43. }
  44. .marquee .content {
  45. width: auto;
  46. display: inline-block;
  47. /* position: absolute; */
  48. /* padding-right: 0px; */
  49. animation-name: marque-animation;
  50. animation-duration: 9s;
  51. animation-iteration-count: infinite;
  52. animation-timing-function: linear;
  53. /* white-space: nowrap; */
  54. /* height: 30rpx; */
  55. font-size: 30rpx;
  56. font-weight: 500;
  57. color: #4f4f50;
  58. }
  59. .messageText {
  60. width: 86%;
  61. height: 36rpx;
  62. font-size: 30rpx;
  63. font-weight: 500;
  64. color: #4f4f50;
  65. white-space: nowrap;
  66. text-overflow: ellipsis;
  67. overflow: hidden;
  68. margin-left: 15rpx;
  69. }
  70. swiper {
  71. margin-top: 64rpx;
  72. /* padding-top: 20rpx; */
  73. background: #fff;
  74. display: block;
  75. width: 100%;
  76. height: 312rpx;
  77. }
  78. .swiperSection {
  79. width: 100%;
  80. height: 320rpx;
  81. margin-top: 16rpx;
  82. overflow: hidden;
  83. position: relative;
  84. background: #fff;
  85. }
  86. .slide-item {
  87. width: 492rpx;
  88. }
  89. .slide-image {
  90. display: block;
  91. margin: 0 auto;
  92. width: 492rpx;
  93. height: 203rpx;
  94. border-radius: 10rpx;
  95. }
  96. .slide-summary {
  97. display: flex;
  98. justify-content: space-between;
  99. margin-top: 15rpx;
  100. overflow: hidden;
  101. }
  102. .slide-title {
  103. /* margin: 0 auto; */
  104. width: 65%;
  105. height: 32rpx;
  106. line-height: 32rpx;
  107. display: block;
  108. /* text-align: left; */
  109. color: #393939;
  110. font-size: 24rpx;
  111. font-weight: 500;
  112. /* letter-spacing: 4rpx; */
  113. margin-left: 10rpx;
  114. /* font-family: MicrosoftYaHei; */
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. white-space: nowrap;
  118. }
  119. .slide-tip {
  120. width: 130rpx;
  121. height: 32rpx;
  122. display: block;
  123. text-align: left;
  124. color: #6d6d6d;
  125. font-size: 24rpx;
  126. line-height: 32rpx;
  127. font-weight: 500;
  128. margin-right: 10rpx;
  129. }
  130. .searchSection {
  131. width: 100%;
  132. height: 84rpx;
  133. display: flex;
  134. align-items: center;
  135. margin-top: 16rpx;
  136. /* background: #fff */
  137. padding: 0 15rpx;
  138. box-sizing: border-box;
  139. }
  140. .searchSection input {
  141. display: flex;
  142. width: 500rpx;
  143. height: 80rpx;
  144. border-radius: 40rpx;
  145. background: #fff;
  146. color: #717171;
  147. font-size: 28rpx;
  148. /* margin-left: 14rpx; */
  149. padding-left: 25rpx;
  150. }
  151. .searchSection .searchBtn {
  152. /* background: #fff; */
  153. position: absolute;
  154. z-index: 2;
  155. left: 250rpx;
  156. width: 56rpx;
  157. height: 56rpx;
  158. border: 1rpx solid rgba(255, 255, 255, 0);
  159. }
  160. .searchSection .searchBtn image {
  161. display: block;
  162. width: 34rpx;
  163. height: 34rpx;
  164. margin: 10rpx auto;
  165. }
  166. .searchSection .allBooks {
  167. font-size: 30rpx;
  168. color: #494747;
  169. font-weight: 800;
  170. /* font-family: PingFangSC-regular; */
  171. width: 200rpx;
  172. text-align: center;
  173. margin-left: 20rpx;
  174. background: #F0F1F5;
  175. height: 80rpx;
  176. line-height: 80rpx;
  177. border-radius: 40rpx;
  178. background: #fff;
  179. }
  180. .hotSection {
  181. width: 100%;
  182. /* height: 50rpx; */
  183. /* background: #fff; */
  184. background: rgba(240, 241, 245, 1);
  185. margin-top: 10rpx;
  186. }
  187. .hotSection .title {
  188. display: flex;
  189. align-items: center;
  190. justify-content: space-between;
  191. padding: 10rpx 22rpx 20rpx;
  192. }
  193. .hotSection .leftWrapper {
  194. display: flex;
  195. align-items: center;
  196. }
  197. .hotSection .title image {
  198. width: 54rpx;
  199. height: 60rpx;
  200. margin-left: 14rpx;
  201. }
  202. .hotSection .title .recommendTag {
  203. width: 38rpx;
  204. height: 34rpx;
  205. }
  206. .hotSection .title text {
  207. width: 224rpx;
  208. /* letter-spacing: 4rpx; */
  209. height: 40rpx;
  210. margin-left: 16rpx;
  211. font-size: 32rpx;
  212. line-height: 40rpx;
  213. /* font-family: PingFangSC-regular; */
  214. color: #444;
  215. }
  216. .hotSection .title .moreBtn {
  217. display: flex;
  218. flex-direction: row;
  219. float: right;
  220. width: 100rpx;
  221. height: 38rpx;
  222. font-size: 28rpx;
  223. color: #444;
  224. align-items: center;
  225. }
  226. .title .moreBtn image {
  227. width: 16rpx;
  228. height: 28rpx;
  229. }
  230. /* // 热门推荐 */
  231. .recommdSection {
  232. width: 100%;
  233. /* height: 50rpx; */
  234. /* background: #fff; */
  235. background: rgba(240, 241, 245, 1);
  236. /* margin-top: 10rpx; */
  237. }
  238. .recommdSection .recommd-title {
  239. width: 100%;
  240. height: 74rpx;
  241. color: #393939;
  242. font-size: 30rpx;
  243. line-height: 89rpx;
  244. text-indent: 30rpx;
  245. font-weight: 800;
  246. }
  247. .recommdSection .leftWrapper {
  248. display: flex;
  249. align-items: center;
  250. }
  251. .recommdSection .title image {
  252. width: 38rpx;
  253. height: 44rpx;
  254. margin-left: 14rpx;
  255. }
  256. .recommdSection .title .recommendTag {
  257. width: 38rpx;
  258. height: 34rpx;
  259. }
  260. .recommdSection .title text {
  261. width: 224rpx;
  262. /* letter-spacing: 4rpx; */
  263. height: 40rpx;
  264. margin-left: 16rpx;
  265. font-size: 32rpx;
  266. line-height: 40rpx;
  267. /* font-family: PingFangSC-regular; */
  268. color: #444;
  269. }
  270. .recommdSection .title .moreBtn {
  271. display: block;
  272. float: right;
  273. width: 80rpx;
  274. height: 38rpx;
  275. font-size: 28rpx;
  276. color: #6e6e6e;
  277. }
  278. /* 我的课程 */
  279. .myCourseSection {
  280. width: 720rpx;
  281. height: 410rpx;
  282. margin: 15rpx auto 0;
  283. background: #fff;
  284. border-radius: 20rpx;
  285. position: relative;
  286. }
  287. .title-regular {
  288. width: 121rpx;
  289. height: 46rpx;
  290. display: flex;
  291. align-items: center;
  292. color: #393939;
  293. font-size: 30rpx;
  294. border-bottom: solid 5rpx #12c962;
  295. font-weight: 800;
  296. position: absolute;
  297. left: 16rpx;
  298. top: 6rpx;
  299. }
  300. .swiper-title {
  301. left: 32rpx;
  302. }
  303. .swiper-dots-wrapper {
  304. display: flex;
  305. position: absolute;
  306. right: 13rpx;
  307. top: 17rpx;
  308. }
  309. .swiper-dots {
  310. width: 28rpx;
  311. height: 28rpx;
  312. background: #D0D0D0;
  313. border-radius: 50%;
  314. font-size: 20rpx;
  315. line-height: 28rpx;
  316. text-align: center;
  317. color: #fff;
  318. font-weight: 800;
  319. margin-right: 5rpx;
  320. }
  321. .swiper-dots text {
  322. width: 100%;
  323. height: 100%;
  324. line-height: 100%;
  325. text-align: center;
  326. }
  327. .dot-active {
  328. background: #12c962;
  329. }
  330. .myCourseSection .myCoursePlaceHolder {
  331. width: 100%;
  332. height: 100%;
  333. }
  334. .myCourseSection .myCoursePlaceHolder image {
  335. width: 100%;
  336. height: 100%;
  337. }
  338. .book-box {
  339. display: flex;
  340. width: 100%;
  341. height: 328rpx;
  342. flex-wrap: wrap;
  343. flex-direction: row;
  344. overflow-x: hidden;
  345. /* justify-content: space-around; */
  346. align-items: center;
  347. overflow: hidden;
  348. /* padding: 0 20rpx; */
  349. box-sizing: border-box;
  350. position: absolute;
  351. top: 64rpx;
  352. }
  353. .book-item {
  354. position: relative;
  355. display: flex;
  356. /* margin-right: 35rpx; */
  357. flex-direction: column;
  358. justify-content: space-between;
  359. width: 214rpx;
  360. height: 330rpx;
  361. margin-left: 2.7%;
  362. }
  363. .book-item .book-img {
  364. width: 214rpx;
  365. height: 278rpx;
  366. }
  367. .book-item .book-title {
  368. /* margin-top: 20rpx; */
  369. color: #393939;
  370. text-align: center;
  371. font-size: 30rpx;
  372. /* font-weight: 800; */
  373. line-height: 36rpx;
  374. margin-top: 16rpx;
  375. }