1.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946
  1. <template>
  2. <!--样式1-->
  3. <div class="swiperStyle1" v-if="skinId == 1">
  4. <el-carousel :interval="3000" height="405px" indicator-position="none" arrow="always" @change="change_fun">
  5. <el-carousel-item v-for="(item, index) in imagelist" :key="item.id">
  6. <NuxtLink :to="`/${item.pinyin}/${item.id}.html`" class="swiper_link"
  7. :target="item.islink == 1 ? '_blank' : '_self'">
  8. <img :src="item.imgurl">
  9. <span class="swiper_dot1 dot1">
  10. {{ item.title }}
  11. </span>
  12. </NuxtLink>
  13. </el-carousel-item>
  14. </el-carousel>
  15. <div class="roll_num_box">
  16. <span class="roll_num_box_new">{{ roll_num_this + 1 }}</span>
  17. /
  18. {{ roll_num_lang }}
  19. </div>
  20. </div>
  21. <!--样式2-->
  22. <div class="swiperStyle2" v-if="skinId == 2">
  23. <el-carousel :interval="3333" height="405px" indicator-class="custom-indicator" @change="change_fun"
  24. trigger="click">
  25. <el-carousel-item v-for="(item, index) in imagelist" :key="item.id">
  26. <NuxtLink :to="`/${item.pinyin}/${item.id}.html`" class="swiper_link"
  27. :target="item.islink == 1 ? '_blank' : '_self'">
  28. <img :src="item.imgurl">
  29. <span class="swiper_dot1 dot1">
  30. {{ item.title }}
  31. </span>
  32. </NuxtLink>
  33. </el-carousel-item>
  34. </el-carousel>
  35. </div>
  36. <!--样式3-->
  37. <div class="swiperStyle3" v-if="skinId == 3">
  38. <el-carousel :interval="3333" height="405px" indicator-class="custom-indicator" @change="change_fun"
  39. trigger="click">
  40. <el-carousel-item v-for="(item, index) in imagelist" :key="item.id">
  41. <NuxtLink :to="`/${item.pinyin}/${item.id}.html`" class="swiper_link"
  42. :target="item.islink == 1 ? '_blank' : '_self'">
  43. <img :src="item.imgurl">
  44. <span class="swiper_dot1 dot1">
  45. {{ item.title }}
  46. </span>
  47. </NuxtLink>
  48. </el-carousel-item>
  49. </el-carousel>
  50. </div>
  51. <!--样式4-->
  52. <div class="swiperStyle4" v-if="skinId == 4">
  53. <el-carousel :interval="3333" height="405px" indicator-class="custom-indicator" @change="change_fun"
  54. trigger="click">
  55. <el-carousel-item v-for="(item, index) in imagelist" :key="item.id">
  56. <NuxtLink :to="`/${item.pinyin}/${item.id}.html`" class="swiper_link"
  57. :target="item.islink == 1 ? '_blank' : '_self'">
  58. <img :src="item.imgurl">
  59. <span class="swiper_dot1 dot1">
  60. {{ item.title }}
  61. </span>
  62. </NuxtLink>
  63. </el-carousel-item>
  64. </el-carousel>
  65. </div>
  66. <!-- 样式5 -->
  67. <div class="swiperStyle5" v-if="skinId == 5">
  68. <el-carousel :interval="3333" height="405px" indicator-class="custom-indicator" @change="change_fun"
  69. trigger="click">
  70. <el-carousel-item v-for="(item, index) in imagelist" :key="item.id">
  71. <NuxtLink :to="`/${item.pinyin}/${item.id}.html`" class="swiper_link"
  72. :target="item.islink == 1 ? '_blank' : '_self'">
  73. <img :src="item.imgurl">
  74. <span class="swiper_dot1 dot1">
  75. {{ item.title }}
  76. </span>
  77. </NuxtLink>
  78. </el-carousel-item>
  79. <div class="roll_num_box">
  80. <span class="roll_num_box_new">{{ roll_num_this + 1 }}</span>/{{ total_num }}
  81. </div>
  82. </el-carousel>
  83. </div>
  84. <!-- 样式6 -->
  85. <div class="swiperStyle6" v-if="skinId == 6">
  86. <el-carousel :interval="3333" height="405px" indicator-class="custom-indicator" @change="change_fun"
  87. trigger="click">
  88. <el-carousel-item v-for="(item, index) in imagelist" :key="item.id">
  89. <NuxtLink :to="`/${item.pinyin}/${item.id}.html`" class="swiper_link"
  90. :target="item.islink == 1 ? '_blank' : '_self'">
  91. <img :src="item.imgurl">
  92. <span class="swiper_dot1">
  93. <span class="title dot1">{{ item.title }}</span>
  94. </span>
  95. </NuxtLink>
  96. </el-carousel-item>
  97. </el-carousel>
  98. </div>
  99. <!-- 样式7 -->
  100. <div class="swiperStyle7" v-if="skinId == 7">
  101. <el-carousel :interval="3333" height="405px" indicator-class="custom-indicator" @change="change_fun"
  102. trigger="click">
  103. <el-carousel-item v-for="(item, index) in imagelist" :key="item.id">
  104. <NuxtLink :to="`/${item.pinyin}/${item.id}.html`" class="swiper_link"
  105. :target="item.islink == 1 ? '_blank' : '_self'">
  106. <img :src="item.imgurl">
  107. <span class="swiper_dot1">
  108. <span class="title dot1">{{ item.title }}</span>
  109. </span>
  110. </NuxtLink>
  111. </el-carousel-item>
  112. </el-carousel>
  113. </div>
  114. </template>
  115. <script setup>
  116. //引入vue
  117. import { ref } from 'vue'
  118. import { ElCarousel, ElCarouselItem } from 'element-plus'
  119. //获得新闻数据
  120. const props = defineProps({
  121. skinId: String,//皮肤编号
  122. templateData: Array,//新闻数据
  123. });
  124. //焦点图效果 start---------------------------------------->
  125. const roll_num_lang = ref(5);
  126. const roll_num_this = ref(0);
  127. const total_num = ref(5);
  128. const change_fun = (the_1) => {
  129. roll_num_this.value = the_1
  130. }
  131. const imagelist = ref("")
  132. imagelist.value = props.templateData.slice(0, 5);
  133. roll_num_lang.value = props.templateData.length - 1;
  134. total_num.value = props.templateData.length;
  135. //焦点图效果 end---------------------------------------->
  136. </script>
  137. <style lang="less" scoped>
  138. //样式1 start---------------------------------------->
  139. .swiperStyle1 {
  140. width: 100%;
  141. height: 405px;
  142. position: relative;
  143. .roll_num_box {
  144. position: absolute;
  145. z-index: 100;
  146. left: 60px;
  147. bottom: 0px;
  148. height: 60px;
  149. line-height: 60px;
  150. color: #fff;
  151. font-size: 16px;
  152. .roll_num_box_new {
  153. font-size: 20px;
  154. }
  155. }
  156. .dot1 {
  157. display: block;
  158. word-break: keep-all;
  159. white-space: nowrap;
  160. overflow: hidden;
  161. text-overflow: ellipsis;
  162. }
  163. img {
  164. width: 100%;
  165. height: 405px;
  166. }
  167. .swiper_dot1 {
  168. display: block;
  169. width: 100%;
  170. line-height: 60px;
  171. height: 60px;
  172. color: #fff;
  173. font-size: 18px;
  174. text-indent: 20px;
  175. position: absolute;
  176. bottom: 0;
  177. left: 0;
  178. z-index: 10;
  179. box-sizing: border-box;
  180. padding: 0 144px;
  181. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 33%, rgba(0, 0, 0, 0) 100%);
  182. }
  183. .el-carousel {
  184. :deep(.el-carousel__arrow i) {
  185. font-size: 33px !important;
  186. }
  187. .roll_1_box {
  188. position: relative;
  189. }
  190. :deep(.el-carousel__arrow--left) {
  191. position: absolute;
  192. width: 35px;
  193. height: 57px;
  194. color: #fff;
  195. background: rgba(0, 0, 0, 0);
  196. left: 9px;
  197. border: none;
  198. border-radius: 0;
  199. top: 100%;
  200. margin-top: -28px;
  201. }
  202. :deep(.el-carousel__arrow--right) {
  203. width: 35px;
  204. height: 57px;
  205. color: #fff;
  206. background: rgba(0, 0, 0, 0);
  207. position: absolute;
  208. right: 9;
  209. border: none;
  210. border-radius: 0;
  211. top: 100%;
  212. margin-top: -28px;
  213. }
  214. :deep(.el-carousel__indicators) {
  215. // 指示器
  216. left: unset;
  217. transform: unset;
  218. right: 10px;
  219. bottom: 11px;
  220. }
  221. :deep(.el-carousel__button) {
  222. // 指示器按钮
  223. width: 10px;
  224. height: 10px;
  225. border: none;
  226. border-radius: 5px;
  227. background: #fff;
  228. opacity: 1;
  229. }
  230. :deep(.is-active .el-carousel__button) {
  231. // 指示器激活按钮
  232. background: #255590;
  233. width: 25px;
  234. opacity: 1;
  235. }
  236. :deep(.el-carousel__container) {
  237. height: 100%;
  238. }
  239. }
  240. .custom-indicator button {
  241. background-color: #fff;
  242. opacity: 1;
  243. width: 8px;
  244. height: 8px;
  245. }
  246. .custom-indicator button.is-active {
  247. background-color: #DD7D18;
  248. width: 58px;
  249. opacity: 1;
  250. }
  251. }
  252. //样式1 end---------------------------------------->
  253. //样式2 start---------------------------------------->
  254. .swiperStyle2 {
  255. width: 100%;
  256. height: 405px;
  257. position: relative;
  258. img {
  259. width: 100%;
  260. height: 405px;
  261. }
  262. .swiper_dot1 {
  263. display: block;
  264. width: 100%;
  265. line-height: 60px;
  266. height: 60px;
  267. color: #fff;
  268. font-size: 24px;
  269. text-indent: 20px;
  270. position: absolute;
  271. bottom: 0;
  272. left: 0;
  273. z-index: 10;
  274. box-sizing: border-box;
  275. padding-right: 244px;
  276. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 33%, rgba(0, 0, 0, 0) 100%);
  277. }
  278. .el-carousel {
  279. /deep/.el-carousel__arrow i {
  280. font-size: 16px !important;
  281. }
  282. /deep/.el-carousel__arrow--left {
  283. left: 20px;
  284. width: 36px;
  285. height: 36px;
  286. color: #eee;
  287. background: rgba(0, 0, 0, 0.5);
  288. border-radius: 50%;
  289. position: absolute;
  290. border: none;
  291. border-radius: 50%;
  292. }
  293. /deep/.el-carousel__arrow--right {
  294. right: 20px;
  295. width: 36px;
  296. height: 36px;
  297. color: #eee;
  298. background: rgba(0, 0, 0, 0.5);
  299. position: absolute;
  300. border: none;
  301. border-radius: 50%;
  302. }
  303. /deep/ .el-carousel__indicators {
  304. // 指示器
  305. left: unset;
  306. transform: unset;
  307. right: 10px;
  308. bottom: 11px;
  309. }
  310. /deep/ .el-carousel__button {
  311. // 指示器按钮
  312. width: 10px;
  313. height: 10px;
  314. border: none;
  315. background: #fff;
  316. opacity: 1;
  317. }
  318. /deep/ .is-active .el-carousel__button {
  319. // 指示器激活按钮
  320. background: #A91B33;
  321. width: 10px;
  322. height: 10px;
  323. opacity: 1;
  324. }
  325. /deep/ .el-carousel__container {
  326. height: 100%;
  327. }
  328. }
  329. .custom-indicator button {
  330. background-color: #fff;
  331. opacity: 1;
  332. width: 8px;
  333. height: 8px;
  334. }
  335. .custom-indicator button.is-active {
  336. background-color: #DD7D18;
  337. width: 58px;
  338. opacity: 1;
  339. }
  340. }
  341. //样式2 end---------------------------------------->
  342. //样式3 start---------------------------------------->
  343. .swiperStyle3 {
  344. width: 100%;
  345. height: 405px;
  346. position: relative;
  347. img {
  348. width: 100%;
  349. height: 405px;
  350. }
  351. .swiper_dot1 {
  352. display: block;
  353. width: 100%;
  354. line-height: 60px;
  355. height: 60px;
  356. color: #fff;
  357. font-size: 24px;
  358. text-indent: 20px;
  359. position: absolute;
  360. bottom: 0;
  361. left: 0;
  362. z-index: 10;
  363. box-sizing: border-box;
  364. padding-right: 244px;
  365. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 33%, rgba(0, 0, 0, 0) 100%);
  366. }
  367. .el-carousel {
  368. /deep/.el-carousel__arrow i {
  369. font-size: 16px !important;
  370. }
  371. /deep/.el-carousel__arrow--left {
  372. left: 20px;
  373. width: 36px;
  374. height: 36px;
  375. color: #eee;
  376. background: rgba(0, 0, 0, 0.5);
  377. border-radius: 50%;
  378. position: absolute;
  379. border: none;
  380. border-radius: 50%;
  381. }
  382. /deep/.el-carousel__arrow--right {
  383. right: 20px;
  384. width: 36px;
  385. height: 36px;
  386. color: #eee;
  387. background: rgba(0, 0, 0, 0.5);
  388. position: absolute;
  389. border: none;
  390. border-radius: 50%;
  391. }
  392. /deep/ .el-carousel__indicators {
  393. // 指示器
  394. left: unset;
  395. transform: unset;
  396. right: 10px;
  397. bottom: 11px;
  398. }
  399. /deep/ .el-carousel__button {
  400. // 指示器按钮
  401. width: 10px;
  402. height: 10px;
  403. border: none;
  404. background: #fff;
  405. opacity: 1;
  406. }
  407. /deep/ .is-active .el-carousel__button {
  408. // 指示器激活按钮
  409. background: #c82200;
  410. width: 10px;
  411. height: 10px;
  412. opacity: 1;
  413. }
  414. /deep/ .el-carousel__container {
  415. height: 100%;
  416. }
  417. }
  418. .custom-indicator button {
  419. background-color: #fff;
  420. opacity: 1;
  421. width: 8px;
  422. height: 8px;
  423. }
  424. .custom-indicator button.is-active {
  425. background-color: #c82200;
  426. width: 58px;
  427. opacity: 1;
  428. }
  429. }
  430. //样式3 end---------------------------------------->
  431. //样式4 start ---------------------------------------->
  432. .swiperStyle4 {
  433. width: 100%;
  434. height: 405px;
  435. position: relative;
  436. img {
  437. width: 100%;
  438. height: 405px;
  439. }
  440. .swiper_dot1 {
  441. display: block;
  442. width: 100%;
  443. line-height: 60px;
  444. height: 60px;
  445. color: #fff;
  446. font-size: 24px;
  447. text-indent: 20px;
  448. position: absolute;
  449. bottom: 0;
  450. left: 0;
  451. z-index: 10;
  452. box-sizing: border-box;
  453. padding-right: 244px;
  454. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 33%, rgba(0, 0, 0, 0) 100%);
  455. }
  456. .el-carousel {
  457. /deep/.el-carousel__arrow i {
  458. font-size: 16px !important;
  459. }
  460. /deep/.el-carousel__arrow--left {
  461. left: 20px;
  462. width: 36px;
  463. height: 36px;
  464. color: #eee;
  465. background: rgba(0, 0, 0, 0.5);
  466. border-radius: 50%;
  467. position: absolute;
  468. border: none;
  469. border-radius: 50%;
  470. }
  471. /deep/.el-carousel__arrow--right {
  472. right: 20px;
  473. width: 36px;
  474. height: 36px;
  475. color: #eee;
  476. background: rgba(0, 0, 0, 0.5);
  477. position: absolute;
  478. border: none;
  479. border-radius: 50%;
  480. }
  481. /deep/ .el-carousel__indicators {
  482. // 指示器
  483. left: unset;
  484. transform: unset;
  485. right: 10px;
  486. bottom: 11px;
  487. }
  488. /deep/ .el-carousel__button {
  489. // 指示器按钮
  490. width: 10px;
  491. height: 10px;
  492. border: none;
  493. background: #fff;
  494. opacity: 1;
  495. }
  496. /deep/ .is-active .el-carousel__button {
  497. // 指示器激活按钮
  498. background: #fe8f00;
  499. width: 10px;
  500. height: 10px;
  501. opacity: 1;
  502. }
  503. /deep/ .el-carousel__container {
  504. height: 100%;
  505. }
  506. }
  507. .custom-indicator button {
  508. background-color: #fff;
  509. opacity: 1;
  510. width: 8px;
  511. height: 8px;
  512. }
  513. .custom-indicator button.is-active {
  514. background-color: #fe8f00;
  515. width: 58px;
  516. opacity: 1;
  517. }
  518. }
  519. //样式4 end ---------------------------------------->
  520. //样式5 start ------------------------------------->
  521. .swiperStyle5 {
  522. position: relative;
  523. .roll_num_box {
  524. position: absolute;
  525. z-index: 2;
  526. right: 35px;
  527. bottom: 5px;
  528. height: 60px;
  529. line-height: 60px;
  530. color: #fff;
  531. font-size: 20px;
  532. .roll_num_box_new {
  533. font-size: 20px;
  534. }
  535. }
  536. .dot1 {
  537. display: block;
  538. word-break: keep-all;
  539. white-space: nowrap;
  540. overflow: hidden;
  541. text-overflow: ellipsis;
  542. }
  543. .swiper_dot1 {
  544. display: block;
  545. width: 100%;
  546. line-height: 60px;
  547. height: 60px;
  548. color: #fff;
  549. font-size: 18px;
  550. text-indent: 20px;
  551. position: absolute;
  552. bottom: 0;
  553. left: 0;
  554. z-index: 10;
  555. box-sizing: border-box;
  556. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 33%, rgba(0, 0, 0, 0) 100%);
  557. }
  558. .el-carousel {
  559. :deep(.el-carousel__arrow i) {
  560. font-size: 33px !important;
  561. }
  562. .roll_1_box {
  563. position: relative;
  564. }
  565. :deep(.el-carousel__arrow--left) {
  566. left: 20px;
  567. width: 30px;
  568. height: 56px;
  569. color: #eee;
  570. background: rgba(0, 0, 0, 0.5);
  571. border-radius: 50%;
  572. position: absolute;
  573. border: none;
  574. border-radius: 4px;
  575. }
  576. :deep(.el-icon-arrow-left:before) {
  577. font-size: 24px;
  578. line-height: 56px;
  579. }
  580. :deep(.el-carousel__arrow--right) {
  581. right: 20px;
  582. width: 30px;
  583. height: 56px;
  584. color: #eee;
  585. background: #00000080;
  586. position: absolute;
  587. border: none;
  588. border-radius: 4px;
  589. }
  590. :deep(.el-icon-arrow-right:before) {
  591. font-size: 24px;
  592. line-height: 56px;
  593. }
  594. :deep(.el-carousel__indicators) {
  595. display: none;
  596. }
  597. }
  598. .custom-indicator button {
  599. background-color: #fff;
  600. opacity: 1;
  601. width: 8px;
  602. height: 8px;
  603. }
  604. .custom-indicator button.is-active {
  605. background-color: #c82200;
  606. width: 58px;
  607. opacity: 1;
  608. }
  609. }
  610. //样式5 end ------------------------------------->
  611. //样式6 start ------------------------------------->
  612. .swiperStyle6 {
  613. position: relative;
  614. .roll_num_box {
  615. position: absolute;
  616. z-index: 2;
  617. right: 35px;
  618. bottom: 5px;
  619. height: 60px;
  620. line-height: 60px;
  621. color: #fff;
  622. font-size: 20px;
  623. .roll_num_box_new {
  624. font-size: 20px;
  625. }
  626. }
  627. .dot1 {
  628. display: block;
  629. word-break: keep-all;
  630. white-space: nowrap;
  631. overflow: hidden;
  632. text-overflow: ellipsis;
  633. }
  634. .swiper_dot1 {
  635. display: block;
  636. width: 100%;
  637. line-height: 60px;
  638. height: 60px;
  639. color: #fff;
  640. font-size: 18px;
  641. text-indent: 10px;
  642. position: absolute;
  643. bottom: 0;
  644. left: 0;
  645. z-index: 10;
  646. box-sizing: border-box;
  647. background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 33%, rgba(0, 0, 0, 0) 100%);
  648. .title {
  649. display: inline-block;
  650. width: 490px;
  651. }
  652. }
  653. .el-carousel {
  654. :deep(.el-carousel__arrow i) {
  655. font-size: 33px !important;
  656. }
  657. .roll_1_box {
  658. position: relative;
  659. }
  660. :deep(.el-carousel__arrow--left) {
  661. left: 20px;
  662. width: 36px;
  663. height: 36px;
  664. color: #eee;
  665. background: rgba(0, 0, 0, 0.5);
  666. border-radius: 50%;
  667. position: absolute;
  668. border: none;
  669. border-radius: 50%;
  670. }
  671. :deep(.el-icon-arrow-left:before) {
  672. font-size: 24px;
  673. line-height: 56px;
  674. }
  675. :deep(.el-carousel__arrow--right) {
  676. right: 20px;
  677. width: 36px;
  678. height: 36px;
  679. color: #eee;
  680. background: rgba(0, 0, 0, 0.5);
  681. position: absolute;
  682. border: none;
  683. border-radius: 50%;
  684. }
  685. :deep(.el-icon-arrow-right:before) {
  686. font-size: 24px;
  687. line-height: 56px;
  688. }
  689. :deep(.el-carousel__indicators) {
  690. // 指示器
  691. left: unset;
  692. transform: unset;
  693. right: 10px;
  694. bottom: 11px;
  695. }
  696. :deep(.el-carousel__button) {
  697. // 指示器按钮
  698. width: 26px;
  699. height: 5px;
  700. border: none;
  701. background: #fff;
  702. opacity: 1;
  703. border-radius: 4px;
  704. }
  705. :deep(.is-active .el-carousel__button) {
  706. // 指示器激活按钮
  707. background: #154079;
  708. width: 26px;
  709. height: 5px;
  710. opacity: 1;
  711. }
  712. :deep(.el-carousel__container) {
  713. height: 100%;
  714. }
  715. }
  716. .custom-indicator button {
  717. background-color: #fff;
  718. opacity: 1;
  719. width: 8px;
  720. height: 8px;
  721. }
  722. .custom-indicator button.is-active {
  723. background-color: #154079;
  724. width: 58px;
  725. opacity: 1;
  726. }
  727. }
  728. //样式6 end ------------------------------------->
  729. //样式7 start ------------------------------------->
  730. .swiperStyle7 {
  731. position: relative;
  732. img {
  733. width: 100%;
  734. height: 100%;
  735. display: block;
  736. }
  737. .roll_num_box {
  738. position: absolute;
  739. z-index: 2;
  740. right: 35px;
  741. bottom: 5px;
  742. height: 60px;
  743. line-height: 60px;
  744. color: #fff;
  745. font-size: 20px;
  746. .roll_num_box_new {
  747. font-size: 20px;
  748. }
  749. }
  750. .dot1 {
  751. display: block;
  752. word-break: keep-all;
  753. white-space: nowrap;
  754. overflow: hidden;
  755. text-overflow: ellipsis;
  756. }
  757. .swiper_dot1 {
  758. display: block;
  759. width: 100%;
  760. line-height: 60px;
  761. height: 60px;
  762. color: #fff;
  763. font-size: 18px;
  764. text-indent: 20px;
  765. position: absolute;
  766. bottom: 0;
  767. left: 0;
  768. z-index: 10;
  769. box-sizing: border-box;
  770. background: rgba(0, 0, 0, 0.6);
  771. box-sizing: border-box;
  772. padding-right: 40%;
  773. }
  774. .el-carousel {
  775. /deep/.el-carousel__arrow i {
  776. font-size: 33px !important;
  777. }
  778. .roll_1_box {
  779. position: relative;
  780. }
  781. /deep/.el-carousel__arrow--left {
  782. left: 20px;
  783. width: 34px;
  784. height: 80px;
  785. color: #eee;
  786. background: rgba(0, 0, 0, 0.5);
  787. border-radius: 50%;
  788. position: absolute;
  789. border: none;
  790. border-radius: 0px;
  791. }
  792. /deep/.el-icon-arrow-left:before {
  793. font-size: 24px;
  794. line-height: 56px;
  795. }
  796. /deep/.el-carousel__arrow--right {
  797. right: 20px;
  798. width: 34px;
  799. height: 80px;
  800. color: #eee;
  801. background: #00000080;
  802. position: absolute;
  803. border: none;
  804. border-radius: 0px;
  805. }
  806. /deep/.el-icon-arrow-right:before {
  807. font-size: 24px;
  808. line-height: 56px;
  809. }
  810. /deep/ .el-carousel__indicators {
  811. // 指示器
  812. left: unset;
  813. transform: unset;
  814. right: 10px;
  815. bottom: 11px;
  816. }
  817. /deep/ .el-carousel__button {
  818. // 指示器按钮
  819. width: 6px;
  820. height: 6px;
  821. border: none;
  822. background: #fff;
  823. opacity: 1;
  824. }
  825. /deep/ .is-active .el-carousel__button {
  826. // 指示器激活按钮
  827. background: #9C130A;
  828. width: 6px;
  829. height: 6px;
  830. opacity: 1;
  831. border-radius: 0px;
  832. }
  833. /deep/ .el-carousel__container {
  834. height: 100%;
  835. }
  836. }
  837. .custom-indicator button {
  838. background-color: #fff;
  839. opacity: 1;
  840. width: 8px;
  841. height: 8px;
  842. }
  843. .custom-indicator button.is-active {
  844. background-color: #c82200;
  845. width: 58px;
  846. opacity: 1;
  847. }
  848. /deep/ .el-carousel__indicator--horizontal {
  849. padding: 12px 5px;
  850. }
  851. }
  852. //样式7 end ------------------------------------->
  853. </style>