index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961
  1. <template>
  2. <div id="home">
  3. <el-carousel height="500px" loop>
  4. <el-carousel-item v-for="(item, index) in BannerList1" :key="index">
  5. <img
  6. @click="jumpUrl(item.JumpUrl)"
  7. style="width: 100%; height: 100%"
  8. :src="$methods.splitImgHost(item.ImageUrl)"
  9. />
  10. </el-carousel-item>
  11. </el-carousel>
  12. <!-- <div class="home_img">
  13. <img src="@/assets/images/banner.png" alt="" />
  14. </div> -->
  15. <div
  16. style="width: 1200px; background-color: #fff; padding: 28px"
  17. class="center_1200"
  18. >
  19. <h2 class="h2s">最新消息</h2>
  20. <ul class="uls">
  21. <li
  22. class="lis"
  23. v-for="(item, index) in tableData"
  24. :key="index"
  25. @click="jumpInfo(item)"
  26. >
  27. <div class="top">
  28. {{ item.Title }}
  29. </div>
  30. <div class="foot">
  31. <div class="left">
  32. {{ $methods.onlyFormaHao(item.CreateTime, false) }}
  33. </div>
  34. <div class="right">查看详情</div>
  35. </div>
  36. </li>
  37. </ul>
  38. <div class="novt_box">
  39. <el-carousel height="350px" style="width: 560px" class="carousel">
  40. <el-carousel-item v-for="(item, index) in BannerList2" :key="index">
  41. <img
  42. @click="jumpUrl(item.JumpUrl)"
  43. style="width: 100%; height: 100%"
  44. :src="$methods.splitImgHost(item.ImageUrl)"
  45. alt=""
  46. />
  47. <h3>
  48. <span>{{ item.Title }}</span
  49. ><span>{{ $methods.onlyFormaHao(item.CreateTime, false) }}</span>
  50. </h3>
  51. </el-carousel-item>
  52. </el-carousel>
  53. <el-tabs
  54. type="border-card"
  55. style="width: 560px; height: 350px"
  56. @tab-click="handleClick"
  57. v-model="activeName"
  58. >
  59. <el-tab-pane label="通知公告" class="tabBox" :lazy="true" name="d1">
  60. <ul>
  61. <el-empty
  62. :image-size="100"
  63. description="暂无数据"
  64. v-if="notList.length === 0"
  65. ></el-empty>
  66. <li
  67. class="li_list"
  68. v-for="(item, index) in notList"
  69. :key="index"
  70. @click="jumpInfo(item)"
  71. >
  72. <i>●</i>
  73. <div class="title_li">{{ item.Title }}</div>
  74. <div class="time_li">
  75. {{ $methods.onlyFormaHao(item.NewsCreateTime, false) }}
  76. </div>
  77. </li>
  78. </ul>
  79. <div style="text-align: center" v-if="notList.length > 0">
  80. <el-pagination
  81. class="paginations"
  82. @current-change="handleCurrentChange"
  83. :current-page.sync="formData.pageindex"
  84. :page-size="formData.pagesize"
  85. layout="total, prev, pager, next"
  86. :total="total"
  87. >
  88. </el-pagination>
  89. </div>
  90. </el-tab-pane>
  91. <el-tab-pane label="协会动态" class="tabBox" :lazy="true" name="d2">
  92. <ul>
  93. <el-empty
  94. :image-size="100"
  95. description="暂无数据"
  96. v-if="list1.length === 0"
  97. ></el-empty>
  98. <li
  99. class="li_list"
  100. v-for="(item, index) in list1"
  101. :key="index"
  102. @click="jumpInfo(item)"
  103. >
  104. <i>●</i>
  105. <div class="title_li">{{ item.Title }}</div>
  106. <div class="time_li">
  107. {{ $methods.onlyFormaHao(item.NewsCreateTime, false) }}
  108. </div>
  109. </li>
  110. </ul>
  111. <div style="text-align: center" v-if="list1.length > 0">
  112. <el-pagination
  113. class="paginations"
  114. @current-change="handleCurrentChange1"
  115. :current-page.sync="formData1.pageindex"
  116. :page-size="formData1.pagesize"
  117. layout="total, prev, pager, next"
  118. :total="total1"
  119. >
  120. </el-pagination>
  121. </div>
  122. </el-tab-pane>
  123. <el-tab-pane label="行业新闻" class="tabBox" :lazy="true" name="d3">
  124. <ul>
  125. <el-empty
  126. :image-size="100"
  127. description="暂无数据"
  128. v-if="list2.length === 0"
  129. ></el-empty>
  130. <li
  131. class="li_list"
  132. v-for="(item, index) in list2"
  133. :key="index"
  134. @click="jumpInfo(item)"
  135. >
  136. <i>●</i>
  137. <div class="title_li">{{ item.Title }}</div>
  138. <div class="time_li">
  139. {{ $methods.onlyFormaHao(item.NewsCreateTime, false) }}
  140. </div>
  141. </li>
  142. </ul>
  143. <div style="text-align: center" v-if="list2.length > 0">
  144. <el-pagination
  145. class="paginations"
  146. @current-change="handleCurrentChange2"
  147. :current-page.sync="formData2.pageindex"
  148. :page-size="formData2.pagesize"
  149. layout="total, prev, pager, next"
  150. :total="total2"
  151. >
  152. </el-pagination>
  153. </div>
  154. </el-tab-pane>
  155. <el-tab-pane label="政策法规" class="tabBox" :lazy="true" name="d4">
  156. <ul>
  157. <el-empty
  158. :image-size="100"
  159. description="暂无数据"
  160. v-if="list3.length === 0"
  161. ></el-empty>
  162. <li
  163. class="li_list"
  164. v-for="(item, index) in list3"
  165. :key="index"
  166. @click="jumpInfo(item)"
  167. >
  168. <i>●</i>
  169. <div class="title_li">{{ item.Title }}</div>
  170. <div class="time_li">
  171. {{ $methods.onlyFormaHao(item.NewsCreateTime, false) }}
  172. </div>
  173. </li>
  174. </ul>
  175. <div style="text-align: center" v-if="list3.length > 0">
  176. <el-pagination
  177. class="paginations"
  178. @current-change="handleCurrentChange3"
  179. :current-page.sync="formData3.pageindex"
  180. :page-size="formData3.pagesize"
  181. layout="total, prev, pager, next"
  182. :total="total3"
  183. >
  184. </el-pagination>
  185. </div>
  186. </el-tab-pane>
  187. </el-tabs>
  188. </div>
  189. <div class="margin_28">
  190. <div
  191. class="small_box"
  192. v-for="(item, index) in smallBoxList"
  193. :key="index"
  194. @click="
  195. item.label === '入会申请'
  196. ? openJumpVip()
  197. : jumpPage({ label: item.label })
  198. "
  199. >
  200. <img :src="item.img" alt="" />
  201. <p>{{ item.label }}</p>
  202. </div>
  203. </div>
  204. <div class="vipBox">
  205. <div class="top">
  206. <span class="left">会员天地</span
  207. ><span class="right" @click="jumpPage({ label: '会员天地' })"
  208. >更多+</span
  209. >
  210. </div>
  211. <div class="flot_s">
  212. <div class="liOs" v-for="(item, index) in list4" :key="index">
  213. <img
  214. :src="$methods.splitImgHost(item.NewsImg)"
  215. @click="jumpInfo(item)"
  216. />
  217. </div>
  218. </div>
  219. <div style="text-align: center" v-if="list4.length > 0">
  220. <el-pagination
  221. class="paginations"
  222. @current-change="handleCurrentChange4"
  223. :current-page.sync="formData4.pageindex"
  224. :page-size="formData4.pagesize"
  225. layout="total, prev, pager, next"
  226. :total="total4"
  227. >
  228. </el-pagination>
  229. </div>
  230. </div>
  231. <div class="vipBox">
  232. <div class="top">
  233. <span class="left">优秀案例</span>
  234. <!-- <span class="right" @click="jumpPage({ label: '优秀案例' })"
  235. >更多+</span
  236. > -->
  237. </div>
  238. <el-empty
  239. :image-size="100"
  240. description="暂无数据"
  241. v-if="list5.length === 0"
  242. ></el-empty>
  243. <div class="swiperBox" v-else>
  244. <i
  245. v-if="list5.length > 4"
  246. class="el-icon-arrow-left left"
  247. @click="leftJump"
  248. ></i>
  249. <swiper
  250. ref="swiper"
  251. @swiper="onSwiper"
  252. @slideChange="onSlideChange"
  253. v-bind:options="swiperOptions"
  254. >
  255. <swiper-slide v-for="(item, index) in list5" :key="index">
  256. <div
  257. style="
  258. width: 100%;
  259. height: 170px;
  260. display: flex;
  261. align-items: center;
  262. "
  263. >
  264. <img
  265. style="width: 100%; max-height: 170px"
  266. :src="$methods.splitImgHost(item.NewsImg)"
  267. alt=""
  268. />
  269. </div>
  270. <p class="p_text">
  271. {{ item.Title }}
  272. </p>
  273. </swiper-slide>
  274. </swiper>
  275. <i
  276. v-if="list5.length > 4"
  277. class="el-icon-arrow-right right"
  278. @click="rightJump"
  279. ></i>
  280. </div>
  281. </div>
  282. </div>
  283. <div class="center_1200" style="padding: 20px 0px">
  284. <el-divider content-position="center"
  285. ><span style="color: #2453af; font-size: 22px; font-weight: bold"
  286. >友情链接</span
  287. ></el-divider
  288. >
  289. <div style="text-align: center">
  290. <span
  291. class="float_link"
  292. v-for="(item, index) in lists"
  293. :key="index"
  294. @click="jumpWL(item)"
  295. >
  296. {{ item.Title }}
  297. </span>
  298. </div>
  299. <!-- <Scroller :lists="lists"></Scroller> -->
  300. </div>
  301. <membership ref="membership"></membership>
  302. </div>
  303. </template>
  304. <script>
  305. import membership from "@/components/membership";
  306. import "quill/dist/quill.core.css";
  307. import { Swiper, SwiperSlide } from "vue-awesome-swiper";
  308. import "swiper/css/swiper.css";
  309. import Scroller from "@/components/Scroller/index.vue";
  310. export default {
  311. components: {
  312. Swiper,
  313. SwiperSlide,
  314. Scroller,
  315. membership,
  316. },
  317. data() {
  318. let self = this;
  319. return {
  320. smallBoxList: [
  321. {
  322. img: require("@/assets/images/icon_入会申请@2x.png"),
  323. label: "入会申请",
  324. },
  325. {
  326. img: require("@/assets/images/icon_专家智库@2x.png"),
  327. label: "专家智库",
  328. },
  329. {
  330. img: require("@/assets/images/icon_协会期刊@2x.png"),
  331. label: "协会期刊",
  332. },
  333. {
  334. img: require("@/assets/images/icon_鉴定评优@2x.png"),
  335. label: "鉴定评优",
  336. },
  337. {
  338. img: require("@/assets/images/icon_信用管理@2x.png"),
  339. label: "信用管理",
  340. },
  341. {
  342. img: require("@/assets/images/icon_行业统计@2x.png"),
  343. label: "行业统计",
  344. },
  345. ],
  346. swiperOptions: {
  347. slidesPerView: 4,
  348. spaceBetween: 20,
  349. loop: false,
  350. autoplay: {
  351. delay: 3000,
  352. disableOnInteraction: false,
  353. },
  354. on: {
  355. click: function () {
  356. // 这里有坑,需要注意的是:this 指向的是 swpier 实例,而不是当前的 vue, 因此借助 vm,来调用 methods 里的方法
  357. // console.log(this); // -> Swiper
  358. // 当前活动块的索引,与activeIndex不同的是,在loop模式下不会将 复制的块 的数量计算在内。
  359. let initIndex =
  360. this.clickedIndex - this.activeIndex + this.realIndex;
  361. self.handleClickSlide(initIndex);
  362. },
  363. },
  364. },
  365. notList: [],
  366. total: 0,
  367. total1: 0,
  368. total2: 0,
  369. total3: 0,
  370. total4: 0,
  371. total5: 0,
  372. formData: {
  373. pagesize: 6, //每页内容条数
  374. pageindex: 1, //当前第几页
  375. },
  376. formData1: {
  377. pagesize: 5, //每页内容条数
  378. pageindex: 1, //当前第几页
  379. },
  380. formData2: {
  381. pagesize: 5, //每页内容条数
  382. pageindex: 1, //当前第几页
  383. },
  384. formData3: {
  385. pagesize: 5, //每页内容条数
  386. pageindex: 1, //当前第几页
  387. },
  388. formData4: {
  389. pagesize: 12, //每页内容条数
  390. pageindex: 1, //当前第几页
  391. },
  392. formData5: {
  393. pagesize: 99, //每页内容条数
  394. pageindex: 1, //当前第几页
  395. },
  396. lists: [], //友情链接
  397. list1: [], //协会动态列表
  398. list2: [], //行业新闻列表
  399. list3: [], //政策法规列表
  400. list4: [], //会员天地列表
  401. list5: [], //优秀案例列表
  402. BannerList1: [], //Banner1列表
  403. BannerList2: [], //Banner2列表
  404. tableData: [], //最新3条文章
  405. activeName: "d1",
  406. };
  407. },
  408. created() {
  409. this.getInit();
  410. },
  411. methods: {
  412. handleClick(tab, event) {
  413. switch (tab.name) {
  414. case "d1":
  415. this.getList();
  416. break;
  417. case "d2":
  418. this.getList1();
  419. break;
  420. case "d3":
  421. this.getList2();
  422. break;
  423. case "d4":
  424. this.getList3();
  425. break;
  426. default:
  427. break;
  428. }
  429. },
  430. jumpUrl(url) {
  431. if (url) {
  432. window.open(url, "_blank");
  433. }
  434. return;
  435. },
  436. jumpWL(e) {
  437. window.open(e.Friendlinks, "_blank");
  438. return;
  439. },
  440. openJumpVip() {
  441. this.$refs.membership.showInit();
  442. },
  443. jumpPage(e) {
  444. this.$api
  445. .XfWebApiGetMenuModel({ menuid: 0, label: e.label })
  446. .then((res) => {
  447. if (res.Data) {
  448. this.$router.push({
  449. path: `menuList?ParentId=${res.Data.ParentId}&MenuId=${res.Data.MenuId}`,
  450. });
  451. return;
  452. } else {
  453. this.$message.error("请联系管理员新增对应路由");
  454. return;
  455. }
  456. });
  457. },
  458. leftJump() {
  459. this.$refs.swiper.$swiper.slidePrev();
  460. },
  461. rightJump() {
  462. this.$refs.swiper.$swiper.slideNext();
  463. },
  464. handleClickSlide(index) {
  465. this.jumpInfo(this.list5[index]);
  466. },
  467. onSwiper(swiper) {
  468. console.log(swiper);
  469. },
  470. onSlideChange() {},
  471. getInit() {
  472. this.getNewPositionList(); // 首页通告等
  473. this.getBannerList(); // 获取首页广告轮播Banner列表
  474. this.getWebFriendlinks(); // 获取友情链接列表
  475. this.newList(); //获取最新3条文章
  476. },
  477. newList() {
  478. this.$api.XfWebApiGetNewsReList().then((res) => {
  479. this.tableData = res.Data.List || [];
  480. });
  481. },
  482. // 首页通告等
  483. getNewPositionList() {
  484. // seat:0全部,1通知通告,3协会动态,4行业新闻,5政策法规,6会员天地,7首页简介,8优秀案例
  485. this.getList();
  486. this.getList4();
  487. this.getList5();
  488. },
  489. //通知列表
  490. getList() {
  491. this.$api
  492. .XfWebApiGetNewPositionList({ seat: 1, ...this.formData })
  493. .then((res) => {
  494. this.notList = res.Data.List || [];
  495. this.total = res.Data.TotalCount;
  496. });
  497. },
  498. //协会动态
  499. getList1() {
  500. this.$api
  501. .XfWebApiGetNewPositionList({ seat: 3, ...this.formData1 })
  502. .then((res) => {
  503. this.list1 = res.Data.List || [];
  504. this.total1 = res.Data.TotalCount;
  505. });
  506. },
  507. //行业新闻
  508. getList2() {
  509. this.$api
  510. .XfWebApiGetNewPositionList({ seat: 4, ...this.formData2 })
  511. .then((res) => {
  512. this.list2 = res.Data.List || [];
  513. this.total2 = res.Data.TotalCount;
  514. });
  515. },
  516. //政策法规
  517. getList3() {
  518. this.$api
  519. .XfWebApiGetNewPositionList({ seat: 5, ...this.formData3 })
  520. .then((res) => {
  521. this.list3 = res.Data.List || [];
  522. this.total3 = res.Data.TotalCount;
  523. });
  524. },
  525. //会员天地
  526. getList4() {
  527. this.$api
  528. .XfWebApiGetNewPositionList({ seat: 6, ...this.formData4 })
  529. .then((res) => {
  530. this.list4 = res.Data.List || [];
  531. this.total4 = res.Data.TotalCount;
  532. });
  533. },
  534. //会员天地
  535. getList5() {
  536. this.$api
  537. .XfWebApiGetNewPositionList({ seat: 8, ...this.formData5 })
  538. .then((res) => {
  539. this.list5 = res.Data.List || [];
  540. this.total5 = res.Data.TotalCount;
  541. });
  542. },
  543. // 获取首页广告轮播Banner列表
  544. getBannerList() {
  545. //type:1首页2新闻3飘窗广告
  546. this.$api.XfWebApiGetBannerList({ type: 1 }).then((res) => {
  547. this.BannerList1 = res.Data || [];
  548. });
  549. this.$api.XfWebApiGetBannerList({ type: 2 }).then((res) => {
  550. this.BannerList2 = res.Data || [];
  551. });
  552. },
  553. // 获取友情链接列表
  554. getWebFriendlinks() {
  555. this.$api.XfWebApiGetWebFriendlinks().then((res) => {
  556. this.lists = res.Data;
  557. });
  558. },
  559. handleCurrentChange(e) {
  560. this.formData.pageindex = e;
  561. this.getList();
  562. },
  563. handleCurrentChange1(e) {
  564. this.formData1.pageindex = e;
  565. this.getList1();
  566. },
  567. handleCurrentChange2(e) {
  568. this.formData2.pageindex = e;
  569. this.getList2();
  570. },
  571. handleCurrentChange3(e) {
  572. this.formData3.pageindex = e;
  573. this.getList3();
  574. },
  575. handleCurrentChange4(e) {
  576. this.formData4.pageindex = e;
  577. this.getList4();
  578. },
  579. //跳转详情页
  580. jumpInfo(e) {
  581. this.$router.push({
  582. path: "info",
  583. query: {
  584. MenuId: e.MenuId,
  585. NewsId: e.NewsId,
  586. },
  587. });
  588. },
  589. },
  590. };
  591. </script>
  592. <style lang="scss" scoped>
  593. .float_link {
  594. cursor: pointer;
  595. font-size: 16px;
  596. color: #6b6b6b;
  597. margin-right: 16px;
  598. margin-bottom: 6px;
  599. display: inline-block;
  600. }
  601. ::v-deep .carousel .el-carousel__indicators--horizontal {
  602. display: none;
  603. }
  604. .home_img {
  605. height: 451px;
  606. img {
  607. width: 100%;
  608. height: 100%;
  609. }
  610. }
  611. .p_text {
  612. word-break: break-all;
  613. text-overflow: ellipsis;
  614. overflow: hidden;
  615. display: -webkit-box;
  616. -webkit-line-clamp: 2;
  617. -webkit-box-orient: vertical;
  618. text-align: center;
  619. }
  620. .h2s {
  621. font-size: 26px;
  622. font-weight: 800;
  623. color: #333333;
  624. margin-bottom: 28px;
  625. }
  626. .uls {
  627. // flex: 1;
  628. display: flex;
  629. align-items: center;
  630. justify-content: space-between;
  631. .lis {
  632. height: 131px;
  633. border-top: 5px solid #2453af;
  634. border-bottom: 1px solid #7688a8;
  635. width: 360px;
  636. user-select: none;
  637. cursor: pointer;
  638. padding: 20px 30px 16px 0px;
  639. display: flex;
  640. flex-direction: column;
  641. justify-content: space-between;
  642. .top {
  643. color: #4f4f4f;
  644. font-size: 18px;
  645. font-weight: bold;
  646. margin-bottom: 14px;
  647. word-break: break-all;
  648. text-overflow: ellipsis;
  649. overflow: hidden;
  650. display: -webkit-box;
  651. -webkit-line-clamp: 2;
  652. -webkit-box-orient: vertical;
  653. }
  654. .foot {
  655. display: flex;
  656. align-items: center;
  657. justify-content: space-between;
  658. font-size: 14px;
  659. .left {
  660. color: #828282;
  661. }
  662. .right {
  663. color: #2453af;
  664. user-select: none;
  665. cursor: pointer;
  666. }
  667. }
  668. }
  669. }
  670. .margin_28 {
  671. margin: 28px 0px;
  672. display: flex;
  673. align-items: center;
  674. justify-content: space-between;
  675. & > .small_box {
  676. user-select: none;
  677. cursor: pointer;
  678. width: 120px;
  679. text-align: center;
  680. img {
  681. width: 76px;
  682. height: 76px;
  683. margin-bottom: 12px;
  684. }
  685. p {
  686. color: #333333;
  687. font-size: 24px;
  688. }
  689. }
  690. }
  691. .vipBox {
  692. margin-top: 32px;
  693. border: 1px solid #e0e0e0;
  694. .top {
  695. display: flex;
  696. align-items: center;
  697. justify-content: space-between;
  698. padding: 0px 24px;
  699. height: 46px;
  700. background-color: #2453af;
  701. & > .left {
  702. font-weight: bold;
  703. font-size: 20px;
  704. color: #fff;
  705. }
  706. & > .right {
  707. user-select: none;
  708. cursor: pointer;
  709. font-size: 15px;
  710. color: #fff;
  711. }
  712. }
  713. .swiperBox {
  714. padding: 28px 0px 40px;
  715. display: flex;
  716. align-items: center;
  717. justify-content: space-between;
  718. & > .left {
  719. color: #2453af;
  720. font-size: 28px;
  721. font-weight: bold;
  722. margin-right: 10px;
  723. cursor: pointer;
  724. user-select: none;
  725. }
  726. & > .swiper-container {
  727. flex: 1;
  728. }
  729. & > .right {
  730. color: #2453af;
  731. font-size: 28px;
  732. font-weight: bold;
  733. margin-left: 10px;
  734. cursor: pointer;
  735. user-select: none;
  736. }
  737. }
  738. .flot_s {
  739. display: flex;
  740. flex-wrap: wrap;
  741. .liOs {
  742. cursor: pointer;
  743. flex-shrink: 0;
  744. width: 190px;
  745. height: 100px;
  746. display: flex;
  747. align-items: center;
  748. justify-content: center;
  749. img {
  750. width: 160px;
  751. height: 75px;
  752. }
  753. }
  754. }
  755. }
  756. .el-carousel__item h3 {
  757. color: #fff;
  758. text-align: center;
  759. font-size: 16px;
  760. line-height: 36px;
  761. height: 36px;
  762. margin: 0;
  763. background-color: rgba(0, 0, 0, 0.5);
  764. position: absolute;
  765. bottom: 0;
  766. left: 0;
  767. right: 0;
  768. display: flex;
  769. align-items: center;
  770. justify-content: space-between;
  771. padding: 0px 12px;
  772. & > span {
  773. &:first-child {
  774. white-space: nowrap;
  775. overflow: hidden;
  776. text-overflow: ellipsis;
  777. }
  778. &:last-child {
  779. flex-shrink: 0;
  780. font-size: 14px;
  781. }
  782. }
  783. }
  784. .link_s {
  785. font-size: 22px;
  786. margin: 10px 0px;
  787. text-align: center;
  788. color: #333;
  789. font-weight: 400;
  790. }
  791. /*样式的话可以写*/
  792. .content_list {
  793. display: flex;
  794. justify-content: space-between;
  795. & > .content_list_box {
  796. width: 580px;
  797. .title {
  798. font-weight: bold;
  799. font-size: 22px;
  800. border-bottom: 1px solid #ddd;
  801. height: 55px;
  802. position: relative;
  803. line-height: 55px;
  804. margin-bottom: 30px;
  805. & > i {
  806. position: absolute;
  807. background: #2453af;
  808. width: 40px;
  809. height: 5px;
  810. left: 0px;
  811. bottom: -1px;
  812. }
  813. }
  814. .content_list_imgBox {
  815. position: relative;
  816. width: 580px;
  817. height: 270px;
  818. overflow: hidden;
  819. margin-bottom: 10px;
  820. cursor: pointer;
  821. & > img {
  822. width: 100%;
  823. height: 100%;
  824. transition: all 0.3s;
  825. }
  826. &:hover img {
  827. transform: scale(1.2);
  828. }
  829. & > .footers {
  830. position: absolute;
  831. z-index: 999;
  832. bottom: 0;
  833. right: 0;
  834. left: 0;
  835. height: 50px;
  836. background-color: rgba(0, 0, 0, 0.7);
  837. display: flex;
  838. align-items: center;
  839. padding: 0px 15px;
  840. color: #fff;
  841. font-size: 16px;
  842. & > .left {
  843. flex: 1;
  844. white-space: nowrap;
  845. overflow: hidden;
  846. text-overflow: ellipsis;
  847. }
  848. & > .right {
  849. flex-shrink: 0;
  850. word-spacing: 0px;
  851. font-size: 14px;
  852. }
  853. }
  854. }
  855. }
  856. }
  857. .footers_li {
  858. margin-bottom: 10px;
  859. cursor: pointer;
  860. height: 50px;
  861. display: flex;
  862. align-items: center;
  863. padding: 0px 15px;
  864. font-size: 16px;
  865. color: #333;
  866. transition: all 0.3s;
  867. &:hover {
  868. background-color: rgb(201, 0, 31);
  869. color: #fff;
  870. }
  871. & > .left {
  872. flex: 1;
  873. white-space: nowrap;
  874. overflow: hidden;
  875. text-overflow: ellipsis;
  876. }
  877. & > .right {
  878. flex-shrink: 0;
  879. word-spacing: 0px;
  880. font-size: 14px;
  881. }
  882. }
  883. .tabBox {
  884. display: flex;
  885. flex-direction: column;
  886. height: 280px;
  887. ul {
  888. flex: 1;
  889. overflow: auto;
  890. }
  891. .paginations {
  892. height: 32px;
  893. }
  894. }
  895. .li_list {
  896. list-style-type: lower-latin;
  897. display: flex;
  898. align-items: center;
  899. height: 41px;
  900. font-size: 15px;
  901. color: #666;
  902. cursor: pointer;
  903. transition: all 0.3s;
  904. &:hover {
  905. color: #2453af;
  906. }
  907. & > i {
  908. transform: scale(0.8);
  909. color: #2453af;
  910. margin-right: 6px;
  911. }
  912. & > .title_li {
  913. flex: 1;
  914. white-space: nowrap;
  915. overflow: hidden;
  916. text-overflow: ellipsis;
  917. padding-right: 10px;
  918. }
  919. & > .time_li {
  920. font-size: 14px;
  921. word-spacing: 0px;
  922. }
  923. }
  924. .novt_box {
  925. display: flex;
  926. align-items: center;
  927. justify-content: space-between;
  928. margin-top: 40px;
  929. margin-bottom: 40px;
  930. }
  931. .el-carousel__item:nth-child(2n) {
  932. background-color: #99a9bf;
  933. }
  934. ::v-deep .el-tabs__nav-scroll {
  935. border-bottom: 2px solid #2453af;
  936. }
  937. .el-carousel__item:nth-child(2n + 1) {
  938. background-color: #d3dce6;
  939. }
  940. ::v-deep .el-tabs--border-card > .el-tabs__header {
  941. background: #e9e9e9;
  942. border-bottom: none;
  943. color: #4f4f4f;
  944. }
  945. ::v-deep .el-tabs--border-card > .el-tabs__header .el-tabs__item {
  946. color: #4f4f4f;
  947. // font-weight: bold;
  948. // background-color: #fff;
  949. border: 1px solid transparent;
  950. }
  951. ::v-deep .el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
  952. color: #fff;
  953. font-weight: bold;
  954. background-color: #2453af;
  955. }
  956. </style>