e-swiper.scss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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. background-color: rgba(0, 0, 0, 0.085);
  103. backdrop-filter: blur(3rpx);
  104. &.no-dot {
  105. bottom: 0;
  106. }
  107. .Top-item {
  108. width: 100%;
  109. display: flex;
  110. flex-direction: column;
  111. // 如果有视频,则显示“视频预览”
  112. .Top-ImageVideo {
  113. width: 150rpx;
  114. box-sizing: border-box;
  115. padding: 2rpx 6rpx;
  116. margin-bottom: 10rpx;
  117. background-color: #f0ad4e;
  118. border-radius: 20rpx;
  119. flex-direction: row;
  120. flex-wrap: nowrap;
  121. align-items: center;
  122. .Icons {
  123. color: #242629;
  124. font-size: 26rpx;
  125. transform: scale(0.8);
  126. }
  127. .ImageVideo-text {
  128. color: #242629;
  129. font-size: 24rpx;
  130. }
  131. }
  132. // 标题
  133. .Top-Title {
  134. width: 100%;
  135. display: flex;
  136. align-items: flex-start;
  137. .title-text {
  138. width: 100%;
  139. color: #ffffff;
  140. font-size: 28rpx;
  141. font-weight: 700;
  142. }
  143. }
  144. // 用户信息盒子
  145. .Bottom-UserInfo {
  146. display: flex;
  147. flex-direction: row;
  148. flex-wrap: nowrap;
  149. margin-top: 16rpx;
  150. align-items: center;
  151. .UserImage-box {
  152. width: 40rpx;
  153. border-radius: 20rpx;
  154. margin-right: 20rpx;
  155. .Image {
  156. width: 40rpx;
  157. height: 40rpx;
  158. border-radius: 50%;
  159. }
  160. }
  161. .textbox {
  162. flex-direction: row;
  163. flex-wrap: nowrap;
  164. .wo-text,
  165. .UserInfo {
  166. font-size: 24rpx;
  167. }
  168. .wo-text {
  169. color: #f1f2f6;
  170. margin-right: 8rpx;
  171. }
  172. .UserInfo {
  173. color: #ffffff;
  174. }
  175. }
  176. .jiange-box {
  177. margin: 0 8rpx;
  178. .jiange-text {
  179. color: #f1f2f6;
  180. }
  181. }
  182. }
  183. }
  184. }
  185. // 指示器 [左边图片列表+右边按钮]
  186. .Swiper-indicator-Bottom {
  187. position: absolute;
  188. left: 0;
  189. bottom: 0;
  190. width: 100%;
  191. display: flex;
  192. justify-content: space-between;
  193. border-radius: 12rpx;
  194. flex-direction: row;
  195. flex-wrap: nowrap;
  196. box-sizing: border-box;
  197. padding: 14rpx;
  198. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(101, 101, 101, 0.7));
  199. // 左边[图片列表]
  200. .Bottom-left-Imagelist {
  201. // width: 560rpx;
  202. display: flex;
  203. flex-direction: row;
  204. flex-wrap: nowrap;
  205. justify-content: space-between;
  206. // 指示图(小图模式)
  207. .Bottom-item {
  208. width: 98rpx;
  209. height: 78rpx;
  210. border-radius: 8rpx;
  211. .Image {
  212. width: 98rpx;
  213. height: 78rpx;
  214. border-radius: 8rpx;
  215. box-sizing: border-box;
  216. }
  217. &.current {
  218. .Image {
  219. // border: 4rpx solid #ffda02;
  220. border: 4rpx solid rgb(110, 186, 247);
  221. }
  222. }
  223. }
  224. .Bottom-item + .Bottom-item {
  225. margin-left: 10rpx;
  226. }
  227. }
  228. // 右边 [历历在目-按钮]
  229. .Bottom-right-lili-btn {
  230. width: 145rpx;
  231. align-items: center;
  232. justify-content: center;
  233. border-radius: 10rpx;
  234. // background-image: linear-gradient(45deg, rgb(110, 186, 247), rgb(13, 141, 242));
  235. .Bottom-item {
  236. width: 145rpx;
  237. display: flex;
  238. flex-direction: column;
  239. align-items: center;
  240. justify-content: center;
  241. color: #fff;
  242. .indicator-text {
  243. font-size: 24rpx;
  244. font-weight: 700;
  245. }
  246. .more {
  247. display: flex;
  248. align-items: center;
  249. font-weight: bold;
  250. font-size: 26rpx;
  251. .iconfont {
  252. color: #fff;
  253. font-size: 24rpx;
  254. }
  255. }
  256. .text {
  257. display: flex;
  258. flex-direction: column;
  259. align-items: center;
  260. // font-weight: normal;
  261. letter-spacing: 4rpx;
  262. }
  263. }
  264. }
  265. }
  266. }
  267. .Swiper-box {
  268. border-radius: 12rpx;
  269. overflow: hidden !important;
  270. transform: translateY(0) !important;
  271. transform: translateX(0) !important;
  272. &.right {
  273. .indicator-Top-box {
  274. position: absolute;
  275. }
  276. .Swiper-indicator-Top {
  277. bottom: 0;
  278. .Top-item .Top-Title .title-text {
  279. width: 540rpx;
  280. }
  281. }
  282. .Swiper-indicator-Bottom {
  283. width: 120rpx;
  284. position: absolute;
  285. top: 0rpx;
  286. left: initial;
  287. right: 0rpx;
  288. flex-direction: column;
  289. background-image: none;
  290. background-color: rgba(0, 0, 0, 0.1);
  291. // border-radius: 0rpx 12rpx 12rpx 0;
  292. border-radius: 12rpx;
  293. .Bottom-left-Imagelist {
  294. flex-direction: column;
  295. align-items: center;
  296. .Bottom-item {
  297. border-radius: 6rpx;
  298. }
  299. .Bottom-item + .Bottom-item {
  300. margin-left: 0rpx;
  301. margin-top: 10rpx;
  302. }
  303. }
  304. .Bottom-right-lili-btn {
  305. width: 100rpx;
  306. margin-left: -4rpx;
  307. .Bottom-item {
  308. width: initial;
  309. margin-top: 6rpx;
  310. align-items: flex-start;
  311. justify-content: flex-start;
  312. .more {
  313. font-size: 24rpx;
  314. }
  315. .text {
  316. letter-spacing: 0;
  317. font-size: 24rpx;
  318. font-weight: normal;
  319. }
  320. }
  321. }
  322. }
  323. }
  324. }
  325. }
  326. .Swiper-mfw {
  327. position: relative;
  328. }
  329. .indicator-Top-box {
  330. position: absolute;
  331. }
  332. .indicator-Btoom-box {
  333. position: absolute;
  334. bottom: 0;
  335. }