HomeIndex.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. <!--
  2. * @Description: 首页
  3. * @Author: 空白格
  4. * @Date: 2022-08-10 11:26:40
  5. * @LastEditors: 空白格
  6. * @LastEditTime: 2022-08-22 10:22:23
  7. * @FilePath: \veterans_client_web\src\views\Home\HomeIndex.vue
  8. * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
  9. -->
  10. <template>
  11. <div class="home app-main">
  12. <!-- 顶部轮播 -->
  13. <header-banner />
  14. <!-- 菜单导航 -->
  15. <menu-navigation :scrollTop="scrollTop" />
  16. <div class="home-main" :class="{ 'home-main-top': scrollTop > 473 }">
  17. <!-- 新闻最新一条 -->
  18. <div class="home-main-latest">
  19. <div class="home-main-latest-content">
  20. <div class="hmlc-title">{{ latestNews.artTitle }}</div>
  21. <div class="hmlc-content" v-html="latestNews.artContent"></div>
  22. </div>
  23. </div>
  24. <div class="home-main-box">
  25. <!-- 新闻部分 -->
  26. <el-row :gutter="0" class="home-main-news">
  27. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  28. <div class="home-main-news-left">
  29. <el-carousel :interval="5000" arrow="never" height="395px">
  30. <el-carousel-item
  31. v-for="(item, index) in newsList"
  32. :key="index"
  33. >
  34. <el-image
  35. class="image"
  36. :src="
  37. item.artImage ||
  38. require('@/assets/images/default-news.jpg')
  39. "
  40. fit="cover"
  41. >
  42. <div slot="placeholder" class="image-slot">
  43. 加载图片中<span class="dot">...</span>
  44. </div>
  45. <div slot="error" class="image-slot">
  46. <el-image
  47. class="image"
  48. :src="require('@/assets/images/default-news.jpg')"
  49. fit="fill"
  50. ></el-image>
  51. </div>
  52. </el-image>
  53. <div class="title">
  54. {{ item.artTitle || "" }}
  55. </div>
  56. </el-carousel-item>
  57. </el-carousel>
  58. </div>
  59. </el-col>
  60. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  61. <div class="home-main-news-right">
  62. <el-tabs v-model="activeName" @tab-click="handleClick">
  63. <el-tab-pane label="新闻动态" name="first">
  64. <ul class="news-infomation">
  65. <li
  66. class="news-infomation-item"
  67. v-for="(item, index) in newsList"
  68. :key="index"
  69. >
  70. <div class="title">{{ item.artTitle }}</div>
  71. <div class="date">
  72. {{ parseTime(item.createTime, "{y}-{m}-{d}") }}
  73. </div>
  74. </li>
  75. </ul>
  76. </el-tab-pane>
  77. <el-tab-pane label="通知公告" name="second">
  78. <ul class="news-infomation">
  79. <li
  80. class="news-infomation-item"
  81. v-for="(item, index) in noticeList"
  82. :key="index"
  83. >
  84. <div class="title">{{ item.content }}</div>
  85. <div class="date">
  86. {{ parseTime(item.releasTime, "{y}-{m}-{d}") }}
  87. </div>
  88. </li>
  89. </ul>
  90. </el-tab-pane>
  91. </el-tabs>
  92. <div class="more-btn" @click="jumpPage('/newscenter')">更多</div>
  93. </div>
  94. </el-col>
  95. </el-row>
  96. <!-- 政策咨询部分 -->
  97. <el-row :gutter="0" class="home-main-policy">
  98. <el-col :span="24" class="home-main-policy-carousel">
  99. <el-carousel :interval="5000" arrow="never" height="140px">
  100. <el-carousel-item
  101. v-for="(item, index) in policyObj.bannerList"
  102. :key="index"
  103. >
  104. <el-image
  105. class="image"
  106. :src="
  107. item.bannerUrl ||
  108. require('@/assets/images/default-news.jpg')
  109. "
  110. fit="cover"
  111. >
  112. <div slot="placeholder" class="image-slot">
  113. 加载图片中<span class="dot">...</span>
  114. </div>
  115. <div slot="error" class="image-slot">
  116. <el-image
  117. class="image"
  118. :src="require('@/assets/images/default-news.jpg')"
  119. fit="cover"
  120. ></el-image>
  121. </div>
  122. </el-image>
  123. <div class="title">
  124. {{ item.artTitle || "" }}
  125. </div>
  126. </el-carousel-item>
  127. </el-carousel>
  128. </el-col>
  129. <el-col
  130. :span="24"
  131. class="home-main-policy-content"
  132. v-loading="policyObj.loading"
  133. >
  134. <el-row :gutter="54">
  135. <el-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16">
  136. <div class="hmpc-left">
  137. <el-tabs
  138. v-model="policyObj.tabCur"
  139. @tab-click="handlePolicyClick"
  140. >
  141. <el-tab-pane
  142. v-for="(item, index) in policyObj.policyTypeList"
  143. :key="index"
  144. :label="item.label"
  145. :name="item.text"
  146. >
  147. <div
  148. class="hmpc-left-list"
  149. v-if="policyObj.policyList.length"
  150. >
  151. <div
  152. class="hmpc-left-list-item"
  153. v-for="(item, index) in policyObj.policyList"
  154. :key="index"
  155. >
  156. <div class="title">{{ item.artTitle }}</div>
  157. <div class="date">
  158. {{ parseTime(item.artPostTime, "{y}-{m}-{d}") }}
  159. </div>
  160. </div>
  161. </div>
  162. <el-empty description="列表为空" v-else></el-empty>
  163. </el-tab-pane>
  164. </el-tabs>
  165. </div>
  166. </el-col>
  167. <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
  168. <div class="hmpc-right">
  169. <div class="hmpc-right-title">退役军人服务</div>
  170. <div class="hmpc-right-list">
  171. <div
  172. class="hmpc-right-list-btn hmpc-right-list-btn-1"
  173. ></div>
  174. <div
  175. class="hmpc-right-list-btn hmpc-right-list-btn-2"
  176. ></div>
  177. <div
  178. class="hmpc-right-list-btn hmpc-right-list-btn-3"
  179. ></div>
  180. <div
  181. class="hmpc-right-list-btn hmpc-right-list-btn-4"
  182. ></div>
  183. <div
  184. class="hmpc-right-list-btn hmpc-right-list-btn-5"
  185. ></div>
  186. </div>
  187. </div>
  188. </el-col>
  189. </el-row>
  190. </el-col>
  191. </el-row>
  192. <!-- 院校合作 -->
  193. <institutional-cooperation />
  194. <!-- 企业合作 -->
  195. <enterprise-cooperation />
  196. </div>
  197. </div>
  198. <!-- 友情链接 -->
  199. <friendship-link />
  200. <!-- 右侧操作 -->
  201. <div class="home-operation">
  202. <div class="home-operation-fixed">
  203. <div class="home-operation-fixed-item home-operation-fixed-item-1">
  204. <el-image
  205. class="image"
  206. :src="require('@/assets/images/search-icon.svg')"
  207. ></el-image>
  208. </div>
  209. <div class="home-operation-fixed-item">
  210. <el-image
  211. class="image"
  212. :src="require('@/assets/images/email-icon.svg')"
  213. ></el-image>
  214. </div>
  215. <div class="home-operation-fixed-item">
  216. <el-image
  217. class="image"
  218. :src="require('@/assets/images/telephone-icon.svg')"
  219. ></el-image>
  220. </div>
  221. <div class="home-operation-fixed-item">
  222. <el-image
  223. class="image"
  224. :src="require('@/assets/images/weixin-icon.svg')"
  225. ></el-image>
  226. </div>
  227. <div
  228. class="home-operation-fixed-item home-operation-fixed-item-last"
  229. @click="backToTop"
  230. >
  231. <el-image
  232. class="image"
  233. :src="require('@/assets/images/top-icon.svg')"
  234. ></el-image>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </template>
  240. <script>
  241. import { parseTime } from "@/utils/utils";
  242. import {
  243. getBannerList,
  244. getNewsList,
  245. getNoticeList,
  246. getNewsData,
  247. } from "@/api/Home";
  248. import { getDictData } from "@/api/Dict";
  249. import { getPolicyData } from "@/api/PolicyAdvice";
  250. import HeaderBanner from "./components/HeaderBanner";
  251. import MenuNavigation from "./components/MenuNavigation";
  252. import InstitutionalCooperation from "./components/InstitutionalCooperation";
  253. import EnterpriseCooperation from "./components/EnterpriseCooperation";
  254. import FriendshipLink from "./components/FriendshipLink";
  255. export default {
  256. name: "HomeIndex",
  257. components: {
  258. HeaderBanner,
  259. MenuNavigation,
  260. InstitutionalCooperation,
  261. EnterpriseCooperation,
  262. FriendshipLink,
  263. },
  264. data() {
  265. return {
  266. latestNews: {},
  267. newsList: [],
  268. noticeList: [],
  269. activeName: "first",
  270. parseTime: parseTime,
  271. scrollTop: 0,
  272. policyObj: {
  273. loading: false,
  274. tabCur: "",
  275. policyTypeList: [],
  276. bannerList: [],
  277. policyList: [],
  278. },
  279. };
  280. },
  281. created() {
  282. this.initData();
  283. },
  284. mounted() {
  285. const that = this;
  286. window.addEventListener("scroll", that.scrollHander);
  287. },
  288. destroyed() {
  289. window.removeEventListener("scroll", this.scrollHander);
  290. },
  291. methods: {
  292. scrollHander(e) {
  293. this.scrollTop = e.srcElement.scrollingElement.scrollTop;
  294. },
  295. initData() {
  296. this.getDict();
  297. this.getNews();
  298. this.getNotice();
  299. this.getPolicyBannerList();
  300. },
  301. /**
  302. * 获取字典数据
  303. * @date 2022-08-17
  304. * @returns {any}
  305. */
  306. getDict() {
  307. getDictData({ key: "policy_type" }).then((res) => {
  308. this.policyObj.policyTypeList = res?.data;
  309. this.policyObj.policyTypeList.length &&
  310. (this.policyObj.tabCur = this.policyObj.policyTypeList[0].text) &&
  311. this.getPolicyList();
  312. });
  313. },
  314. /**
  315. * 获取新闻
  316. * @date 2022-08-10
  317. * @returns {any}
  318. */
  319. getNews() {
  320. getNewsList({
  321. artCategoryId: 2,
  322. pageNum: 1,
  323. pageSize: 10,
  324. }).then((res) => {
  325. this.newsList = res?.rows ?? [];
  326. if (this.newsList.length) {
  327. this.getNewsInfo(this.newsList[0].artId);
  328. }
  329. });
  330. },
  331. /**
  332. * 获取新闻详情
  333. * @date 2022-08-17
  334. * @param {any} id
  335. * @returns {any}
  336. */
  337. getNewsInfo(id) {
  338. getNewsData({ id }).then((res) => {
  339. this.latestNews = res?.data ?? [];
  340. });
  341. },
  342. /**
  343. * 获取公告
  344. * @date 2022-08-10
  345. * @returns {any}
  346. */
  347. getNotice() {
  348. getNoticeList().then((res) => {
  349. this.noticeList = res?.data ?? [];
  350. });
  351. },
  352. /**
  353. * tab点击事件
  354. * @date 2022-08-10
  355. * @param {any} tab
  356. * @returns {any}
  357. */
  358. handleClick(tab) {
  359. switch (tab.name) {
  360. case "first":
  361. this.getNews();
  362. break;
  363. case "second":
  364. this.getNotice();
  365. break;
  366. }
  367. },
  368. /**
  369. * 获取政策咨询轮播
  370. * @date 2022-08-17
  371. * @returns {any}
  372. */
  373. getPolicyBannerList() {
  374. getBannerList({ type: 2 }).then((res) => {
  375. this.policyObj.bannerList = res.data;
  376. });
  377. },
  378. /**
  379. * 获取咨询列表
  380. * @date 2022-08-17
  381. * @returns {any}
  382. */
  383. getPolicyList() {
  384. this.policyObj.loading = true;
  385. getPolicyData({
  386. pageNum: 1,
  387. pageSize: 10,
  388. artCategoryId: this.policyObj.tabCur,
  389. }).then((res) => {
  390. this.policyObj.policyList = res?.rows;
  391. this.policyObj.loading = false;
  392. });
  393. },
  394. /**
  395. * 政策咨询tab切换触发
  396. * @date 2022-08-17
  397. * @param {any} tab
  398. * @returns {any}
  399. */
  400. handlePolicyClick(tab) {
  401. this.policyObj.tabCur = tab.name;
  402. this.getPolicyList();
  403. },
  404. /**
  405. * 跳转到指定页面
  406. * @date 2022-08-11
  407. * @param {any} path
  408. * @returns {any}
  409. */
  410. jumpPage(path) {
  411. if (path) {
  412. this.$router.push(path);
  413. }
  414. },
  415. /**
  416. * 返回顶部
  417. * @date 2022-08-22
  418. * @returns {any}
  419. */
  420. backToTop() {
  421. cancelAnimationFrame(this.timer);
  422. const self = this;
  423. self.timer = requestAnimationFrame(function fn() {
  424. const oTop =
  425. document.body.scrollTop || document.documentElement.scrollTop;
  426. if (oTop > 0) {
  427. document.body.scrollTop = document.documentElement.scrollTop =
  428. oTop - 50;
  429. self.timer = requestAnimationFrame(fn);
  430. } else {
  431. cancelAnimationFrame(self.timer);
  432. }
  433. });
  434. },
  435. },
  436. };
  437. </script>
  438. <style lang="scss" scoped>
  439. .home {
  440. &-main {
  441. &-latest {
  442. background-color: #fff;
  443. &-content {
  444. width: 70%;
  445. margin: 0 auto;
  446. min-width: 600px;
  447. padding: 17px 0;
  448. .hmlc-title {
  449. font-size: 28px;
  450. color: #ff001a;
  451. text-align: center;
  452. margin-bottom: 10px;
  453. }
  454. .hmlc-content {
  455. font-size: 12px;
  456. line-height: 17px;
  457. overflow: hidden;
  458. text-overflow: ellipsis;
  459. text-overflow: -o-ellipsis-lastline;
  460. display: -webkit-box;
  461. -webkit-line-clamp: 2; /* 块元素显示的文本的行数 */
  462. line-clamp: 2;
  463. -webkit-box-orient: vertical; /* 设置或检索伸缩盒对象的子元素的排列方式 ,盒子行数根据高度来计算 */
  464. overflow-wrap: break-word; /* 设置div换行 */
  465. p {
  466. img {
  467. display: none !important;
  468. }
  469. }
  470. }
  471. }
  472. }
  473. &-box {
  474. width: 70%;
  475. margin: 0 auto;
  476. min-width: 600px;
  477. }
  478. &-news {
  479. width: 100%;
  480. padding: 47px 0;
  481. border-radius: 5px;
  482. margin-top: 14px;
  483. &-left {
  484. margin-right: 30px;
  485. .image {
  486. width: 100%;
  487. height: 100%;
  488. border-radius: 2px;
  489. }
  490. .title {
  491. width: calc(100% - 26px);
  492. height: 43px;
  493. line-height: 43px;
  494. padding: 0 13px;
  495. background-color: rgba($color: #000000, $alpha: 0.6);
  496. color: #fff;
  497. white-space: nowrap;
  498. overflow: hidden;
  499. text-overflow: ellipsis;
  500. word-break: break-all;
  501. position: absolute;
  502. bottom: 0;
  503. font-size: 14px;
  504. font-weight: blod;
  505. }
  506. :deep(.el-carousel__indicators) {
  507. // 指示器
  508. left: auto;
  509. right: -20px;
  510. }
  511. :deep(.el-carousel__button) {
  512. // 指示器按钮
  513. width: 7px;
  514. height: 7px;
  515. border: none;
  516. border-radius: 50%;
  517. background-color: #fff;
  518. }
  519. :deep(.is-active .el-carousel__button) {
  520. // 指示器激活按钮
  521. width: 16px;
  522. border-radius: 10px;
  523. background-color: #f00;
  524. }
  525. }
  526. &-right {
  527. position: relative;
  528. :deep(.el-tabs__item) {
  529. font-size: 20px;
  530. font-weight: 500;
  531. color: #000000;
  532. }
  533. :deep(.el-tabs__item:hover) {
  534. color: #163da5;
  535. }
  536. :deep(.el-tabs__item.is-active) {
  537. color: #163da5;
  538. }
  539. :deep(.el-tabs__active-bar) {
  540. background-color: #163da5;
  541. }
  542. .news-infomation {
  543. &-item {
  544. display: flex;
  545. justify-content: space-between;
  546. margin-bottom: 10px;
  547. font-size: 14px;
  548. color: #373737;
  549. cursor: pointer;
  550. &:hover {
  551. text-decoration: underline;
  552. }
  553. .title {
  554. width: 80%;
  555. white-space: nowrap;
  556. overflow: hidden;
  557. text-overflow: ellipsis;
  558. word-break: break-all;
  559. }
  560. .date {
  561. width: 20%;
  562. white-space: nowrap;
  563. overflow: hidden;
  564. text-overflow: ellipsis;
  565. word-break: break-all;
  566. text-align: right;
  567. color: #797979;
  568. }
  569. }
  570. }
  571. .more-btn {
  572. position: absolute;
  573. right: 0;
  574. top: 12px;
  575. color: #727272;
  576. font-size: 14px;
  577. cursor: pointer;
  578. }
  579. }
  580. }
  581. &-policy {
  582. padding: 40px 0;
  583. &-carousel {
  584. :deep(.el-carousel__button) {
  585. // 指示器按钮
  586. width: 7px;
  587. height: 7px;
  588. border: none;
  589. border-radius: 50%;
  590. background-color: #fff;
  591. }
  592. :deep(.is-active .el-carousel__button) {
  593. // 指示器激活按钮
  594. width: 16px;
  595. border-radius: 10px;
  596. }
  597. .image {
  598. width: 100%;
  599. height: 100%;
  600. }
  601. }
  602. &-content {
  603. margin-top: 50px;
  604. .hmpc-left {
  605. margin-bottom: 20px;
  606. :deep(.el-tabs__item) {
  607. font-size: 20px;
  608. font-weight: 500;
  609. color: #666666;
  610. }
  611. :deep(.el-tabs__item:hover) {
  612. color: #163da5;
  613. }
  614. :deep(.el-tabs__item.is-active) {
  615. color: #163da5;
  616. }
  617. :deep(.el-tabs__active-bar) {
  618. background-color: #163da5;
  619. }
  620. &-list {
  621. padding: 10px 0;
  622. &-item {
  623. display: flex;
  624. justify-content: space-between;
  625. margin-bottom: 10px;
  626. font-size: 14px;
  627. color: #373737;
  628. cursor: pointer;
  629. &:hover {
  630. text-decoration: underline;
  631. }
  632. .title {
  633. width: 80%;
  634. white-space: nowrap;
  635. overflow: hidden;
  636. text-overflow: ellipsis;
  637. word-break: break-all;
  638. }
  639. .date {
  640. width: 20%;
  641. white-space: nowrap;
  642. overflow: hidden;
  643. text-overflow: ellipsis;
  644. word-break: break-all;
  645. text-align: right;
  646. color: #797979;
  647. }
  648. }
  649. }
  650. }
  651. .hmpc-right {
  652. margin-bottom: 20px;
  653. &-title {
  654. font-size: 26px;
  655. color: #163da5;
  656. margin-bottom: 10px;
  657. }
  658. &-list {
  659. &-btn {
  660. width: 100%;
  661. text-align: center;
  662. height: 47px;
  663. line-height: 47px;
  664. border-radius: 5px;
  665. cursor: pointer;
  666. font-size: 18px;
  667. margin-bottom: 7px;
  668. position: relative;
  669. &:hover {
  670. opacity: 0.8;
  671. }
  672. &::before {
  673. content: "";
  674. display: inline-block;
  675. width: 25px;
  676. height: 25px;
  677. background-size: 100% 100%;
  678. background-repeat: no-repeat;
  679. background-position: center center;
  680. vertical-align: middle;
  681. position: absolute;
  682. left: calc(45% - 35px);
  683. top: 50%;
  684. margin-top: -12.5px;
  685. }
  686. &::after {
  687. position: absolute;
  688. left: 45%;
  689. }
  690. }
  691. &-btn-1 {
  692. background-image: linear-gradient(
  693. 137deg,
  694. #c5fff6 0%,
  695. #5debd8 100%
  696. );
  697. color: #028170;
  698. &::before {
  699. background-image: url("./../../assets/images/zhengcezixun.svg");
  700. }
  701. &::after {
  702. content: "政策咨询";
  703. }
  704. }
  705. &-btn-2 {
  706. background-image: linear-gradient(
  707. 137deg,
  708. #fff6e3 0%,
  709. #f7b6a3 100%
  710. );
  711. color: #ff6253;
  712. &::before {
  713. background-image: url("./../../assets/images/woyaojiuye.svg");
  714. }
  715. &::after {
  716. content: "我要就业";
  717. }
  718. }
  719. &-btn-3 {
  720. background-image: linear-gradient(
  721. 137deg,
  722. #fff6e3 0%,
  723. #fae08a 100%
  724. );
  725. color: #ff8d34;
  726. &::before {
  727. background-image: url("./../../assets/images/woyaoxuejineng.svg");
  728. }
  729. &::after {
  730. content: "我要学技能";
  731. }
  732. }
  733. &-btn-4 {
  734. background-image: linear-gradient(
  735. 137deg,
  736. #eee3ff 0%,
  737. #d3b9ff 100%
  738. );
  739. color: #8454d3;
  740. &::before {
  741. background-image: url("./../../assets/images/woxiangshengxueli.svg");
  742. }
  743. &::after {
  744. content: "我要升学历";
  745. }
  746. }
  747. &-btn-5 {
  748. background-image: linear-gradient(
  749. 137deg,
  750. #c9e9ff 0%,
  751. #95d2fc 100%
  752. );
  753. color: #1b74b4;
  754. &::before {
  755. background-image: url("./../../assets/images/woxiangchuangye.svg");
  756. }
  757. &::after {
  758. content: "我想创业";
  759. }
  760. }
  761. }
  762. }
  763. }
  764. }
  765. }
  766. .home-main-top {
  767. margin-top: 104px;
  768. }
  769. &-operation {
  770. position: fixed;
  771. top: 50%;
  772. right: 0;
  773. margin-top: -214px;
  774. z-index: 1000;
  775. &-fixed {
  776. &-item {
  777. width: 95px;
  778. height: 95px;
  779. display: flex;
  780. justify-content: center;
  781. align-items: center;
  782. background: #416050;
  783. margin-bottom: 2px;
  784. cursor: pointer;
  785. &:nth-last-child(2) {
  786. margin-bottom: 0;
  787. }
  788. &:first-child,
  789. &:last-child {
  790. background: #73aa8d;
  791. }
  792. .image {
  793. width: 48px;
  794. height: 48px;
  795. }
  796. }
  797. &-item-last {
  798. height: 42px;
  799. .image {
  800. width: 26px;
  801. height: 26px;
  802. }
  803. }
  804. }
  805. }
  806. }
  807. </style>