e-swiper.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. // 轮播图
  2. .Swiper-mfw-index-box {
  3. display: flex;
  4. width: 100%;
  5. justify-content: center;
  6. align-items: center;
  7. view {
  8. display: flex;
  9. }
  10. .Swiper-mfw-index {
  11. // 轮播图
  12. width: 100%;
  13. .Swiper-mfw {
  14. width: inherit;
  15. height: 450rpx;
  16. border-radius: 12rpx;
  17. .swiper-mfw-item {
  18. width: inherit;
  19. height: inherit;
  20. border-radius: 12rpx;
  21. .Image,
  22. .ImageVideo {
  23. border-radius: 12rpx;
  24. width: inherit;
  25. height: inherit;
  26. }
  27. }
  28. }
  29. // 指示器
  30. .Swiper-indicator-box {
  31. width: inherit;
  32. display: flex;
  33. flex-direction: column;
  34. align-items: center;
  35. // Top顶部 [今日首推-盒子]
  36. .Top-date-hot {
  37. width: 100%;
  38. box-sizing: border-box;
  39. padding: 20rpx 24rpx;
  40. display: flex;
  41. align-items: center;
  42. flex-wrap: nowrap;
  43. .left-date-ri {
  44. justify-content: center;
  45. .date-ri-text {
  46. color: #ffffff;
  47. font-size: 60rpx;
  48. font-weight: 700;
  49. margin-top: -4rpx;
  50. }
  51. }
  52. .conter-date-nianyue {
  53. margin: 0 14rpx;
  54. display: flex;
  55. justify-content: center;
  56. align-items: center;
  57. flex-direction: row;
  58. flex-wrap: nowrap;
  59. .left-width-bgcolor {
  60. width: 8rpx;
  61. height: 45rpx;
  62. border-radius: 12rpx;
  63. background-color: #fafafa;
  64. margin-right: 14rpx;
  65. }
  66. .right-date-nianyue {
  67. flex-direction: column;
  68. .Top-yue-usa,
  69. .Bottom-nian,
  70. .text {
  71. color: #ffffff;
  72. font-size: 24rpx;
  73. font-weight: 700;
  74. transform: scale(0.95);
  75. }
  76. .text {
  77. margin-top: -4rpx;
  78. }
  79. }
  80. }
  81. .right-hot-ttf {
  82. display: flex;
  83. flex-direction: column;
  84. justify-content: center;
  85. margin-left: 6rpx;
  86. .hot-text {
  87. color: #ffffff;
  88. font-size: 52rpx;
  89. font-weight: 700;
  90. }
  91. }
  92. }
  93. }
  94. // 指示器 [轮播信息 -> 标题,用户,头像,所在地]
  95. .Swiper-indicator-Top {
  96. position: absolute;
  97. left: 0rpx;
  98. bottom: 110rpx;
  99. width: 100%;
  100. box-sizing: border-box;
  101. padding: 20rpx 24rpx;
  102. &.no-dot {
  103. bottom: 0;
  104. }
  105. .Top-item {
  106. width: 100%;
  107. display: flex;
  108. flex-direction: column;
  109. // 如果有视频,则显示“视频预览”
  110. .Top-ImageVideo {
  111. width: 150rpx;
  112. box-sizing: border-box;
  113. padding: 2rpx 6rpx;
  114. margin-bottom: 10rpx;
  115. background-color: #f0ad4e;
  116. border-radius: 20rpx;
  117. flex-direction: row;
  118. flex-wrap: nowrap;
  119. align-items: center;
  120. .Icons {
  121. color: #242629;
  122. font-size: 26rpx;
  123. transform: scale(0.8);
  124. }
  125. .ImageVideo-text {
  126. color: #242629;
  127. font-size: 24rpx;
  128. }
  129. }
  130. // 标题
  131. .Top-Title {
  132. width: 100%;
  133. display: flex;
  134. align-items: flex-start;
  135. .title-text {
  136. width: 100%;
  137. color: #ffffff;
  138. font-size: 28rpx;
  139. font-weight: 700;
  140. }
  141. }
  142. // 用户信息盒子
  143. .Bottom-UserInfo {
  144. display: flex;
  145. flex-direction: row;
  146. flex-wrap: nowrap;
  147. margin-top: 16rpx;
  148. align-items: center;
  149. .UserImage-box {
  150. width: 40rpx;
  151. border-radius: 20rpx;
  152. margin-right: 20rpx;
  153. .Image {
  154. width: 40rpx;
  155. height: 40rpx;
  156. border-radius: 50%;
  157. }
  158. }
  159. .textbox {
  160. flex-direction: row;
  161. flex-wrap: nowrap;
  162. .wo-text,
  163. .UserInfo {
  164. font-size: 24rpx;
  165. }
  166. .wo-text {
  167. color: #f1f2f6;
  168. margin-right: 8rpx;
  169. }
  170. .UserInfo {
  171. color: #ffffff;
  172. }
  173. }
  174. .jiange-box {
  175. margin: 0 8rpx;
  176. .jiange-text {
  177. color: #f1f2f6;
  178. }
  179. }
  180. }
  181. }
  182. }
  183. // 指示器 [左边图片列表+右边按钮]
  184. .Swiper-indicator-Bottom {
  185. position: absolute;
  186. left: 0;
  187. bottom: 0;
  188. width: 100%;
  189. display: flex;
  190. justify-content: space-between;
  191. border-radius: 12rpx;
  192. flex-direction: row;
  193. flex-wrap: nowrap;
  194. box-sizing: border-box;
  195. padding: 14rpx;
  196. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(101, 101, 101, 0.7));
  197. // 左边[图片列表]
  198. .Bottom-left-Imagelist {
  199. // width: 560rpx;
  200. display: flex;
  201. flex-direction: row;
  202. flex-wrap: nowrap;
  203. justify-content: space-between;
  204. // 指示图(小图模式)
  205. .Bottom-item {
  206. width: 98rpx;
  207. height: 78rpx;
  208. border-radius: 8rpx;
  209. .Image {
  210. width: 98rpx;
  211. height: 78rpx;
  212. border-radius: 8rpx;
  213. box-sizing: border-box;
  214. }
  215. &.current {
  216. .Image {
  217. // border: 4rpx solid #ffda02;
  218. border: 4rpx solid rgb(110, 186, 247);
  219. }
  220. }
  221. }
  222. .Bottom-item + .Bottom-item {
  223. margin-left: 10rpx;
  224. }
  225. }
  226. // 右边 [历历在目-按钮]
  227. .Bottom-right-lili-btn {
  228. width: 145rpx;
  229. align-items: center;
  230. justify-content: center;
  231. border-radius: 10rpx;
  232. // background-image: linear-gradient(45deg, rgb(110, 186, 247), rgb(13, 141, 242));
  233. .Bottom-item {
  234. width: 145rpx;
  235. display: flex;
  236. flex-direction: column;
  237. align-items: center;
  238. justify-content: center;
  239. color: #fff;
  240. .indicator-text {
  241. font-size: 24rpx;
  242. font-weight: 700;
  243. }
  244. .more {
  245. display: flex;
  246. align-items: center;
  247. font-weight: bold;
  248. font-size: 26rpx;
  249. .iconfont {
  250. color: #fff;
  251. font-size: 24rpx;
  252. }
  253. }
  254. .text {
  255. display: flex;
  256. flex-direction: column;
  257. align-items: center;
  258. // font-weight: normal;
  259. letter-spacing: 4rpx;
  260. }
  261. }
  262. }
  263. }
  264. }
  265. .Swiper-box {
  266. border-radius: 12rpx;
  267. overflow: hidden !important;
  268. transform: translateY(0) !important;
  269. transform: translateX(0) !important;
  270. &.right {
  271. .indicator-Top-box {
  272. position: absolute;
  273. }
  274. .Swiper-indicator-Top {
  275. bottom: 0;
  276. .Top-item .Top-Title .title-text {
  277. width: 540rpx;
  278. }
  279. }
  280. .Swiper-indicator-Bottom {
  281. width: 120rpx;
  282. position: absolute;
  283. top: 0rpx;
  284. left: initial;
  285. right: 0rpx;
  286. flex-direction: column;
  287. background-image: none;
  288. background-color: rgba(0, 0, 0, 0.1);
  289. // border-radius: 0rpx 12rpx 12rpx 0;
  290. border-radius: 12rpx;
  291. .Bottom-left-Imagelist {
  292. flex-direction: column;
  293. align-items: center;
  294. .Bottom-item {
  295. border-radius: 6rpx;
  296. }
  297. .Bottom-item + .Bottom-item {
  298. margin-left: 0rpx;
  299. margin-top: 10rpx;
  300. }
  301. }
  302. .Bottom-right-lili-btn {
  303. width: 100rpx;
  304. margin-left: -4rpx;
  305. .Bottom-item {
  306. width: initial;
  307. margin-top: 6rpx;
  308. align-items: flex-start;
  309. justify-content: flex-start;
  310. .more {
  311. font-size: 24rpx;
  312. }
  313. .text {
  314. letter-spacing: 0;
  315. font-size: 24rpx;
  316. font-weight: normal;
  317. }
  318. }
  319. }
  320. }
  321. }
  322. }
  323. }
  324. .Swiper-mfw {
  325. position: relative;
  326. }
  327. .indicator-Top-box {
  328. position: absolute;
  329. }
  330. .indicator-Btoom-box {
  331. position: absolute;
  332. bottom: 0;
  333. }