index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. <template>
  2. <div class="free-main" id="free-main">
  3. <div class="free-head">
  4. <div class="logo">
  5. <a target="_blank">
  6. <img src="./img/logo.png">
  7. </a>
  8. <div class="text-lf">
  9. <div>中国(海南)国际贸易单一窗口</div>
  10. <span>China (HaiNan) International Trade Single Window</span>
  11. </div>
  12. <div class="text-rt">中国(海南)国际贸易单一窗口</div>
  13. </div>
  14. <div class="login">
  15. <div class="lg-1">无障碍</div>
  16. <div>长辈版</div>
  17. <div class="lg-2"><img width="24" height="24" src="./img/head.png"> <span>张三</span></div>
  18. </div>
  19. </div>
  20. <div class="free-content">
  21. <div class="top-box">
  22. <div class="top-item-1"><img src="./img/icon-top-1.png" alt=""></div>
  23. <!-- <div class="top-item-2">Hainan Free Trade Special Services Zone</div>
  24. <div class="top-item-3"><img src="./img/icon-top-3.png" alt=""></div> -->
  25. <div class="search">
  26. <a-auto-complete
  27. v-model:value="state.value2"
  28. :dropdown-match-select-width="252"
  29. :options="state.options"
  30. @search="handleSearch"
  31. style="width: 50%"
  32. >
  33. <template #default>
  34. <a-input
  35. v-model:value="state.value2"
  36. placeholder="请输入关键字进行查询"
  37. >
  38. <template #addonAfter>
  39. <div class="search-img">
  40. <img src="./img/icon-search.png" alt="">
  41. </div>
  42. </template>
  43. </a-input>
  44. </template>
  45. <template #option="item">
  46. <div @click="handleSearchAnchor(item.pId, item.id)" >{{item.value}}</div>
  47. </template>
  48. </a-auto-complete>
  49. </div>
  50. <div class="top-item-4"><span>热搜词:</span> <span v-for="item,key in state.hotWord" :key=key>{{item}}</span></div>
  51. <div class="top-item-5">
  52. <span v-for="item,key in state.itemList" :key=key @click="handleAnchor(`box-${key}`)">
  53. <img :src="getImg(`icon-${key+1}`)" alt="">
  54. {{item}}
  55. </span>
  56. </div>
  57. </div>
  58. <div class="cytj-box" id="box-0">
  59. <img src="./img/icon-tj.png" alt="">
  60. <div>
  61. <span :class="state.recommendVal == key ? 'is-active':'tj-item'" @click="handleRecommend(key)" v-for="item,key in state.cytjList" :key=key>{{item}}</span>
  62. </div>
  63. </div>
  64. <div class="tszq-box" id="box-1">
  65. <div class="title"><img src="./img/tszq.png" alt=""></div>
  66. <div class="cards">
  67. <div class="tab-list">
  68. <div :class="state.tszqTabVal == 0 ? 'tab-active': ''" @click="state.tszqTabVal = 0">一线出入境</div>
  69. <div :class="state.tszqTabVal == 1 ? 'tab-active': ''" @click="state.tszqTabVal = 1">岛内</div>
  70. <div :class="state.tszqTabVal == 2 ? 'tab-active': ''" @click="state.tszqTabVal = 2">二线出岛</div>
  71. </div>
  72. <div class="cards-list" v-if="state.tszqTabVal == 0">
  73. <div class="card-item" v-for="item,key in jsondatas.yxcrjList" :key="key">
  74. <div class="item-title">
  75. <img :src="getImg(`yx-${key+1}`)" alt="">
  76. {{item.title}}
  77. </div>
  78. <div class="item-content">
  79. <span
  80. v-for="el,idx in item.child"
  81. :key="idx" :id="el.id"
  82. @click="handleLink(el.url, el.id)"
  83. :class="state.currentKey == el.id? 'keyColor': ''">
  84. <a-tooltip>
  85. <template #title>{{el.value}}</template>
  86. {{el.value}}
  87. </a-tooltip>
  88. </span>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="cards-list" v-if="state.tszqTabVal == 1">
  93. <div class="card-item" v-for="item,key in jsondatas.dnList" :key="key">
  94. <div class="item-title">
  95. <img :src="getImg(`dn-${key+1}`)" alt="">
  96. {{item.title}}
  97. </div>
  98. <div class="item-content">
  99. <span
  100. v-for="el,idx in item.child"
  101. :key="idx" :id="el.id"
  102. @click="handleLink(el.url, el.id)"
  103. :class="state.currentKey == el.id? 'keyColor': ''">
  104. <a-tooltip>
  105. <template #title>{{el.value}}</template>
  106. {{el.value}}
  107. </a-tooltip>
  108. </span>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="cards-list" v-if="state.tszqTabVal == 2">
  113. <div class="card-item" v-for="item,key in jsondatas.excdList" :key="key">
  114. <div class="item-title">
  115. <img :src="getImg(`excd-${key+1}`)" alt="">
  116. {{item.title}}
  117. </div>
  118. <div class="item-content">
  119. <span
  120. v-for="el,idx in item.child"
  121. :key="idx" :id="el.id"
  122. @click="handleLink(el.url, el.id)"
  123. :class="state.currentKey == el.id? 'keyColor': ''">
  124. <a-tooltip>
  125. <template #title>{{el.value}}</template>
  126. {{el.value}}
  127. </a-tooltip>
  128. </span>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="ywld-box" id="box-2">
  135. <div class="title"><img src="./img/ywld.png" alt=""></div>
  136. <img src="./img/ywld-bg.png" alt="">
  137. </div>
  138. <div class="ggzq-box" id="box-3">
  139. <div class="title"><img src="./img/ggzq.png" alt=""></div>
  140. <div class="cards">
  141. <div class="cards-list">
  142. <div class="card-item" v-for="item,key in jsondatas.ggzqList" :key="key">
  143. <div class="item-title">
  144. <img :src="getImg(`ggzq-${key+1}`)" alt="">
  145. {{item.title}}
  146. </div>
  147. <div class="item-content">
  148. <span
  149. v-for="el,idx in item.child"
  150. :key="idx" :id="el.id"
  151. @click="handleLink(el.url, el.id)"
  152. :class="state.currentKey == el.id? 'keyColor': ''">
  153. <a-tooltip>
  154. <template #title>{{el.value}}</template>
  155. {{el.value}}
  156. </a-tooltip>
  157. </span>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <div class="news-box">
  164. <div class="news-lf" id="box-4">
  165. <div class="top-search">
  166. <div><img src="./img/icon-zx.png" alt=""> <span><img src="./img/zzzx.png" alt=""></span></div>
  167. <div>
  168. <a-input
  169. style="width: 274px"
  170. v-model:value="state.value2"
  171. placeholder="请输入关键字进行查询"
  172. >
  173. <template #addonAfter>
  174. <div class="search-img">
  175. <img src="./img/icon-search-min.png" alt="">
  176. </div>
  177. </template>
  178. </a-input>
  179. <img src="./img/refresh.png" alt="">
  180. </div>
  181. </div>
  182. <div class="news-item">
  183. <div v-for="item,key in state.newsList" :key="key" @click="handleNew(item.url)">
  184. <img src="./img/icon-news.png" alt="">
  185. <div>
  186. <a-tooltip>
  187. <template #title>{{item.title}}</template>
  188. <div class="news-item-title">
  189. {{item.title}}
  190. </div>
  191. </a-tooltip>
  192. <div class="news-item-content"><span>时间:{{item.date}}</span> &nbsp;&nbsp;&nbsp;<span>来源:{{item.source}}</span></div>
  193. </div>
  194. </div>
  195. </div>
  196. <a-pagination
  197. show-less-items
  198. v-model:current="state.current1"
  199. :total="20"
  200. @change="handleNewsPage"
  201. />
  202. </div>
  203. <div class="news-rt" id="box-5">
  204. <div class="top-search">
  205. <div><img src="./img/icon-tz.png" alt=""> <span><img src="./img/tzgg.png" alt=""></span></div>
  206. <div>
  207. <a-input
  208. style="width: 274px"
  209. v-model:value="state.value2"
  210. placeholder="请输入关键字进行查询"
  211. >
  212. <template #addonAfter>
  213. <div class="search-img">
  214. <img src="./img/icon-search-min.png" alt="">
  215. </div>
  216. </template>
  217. </a-input>
  218. <img src="./img/refresh.png" alt="">
  219. </div>
  220. </div>
  221. <div class="news-item">
  222. <div v-for="item,key in state.noticeList" :key="key" @click="handleNew(item.url)">
  223. <img src="./img/icon-news.png" alt="">
  224. <div>
  225. <a-tooltip>
  226. <template #title>{{item.title}}</template>
  227. <div class="news-item-title">
  228. {{item.title}}
  229. </div>
  230. </a-tooltip>
  231. <div class="news-item-content"><span>时间:{{item.date}}</span> &nbsp;&nbsp;&nbsp;<span>来源:{{item.source}}</span></div>
  232. </div>
  233. </div>
  234. </div>
  235. <a-pagination
  236. show-less-items
  237. v-model:current="state.current2"
  238. :total="20"
  239. @change="handleNoticePage"
  240. />
  241. </div>
  242. </div>
  243. </div>
  244. <div class="free-footer"></div>
  245. </div>
  246. </template>
  247. <script setup lang="ts">
  248. import {getCurrentInstance, reactive, onMounted} from "vue";
  249. import { useRoute, useRouter } from 'vue-router'
  250. import jsondatas from './datas.json'
  251. const {proxy} = getCurrentInstance()
  252. const router = useRouter()
  253. function getImg(name) {
  254. return new URL(`./img/${name}.png`, import.meta.url).href;
  255. }
  256. const state: any = reactive({
  257. value1: '1',
  258. value2: '',
  259. options: jsondatas.searchList,
  260. hotWord: ['申报','放行','海运','税单','资质备案'],
  261. itemList: [
  262. '热点推荐',
  263. '特色专区',
  264. '业务联动',
  265. '公共专区',
  266. '最新资讯',
  267. '通知公告',
  268. ],
  269. cytjList: ['二线出岛零关税货物申报','二线出岛货物申报综合查询','二线出岛货物税单管理','二线出岛业务记账管理','零关税货物管理','企业资质备案','二线业务管理','业务联动'],
  270. recommendVal: null,
  271. tszqTabVal: 0,
  272. current1: 1,
  273. current2: 1,
  274. currentKey: '',
  275. newsList: jsondatas.newsList.slice(0,3),
  276. noticeList: jsondatas.noticeList.slice(0,3)
  277. })
  278. const handleSearch = (val: string) => {
  279. if(val.length) {
  280. state.options = jsondatas.searchList.filter(item => item.value.includes(val))
  281. } else {
  282. state.options = jsondatas.searchList
  283. state.currentKey = ""
  284. }
  285. };
  286. const handleLink = (url, id) => {
  287. state.currentKey = id
  288. const path = router.resolve({ path: url })
  289. window.open(path.href, "_blank");
  290. }
  291. const handleRecommend = (val) => {
  292. state.recommendVal = val
  293. const path = router.resolve({ path: '/hainan-login' })
  294. window.open(path.href, "_blank");
  295. }
  296. const handleNew = (url) => {
  297. window.open(url, "_blank");
  298. }
  299. const handleSearchAnchor = (pId, id) => {
  300. nextTick(() => {
  301. state.currentKey = id
  302. const main = document.getElementById('free-main')
  303. const isBox = pId.includes('ggzq') ? 'box-3' : 'box-1'
  304. if(pId.includes('yx')) {
  305. state.tszqTabVal = 0
  306. } else if(pId.includes('dn')) {
  307. state.tszqTabVal = 1
  308. } else if(pId.includes('ex')) {
  309. state.tszqTabVal = 2
  310. }
  311. const el = document.getElementById(isBox).getBoundingClientRect().top + main.scrollTop - 72
  312. main.scrollTo({
  313. top: el,
  314. behavior: 'smooth'
  315. });
  316. })
  317. }
  318. const handleAnchor = (id) => {
  319. const main = document.getElementById('free-main')
  320. const el = document.getElementById(id).getBoundingClientRect().top + main.scrollTop - 72
  321. main.scrollTo({
  322. top: el,
  323. behavior: 'smooth'
  324. });
  325. }
  326. const handleNewsPage = (page) => {
  327. if(page == 1) {
  328. state.newsList = jsondatas.newsList.slice(0,3)
  329. } else if(page ==2) {
  330. state.newsList = jsondatas.newsList.slice(3)
  331. }
  332. }
  333. const handleNoticePage = (page) => {
  334. if(page == 1) {
  335. state.noticeList = jsondatas.noticeList.slice(0,3)
  336. } else if(page ==2) {
  337. state.noticeList = jsondatas.noticeList.slice(3)
  338. }
  339. }
  340. </script>
  341. <style lang="less" scoped>
  342. .free-main {
  343. overflow: auto;
  344. width: 100%;
  345. height: 100%;
  346. position: relative;
  347. .free-head {
  348. display: flex;
  349. padding: 0 23px;
  350. height: 72px;
  351. width: 100%;
  352. position: fixed;
  353. top: 0;
  354. z-index: 1999;
  355. background: rgba(0,0,0,0.2);
  356. color: #fff;
  357. .logo {
  358. flex: 1;
  359. display: flex;
  360. align-items: center;
  361. a {
  362. text-decoration: none;
  363. }
  364. .text-lf {
  365. margin-left: 10px;
  366. font-size: 24px;
  367. // display: inline-block;
  368. border-right: 1px solid rgba(255,255,255,0.6);
  369. padding-right: 32px;
  370. margin-right: 32px;
  371. }
  372. span {
  373. font-size: 12px;
  374. display: block;
  375. margin-top: 2px;
  376. color: rgba(255,255,255,0.6);
  377. }
  378. .text-rt {
  379. font-size: 20px;
  380. }
  381. }
  382. .login {
  383. display: flex;
  384. align-items: center;
  385. div {
  386. margin: 0 10px;
  387. cursor: pointer;
  388. }
  389. .lg-1 {
  390. width: 64px;
  391. height: 30px;
  392. background: linear-gradient( 90deg, #ED7830 0%, #F19E3E 100%);
  393. border-radius: 29px 29px 29px 29px;
  394. text-align: center;
  395. line-height: 30px;
  396. }
  397. .lg-2 {
  398. span {
  399. vertical-align: middle;
  400. position: relative;
  401. &:after {
  402. position: absolute;
  403. content: '';
  404. background-image: url('./img/icon-up.png');
  405. background-repeat: no-repeat;
  406. width: 16px;
  407. height: 16px;
  408. top: 3px
  409. }
  410. }
  411. }
  412. }
  413. }
  414. .free-content {
  415. width: 100%;
  416. .title {
  417. font-family: YouSheBiaoTiHei;
  418. font-weight: 400;
  419. font-size: 40px;
  420. color: #303133;
  421. text-align: center;
  422. }
  423. .top-box {
  424. height: 890px;
  425. background-image: url('./img/bg.png');
  426. background-repeat: no-repeat;
  427. background-size: 100% 100%;
  428. display: flex;
  429. flex-direction: column;
  430. align-items: center;
  431. justify-content: center;
  432. color: #fff;
  433. .top-item-1 {
  434. font-family: YouSheBiaoTiHei;
  435. font-weight: 400;
  436. font-size: 56px;
  437. color: #000;
  438. margin-bottom: 48px;
  439. }
  440. .top-item-2 {
  441. font-family: PingFang SC, PingFang SC;
  442. font-weight: 400;
  443. font-size: 20px;
  444. color: rgba(255,255,255,0.6);
  445. }
  446. .top-item-3 {
  447. font-family: jiangxizhuokai, jiangxizhuokai;
  448. font-weight: 400;
  449. font-size: 24px;
  450. margin-top: 16px;
  451. }
  452. .search {
  453. width: 100%;
  454. text-align: center;
  455. :deep(input) {
  456. height: 60px;
  457. border-radius: 4px 0 0 4px;
  458. border-right: 0;
  459. }
  460. :deep(.ant-input-group-addon) {
  461. background: #fff;
  462. }
  463. .search-img {
  464. cursor: pointer;
  465. }
  466. }
  467. .top-item-4 {
  468. margin: 10px 0 48px 0;
  469. span {
  470. padding-bottom: 1px;
  471. margin: 0 5px;
  472. border-bottom: 1px solid #fff;
  473. cursor: pointer;
  474. font-size: 14px;
  475. }
  476. }
  477. .top-item-5 {
  478. display: flex;
  479. flex-wrap: wrap;
  480. column-gap: 12px;
  481. span {
  482. width: 146px;
  483. height: 72px;
  484. line-height: 72px;
  485. color: #fff;
  486. text-align: center;
  487. cursor: pointer;
  488. border-radius: 4px;
  489. background-image: url('./img/icon-top-5.png');
  490. box-shadow: 0px 4px 11px 0px rgba(39,58,104,0.05);
  491. }
  492. }
  493. }
  494. .cytj-box {
  495. background-image: url('./img/cytj-bg.png');
  496. width: 1200px;
  497. height: 150px;
  498. margin: 24px auto;
  499. div {
  500. display: flex;
  501. flex-wrap: wrap;
  502. // justify-content: space-between;
  503. padding: 0 50px;
  504. margin-top: 16px;
  505. span {
  506. font-size: 16px;
  507. cursor: pointer;
  508. width: 20%;
  509. margin-bottom: 16px;
  510. }
  511. >:first-child {
  512. &::after {
  513. content: '';
  514. width: 16px;
  515. height: 16px;
  516. background-image: url('./img/hot.png');
  517. position: absolute;
  518. }
  519. }
  520. }
  521. .tj-item {
  522. color: #606266;
  523. position: relative;
  524. &::before {
  525. content: '';
  526. width: 8px;
  527. height: 8px;
  528. background: #D9D9D9;
  529. position: absolute;
  530. border-radius: 50%;
  531. left: -10px;
  532. top: 5px;
  533. }
  534. }
  535. .is-active {
  536. color: rgba(46, 129, 255, 1);
  537. position: relative;
  538. &::before {
  539. content: '';
  540. width: 8px;
  541. height: 8px;
  542. background: rgba(46, 129, 255, 1);
  543. position: absolute;
  544. border-radius: 50%;
  545. left: -10px;
  546. top: 5px;
  547. }
  548. }
  549. }
  550. .tszq-box {
  551. background-image: url('./img/tszq-bg.png');
  552. height: 640px;
  553. padding: 24px 0;
  554. .cards {
  555. margin-top: 34px;
  556. }
  557. .tab-list {
  558. display: flex;
  559. justify-content: center;
  560. text-align: center;
  561. div {
  562. width: 160px;
  563. height: 48px;
  564. line-height: 48px;
  565. font-size: 18px;
  566. color: #909399;
  567. border-radius: 8px 8px 0 0;
  568. cursor: pointer;
  569. font-weight: bold;
  570. }
  571. .tab-active {
  572. background: #DDEEFF;
  573. }
  574. }
  575. .cards-list {
  576. width: 1200px;
  577. height: 460px;
  578. margin: 0 auto;
  579. padding: 16px;
  580. background: #DDEEFF;
  581. border-radius: 8px;
  582. display: flex;
  583. flex-wrap: wrap;
  584. column-gap: 12px;
  585. align-content: space-between;
  586. justify-content: flex-start;
  587. .card-item {
  588. width: 380px;
  589. height: 200px;
  590. padding: 20px 16px;
  591. background: #FFFFFF;
  592. box-shadow: 0px 4px 10px 0px rgba(40,83,247,0.05);
  593. border-radius: 8px 8px 8px 8px;
  594. .item-title {
  595. font-size: 18px;
  596. color: #606266;
  597. font-weight: bold;
  598. margin-bottom: 12px;
  599. }
  600. .item-content {
  601. display: flex;
  602. flex-wrap: wrap;
  603. justify-content: space-between;
  604. overflow: auto;
  605. height: 130px;
  606. cursor: pointer;
  607. &::-webkit-scrollbar {
  608. /*滚动条整体样式*/
  609. width : 3px; /*高宽分别对应横竖滚动条的尺寸*/
  610. height: 3px;
  611. }
  612. &::-webkit-scrollbar-thumb {
  613. /*滚动条里面小方块*/
  614. border-radius : 5px;
  615. background-color: rgba(192, 196, 204, 1);
  616. }
  617. span {
  618. width: 166px;
  619. height: 54px;
  620. line-height: 54px;
  621. text-align: center;
  622. display: inline-block;
  623. background: #EBF1FF;
  624. border-radius: 4px;
  625. font-size: 16px;
  626. color: #606266;
  627. white-space: nowrap;
  628. overflow: hidden;
  629. text-overflow: ellipsis;
  630. margin: 5px 0;
  631. padding: 0 16px;
  632. }
  633. }
  634. .keyColor {
  635. color: #2E81FF !important;
  636. }
  637. }
  638. }
  639. }
  640. .ywld-box {
  641. text-align: center;
  642. margin: 24px 0;
  643. img {
  644. margin: 24px 0;
  645. }
  646. }
  647. .ggzq-box {
  648. background-image: url('./img/ggzq-bg.png');
  649. padding: 24px 0;
  650. background-size: cover;
  651. .cards {
  652. height: 537px;
  653. overflow: auto;
  654. &::-webkit-scrollbar {
  655. /*滚动条整体样式*/
  656. width : 5px; /*高宽分别对应横竖滚动条的尺寸*/
  657. height: 5px;
  658. }
  659. &::-webkit-scrollbar-thumb {
  660. /*滚动条里面小方块*/
  661. border-radius : 5px;
  662. background-color: rgba(192, 196, 204, 1);
  663. }
  664. }
  665. .cards-list {
  666. width: 1200px;
  667. height: 460px;
  668. margin: 0 auto;
  669. padding: 24px;
  670. // background: #DDEEFF;
  671. border-radius: 8px;
  672. display: flex;
  673. flex-wrap: wrap;
  674. column-gap: 12px;
  675. align-content: space-between;
  676. justify-content: flex-start;
  677. .card-item {
  678. width: 373px;
  679. height: 198px;
  680. padding: 20px 16px;
  681. margin: 8px 0;
  682. background: #FFFFFF;
  683. box-shadow: 0px 4px 10px 0px rgba(40,83,247,0.05);
  684. border-radius: 8px 8px 8px 8px;
  685. .item-title {
  686. font-size: 18px;
  687. color: #606266;
  688. margin-bottom: 12px;
  689. font-weight: bold;
  690. }
  691. .item-content {
  692. display: flex;
  693. flex-wrap: wrap;
  694. justify-content: space-between;
  695. overflow: auto;
  696. height: 130px;
  697. cursor: pointer;
  698. &::-webkit-scrollbar {
  699. /*滚动条整体样式*/
  700. width : 3px; /*高宽分别对应横竖滚动条的尺寸*/
  701. height: 3px;
  702. }
  703. &::-webkit-scrollbar-thumb {
  704. /*滚动条里面小方块*/
  705. border-radius : 5px;
  706. background-color: rgba(192, 196, 204, 1);
  707. }
  708. span {
  709. width: 166px;
  710. height: 54px;
  711. line-height: 54px;
  712. text-align: center;
  713. display: inline-block;
  714. background: #EBF1FF;
  715. border-radius: 4px;
  716. font-size: 16px;
  717. color: #606266;
  718. white-space: nowrap;
  719. overflow: hidden;
  720. text-overflow: ellipsis;
  721. margin: 5px 0;
  722. padding: 0 16px;
  723. }
  724. .keyColor {
  725. color: #2E81FF !important;
  726. }
  727. }
  728. }
  729. }
  730. }
  731. .news-box {
  732. display: flex;
  733. margin: 56px auto;
  734. align-items: center;
  735. flex-wrap: wrap;
  736. justify-content: space-around;
  737. width: 1200px;
  738. .news-lf,.news-rt {
  739. background-image: url('./img/new-bg.png');
  740. width: 588px;
  741. height: 472px;
  742. padding: 24px;
  743. position: relative;
  744. .top-search {
  745. display: flex;
  746. >:first-child {
  747. flex: 1;
  748. }
  749. :deep(input) {
  750. height: 32px;
  751. border-radius: 4px 0 0 4px;
  752. border-right: 0;
  753. }
  754. :deep(.ant-input-group-addon) {
  755. background: #fff;
  756. }
  757. span {
  758. font-family: YouSheBiaoTiHei;
  759. font-weight: 400;
  760. font-size: 26px;
  761. color: #303133;
  762. vertical-align: middle;
  763. font-weight: bold;
  764. }
  765. img {
  766. margin-left: 10px;
  767. cursor: pointer;
  768. }
  769. }
  770. :deep(.ant-pagination) {
  771. position: absolute;
  772. bottom: 24px;
  773. right: 24px;
  774. }
  775. }
  776. .news-item {
  777. display: flex;
  778. flex-direction: column;
  779. margin: 24px 0;
  780. max-height: 320px;
  781. overflow: auto;
  782. cursor: pointer;
  783. >div {
  784. display: flex;
  785. background: #FFFFFF;
  786. box-shadow: 0px 4px 10px 0px rgba(40,83,247,0.05);
  787. border-radius: 4px;
  788. padding: 16px;
  789. align-items: center;
  790. margin: 8px 0;
  791. img {
  792. width: 77px;
  793. height: 58px;
  794. margin-right: 10px;
  795. }
  796. .news-item-title {
  797. font-weight: bold;
  798. font-size: 20px;
  799. color: #303133;
  800. width: 324px;
  801. white-space: nowrap;
  802. overflow: hidden;
  803. text-overflow: ellipsis;
  804. }
  805. .news-item-content {
  806. color: #909399;
  807. font-size: 14px;
  808. margin-top: 10px;
  809. }
  810. }
  811. }
  812. :deep(.ant-pagination) {
  813. text-align: right;
  814. }
  815. }
  816. }
  817. .free-footer {
  818. height: 274px;
  819. background-image: url('./img/footer.png');
  820. background-size: 100% 100%;
  821. }
  822. }
  823. </style>