7.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. <template>
  2. <!--样式1-->
  3. <div class="box_1" v-if="componentStyle == 1">
  4. <h4 class="ul_head">
  5. <NuxtLink v-if="titleLink1.cid" :href="getLinkPath(titleLink1)" :title="titleLink1.alias">
  6. <span :class="{ ul_head_only: activeTab == 0 }" @mouseenter="activeTab = 0">{{ titleLink1.alias }}</span>
  7. </NuxtLink>
  8. <NuxtLink v-if="titleLink2.cid" :href="getLinkPath(titleLink2)" :title="titleLink2.alias">
  9. <span :class="{ ul_head_only: activeTab == 1 }" @mouseenter="activeTab = 1">{{ titleLink2.alias }}</span>
  10. </NuxtLink>
  11. </h4>
  12. <div class="card_out clearfix">
  13. <div class="card_box clearfix" v-if="activeTab == 0">
  14. <div class="img_ul clearfix">
  15. <div v-for="item in component_style1_News1Array_img_1" class="img_ul_li">
  16. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  17. :target="item.islink == 1 ? '_blank' : '_self'" class="img_ul_li_a">
  18. <img class="img_ul_li_img" :src="item.imgurl" title="" alt="">
  19. <span class="img_ul_li_dot1">{{ item.title }}</span>
  20. </NuxtLink>
  21. </div>
  22. </div>
  23. <div class="ul_box clearfix">
  24. <div v-for="item in component_style1_News1Array_text_1" class="ul_li">
  25. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  26. :target="item.islink == 1 ? '_blank' : '_self'">
  27. <span>{{ item.title }}</span>
  28. </NuxtLink>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="card_box clearfix" v-if="activeTab == 1">
  33. <div class="img_ul clearfix">
  34. <div v-for="item in component_style2_News1Array_img_2" class="img_ul_li">
  35. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  36. :target="item.islink == 1 ? '_blank' : '_self'" class="img_ul_li_a">
  37. <img class="img_ul_li_img" :src="item.imgurl" title="" alt="">
  38. <span class="img_ul_li_dot1">{{ item.title }}</span>
  39. </NuxtLink>
  40. </div>
  41. </div>
  42. <div class="ul_box clearfix">
  43. <div v-for="item in component_style2_News1Array_img_2" class="ul_li">
  44. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  45. :target="item.islink == 1 ? '_blank' : '_self'">
  46. <span>{{ item.title }}</span>
  47. </NuxtLink>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <!--样式2-->
  54. <div class="box_2" v-if="componentStyle == 2">
  55. <h4 class="ul_head">
  56. <NuxtLink v-if="titleLink1.cid" :href="getLinkPath(titleLink1)" :title="titleLink1.alias">
  57. <span :class="{ ul_head_only: activeTab == 0 }" @mouseenter="activeTab = 0">{{ titleLink1.alias }}</span>
  58. </NuxtLink>
  59. <NuxtLink v-if="titleLink2.cid" :href="getLinkPath(titleLink2)" :title="titleLink2.alias">
  60. <span :class="{ ul_head_only: activeTab == 1 }" @mouseenter="activeTab = 1">{{ titleLink2.alias }}</span>
  61. </NuxtLink>
  62. </h4>
  63. <div class="card_out clearfix">
  64. <div class="card_box clearfix" v-if="activeTab == 0">
  65. <div class="ul_box clearfix">
  66. <div v-for="item in component_style1_News1Array_text_1" class="ul_li">
  67. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  68. :target="item.islink == 1 ? '_blank' : '_self'">
  69. <span>{{ item.title }}</span>
  70. </NuxtLink>
  71. </div>
  72. </div>
  73. <div class="img_ul clearfix">
  74. <div v-for="item in component_style1_News1Array_img_1" class="img_ul_li">
  75. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  76. :target="item.islink == 1 ? '_blank' : '_self'" class="img_ul_li_a">
  77. <img class="img_ul_li_img" :src="item.imgurl" title="" alt="">
  78. <span class="img_ul_li_dot1">{{ item.title }}</span>
  79. </NuxtLink>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="card_box clearfix" v-if="activeTab == 1">
  84. <div class="ul_box clearfix">
  85. <div v-for="item in component_style2_News1Array_img_2" class="ul_li">
  86. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  87. :target="item.islink == 1 ? '_blank' : '_self'">
  88. <span>{{ item.title }}</span>
  89. </NuxtLink>
  90. </div>
  91. </div>
  92. <div class="img_ul clearfix">
  93. <div v-for="item in component_style2_News1Array_img_2" class="img_ul_li">
  94. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  95. :target="item.islink == 1 ? '_blank' : '_self'" class="img_ul_li_a">
  96. <img class="img_ul_li_img" :src="item.imgurl" title="" alt="">
  97. <span class="img_ul_li_dot1">{{ item.title }}</span>
  98. </NuxtLink>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <!--样式3-->
  105. <div class="box_3" v-if="componentStyle == 3">
  106. <h4 class="ul_head">
  107. <NuxtLink v-if="titleLink1.cid" :href="getLinkPath(titleLink1)" :title="titleLink1.alias">
  108. <span :class="{ ul_head_only: activeTab == 0 }" @mouseenter="activeTab = 0">{{ titleLink1.alias }}</span>
  109. </NuxtLink>
  110. <NuxtLink v-if="titleLink2.cid" :href="getLinkPath(titleLink2)" :title="titleLink2.alias">
  111. <span :class="{ ul_head_only: activeTab == 1 }" @mouseenter="activeTab = 1">{{ titleLink2.alias }}</span>
  112. </NuxtLink>
  113. </h4>
  114. <div class="card_out clearfix">
  115. <div class="card_box clearfix" v-if="activeTab == 0">
  116. <div class="img_ul clearfix">
  117. <div v-for="item in component_style1_News1Array_img_1" class="img_ul_li">
  118. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  119. :target="item.islink == 1 ? '_blank' : '_self'" class="img_ul_li_a">
  120. <img class="img_ul_li_img" :src="item.imgurl" title="" alt="">
  121. <span class="img_ul_li_dot1">{{ item.title }}</span>
  122. </NuxtLink>
  123. </div>
  124. </div>
  125. <div class="ul_box clearfix">
  126. <div v-for="item in component_style1_News1Array_text_1" class="ul_li">
  127. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  128. :target="item.islink == 1 ? '_blank' : '_self'">
  129. <span>{{ item.title }}</span>
  130. </NuxtLink>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="card_box clearfix" v-if="activeTab == 1">
  135. <div class="img_ul clearfix">
  136. <div v-for="item in component_style2_News1Array_img_2" class="img_ul_li">
  137. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  138. :target="item.islink == 1 ? '_blank' : '_self'" class="img_ul_li_a">
  139. <img class="img_ul_li_img" :src="item.imgurl" title="" alt="">
  140. <span class="img_ul_li_dot1">{{ item.title }}</span>
  141. </NuxtLink>
  142. </div>
  143. </div>
  144. <div class="ul_box clearfix">
  145. <div v-for="item in component_style2_News1Array_img_2" class="ul_li">
  146. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  147. :target="item.islink == 1 ? '_blank' : '_self'">
  148. <span>{{ item.title }}</span>
  149. </NuxtLink>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <!--样式4-->
  156. <div class="box_4" v-if="componentStyle == 4">
  157. <h4 class="ul_head">
  158. <NuxtLink v-if="titleLink1.cid" :href="getLinkPath(titleLink1)" :title="titleLink1.alias">
  159. <span :class="{ ul_head_only: activeTab == 0 }" @mouseenter="activeTab = 0">{{ titleLink1.alias }}</span>
  160. </NuxtLink>
  161. <NuxtLink v-if="titleLink2.cid" :href="getLinkPath(titleLink2)" :title="titleLink2.alias">
  162. <span :class="{ ul_head_only: activeTab == 1 }" @mouseenter="activeTab = 1">{{ titleLink2.alias }}</span>
  163. </NuxtLink>
  164. </h4>
  165. <div class="card_out clearfix">
  166. <div class="card_box clearfix" v-if="activeTab == 0">
  167. <div class="ul_box clearfix">
  168. <div v-for="item in component_style1_News1Array_text_1" class="ul_li">
  169. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  170. :target="item.islink == 1 ? '_blank' : '_self'">
  171. <span>{{ item.title }}</span>
  172. </NuxtLink>
  173. </div>
  174. </div>
  175. <div class="img_ul clearfix">
  176. <div v-for="item in component_style1_News1Array_img_1" class="img_ul_li">
  177. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  178. :target="item.islink == 1 ? '_blank' : '_self'" class="img_ul_li_a">
  179. <img class="img_ul_li_img" :src="item.imgurl" title="" alt="">
  180. <span class="img_ul_li_dot1">{{ item.title }}</span>
  181. </NuxtLink>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="card_box clearfix" v-if="activeTab == 1">
  186. <div class="ul_box clearfix">
  187. <div v-for="item in component_style2_News1Array_img_2" class="ul_li">
  188. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  189. :target="item.islink == 1 ? '_blank' : '_self'">
  190. <span>{{ item.title }}</span>
  191. </NuxtLink>
  192. </div>
  193. </div>
  194. <div class="img_ul clearfix">
  195. <div v-for="item in component_style2_News1Array_img_2" class="img_ul_li">
  196. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
  197. :target="item.islink == 1 ? '_blank' : '_self'" class="img_ul_li_a">
  198. <img class="img_ul_li_img" :src="item.imgurl" title="" alt="">
  199. <span class="img_ul_li_dot1">{{ item.title }}</span>
  200. </NuxtLink>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. </template>
  207. <script setup>
  208. //引入vue
  209. import { ref } from 'vue';
  210. //获得新闻数据
  211. const props = defineProps({
  212. titleLink1: Object,//板块1名称
  213. titleLink2: Object,//板块2名称
  214. templateData: Array,//新闻数据
  215. templateData1: Array,//新闻数据
  216. componentStyle: Number,//样式编号
  217. });
  218. //定义tab切换
  219. const activeTab = ref(0);
  220. // 新闻数据1
  221. const component_style1_News1Array_img_1 = ref([]);
  222. const component_style1_News1Array_text_1 = ref([]);
  223. component_style1_News1Array_img_1.value = props.templateData.imgnum.slice(0, 4);
  224. component_style1_News1Array_text_1.value = props.templateData.textnum.slice(0, 12);
  225. // 新闻数据2
  226. const component_style2_News1Array_img_2 = ref([]);
  227. const component_style2_News1Array_text_2 = ref([]);
  228. component_style2_News1Array_img_2.value = props.templateData1.imgnum.slice(0, 4);
  229. component_style2_News1Array_text_2.value = props.templateData1.textnum.slice(0, 12);
  230. </script>
  231. <style lang="less" scoped>
  232. //基本样式
  233. .clearfix {
  234. overflow: hidden;
  235. }
  236. .box_1 {
  237. height: px;
  238. overflow: hidden;
  239. .ul_head {
  240. height: 47px;
  241. border-bottom: solid 1px #93969A;
  242. border-top: solid 1px #DCDDDF;
  243. margin: 0px;
  244. box-sizing: border-box;
  245. }
  246. .ul_head * {
  247. float: left;
  248. height: 100%;
  249. line-height: 47px;
  250. box-sizing: border-box;
  251. font-weight: bold;
  252. color: #333;
  253. font-size: 20px;
  254. margin-right: 30px;
  255. }
  256. .ul_head .ul_head_only {
  257. color: #A72213;
  258. border-bottom: solid 2px #A72213;
  259. }
  260. .card_out {
  261. margin-top: 20px;
  262. .img_ul {
  263. height: 180px;
  264. }
  265. .img_ul_li {
  266. float: left;
  267. width: 285px;
  268. height: 180px;
  269. margin-right: 20px;
  270. position: relative;
  271. }
  272. .img_ul_li:nth-last-of-type(1) {
  273. margin-right: 0px;
  274. float: right;
  275. }
  276. .img_ul_li:nth-last-of-type(2) {
  277. margin-right: 0px;
  278. }
  279. .img_ul_li_a {
  280. display: block;
  281. width: 100%;
  282. height: 100%;
  283. }
  284. .img_ul_li_img {
  285. display: block;
  286. width: 100%;
  287. height: 100%;
  288. }
  289. .img_ul_li_dot1 {
  290. height: 29px;
  291. line-height: 29px;
  292. color: #fff;
  293. box-sizing: border-box;
  294. font-size: 14px;
  295. position: absolute;
  296. font-weight: bold;
  297. display: block;
  298. padding: 0px 15px;
  299. width: 100%;
  300. left: 0px;
  301. bottom: 0px;
  302. text-align: center;
  303. background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7));
  304. word-break: keep-all;
  305. white-space: nowrap;
  306. overflow: hidden;
  307. text-overflow: ellipsis;
  308. }
  309. .ul_box {
  310. margin-top: 20px;
  311. a {
  312. color: #333333;
  313. }
  314. }
  315. .ul_li {
  316. line-height: 24px;
  317. height: 24px;
  318. position: relative;
  319. color: #333;
  320. font-size: 18px;
  321. text-indent: 9px;
  322. margin-bottom: 20px;
  323. width: 380px;
  324. margin: 0px 28px 20px 0px;
  325. float: left;
  326. word-break: keep-all;
  327. white-space: nowrap;
  328. overflow: hidden;
  329. text-overflow: ellipsis;
  330. }
  331. .ul_li:nth-of-type(3n) {
  332. margin-right: 0px;
  333. }
  334. .ul_li::before {
  335. content: '';
  336. position: absolute;
  337. left: 0px;
  338. top: 10px;
  339. width: 4px;
  340. height: 4px;
  341. background: #F2F2F2;
  342. border-radius: 2px;
  343. }
  344. }
  345. }
  346. .box_2 {
  347. height: px;
  348. overflow: hidden;
  349. .ul_head {
  350. height: 47px;
  351. border-bottom: solid 1px #93969A;
  352. border-top: solid 1px #DCDDDF;
  353. margin: 0px;
  354. box-sizing: border-box;
  355. }
  356. .ul_head * {
  357. float: left;
  358. height: 100%;
  359. line-height: 47px;
  360. box-sizing: border-box;
  361. font-weight: bold;
  362. color: #333;
  363. font-size: 20px;
  364. margin-right: 30px;
  365. }
  366. .ul_head .ul_head_only {
  367. color: #A72213;
  368. border-bottom: solid 2px #A72213;
  369. }
  370. .card_out {
  371. margin-top: 20px;
  372. .img_ul {
  373. height: 180px;
  374. }
  375. .img_ul_li {
  376. float: left;
  377. width: 285px;
  378. height: 180px;
  379. margin-right: 20px;
  380. position: relative;
  381. }
  382. .img_ul_li:nth-last-of-type(1) {
  383. margin-right: 0px;
  384. float: right;
  385. }
  386. .img_ul_li:nth-last-of-type(2) {
  387. margin-right: 0px;
  388. }
  389. .img_ul_li_a {
  390. display: block;
  391. width: 100%;
  392. height: 100%;
  393. }
  394. .img_ul_li_img {
  395. display: block;
  396. width: 100%;
  397. height: 100%;
  398. }
  399. .img_ul_li_dot1 {
  400. height: 29px;
  401. line-height: 29px;
  402. color: #fff;
  403. box-sizing: border-box;
  404. font-size: 14px;
  405. position: absolute;
  406. font-weight: bold;
  407. display: block;
  408. padding: 0px 15px;
  409. width: 100%;
  410. left: 0px;
  411. bottom: 0px;
  412. text-align: center;
  413. background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7));
  414. word-break: keep-all;
  415. white-space: nowrap;
  416. overflow: hidden;
  417. text-overflow: ellipsis;
  418. }
  419. .ul_box {
  420. margin-top: 0px;
  421. a {
  422. color: #333333;
  423. }
  424. }
  425. .ul_li {
  426. line-height: 24px;
  427. height: 24px;
  428. position: relative;
  429. color: #333;
  430. font-size: 18px;
  431. text-indent: 9px;
  432. margin-bottom: 20px;
  433. width: 380px;
  434. margin: 0px 28px 20px 0px;
  435. float: left;
  436. word-break: keep-all;
  437. white-space: nowrap;
  438. overflow: hidden;
  439. text-overflow: ellipsis;
  440. }
  441. .ul_li:nth-of-type(3n) {
  442. margin-right: 0px;
  443. }
  444. .ul_li::before {
  445. content: '';
  446. position: absolute;
  447. left: 0px;
  448. top: 10px;
  449. width: 4px;
  450. height: 4px;
  451. background: #F2F2F2;
  452. border-radius: 2px;
  453. }
  454. }
  455. }
  456. .box_3 {
  457. height: px;
  458. overflow: hidden;
  459. .ul_head {
  460. height: 47px;
  461. border-bottom: solid 1px #93969A;
  462. border-top: solid 1px #DCDDDF;
  463. margin: 0px;
  464. box-sizing: border-box;
  465. }
  466. .ul_head * {
  467. float: left;
  468. height: 100%;
  469. line-height: 47px;
  470. box-sizing: border-box;
  471. font-weight: bold;
  472. color: #333;
  473. font-size: 20px;
  474. margin-right: 30px;
  475. }
  476. .ul_head .ul_head_only {
  477. color: #A72213;
  478. border-bottom: solid 2px #A72213;
  479. }
  480. .card_out {
  481. margin-top: 20px;
  482. .img_ul {
  483. height: 180px;
  484. }
  485. .img_ul_li {
  486. float: left;
  487. width: 285px;
  488. height: 180px;
  489. margin-right: 20px;
  490. position: relative;
  491. }
  492. .img_ul_li:nth-last-of-type(1) {
  493. margin-right: 0px;
  494. float: right;
  495. }
  496. .img_ul_li:nth-last-of-type(2) {
  497. margin-right: 0px;
  498. }
  499. .img_ul_li_a {
  500. display: block;
  501. width: 100%;
  502. height: 100%;
  503. }
  504. .img_ul_li_img {
  505. display: block;
  506. width: 100%;
  507. height: 100%;
  508. }
  509. .img_ul_li_dot1 {
  510. height: 29px;
  511. line-height: 29px;
  512. color: #fff;
  513. box-sizing: border-box;
  514. font-size: 14px;
  515. position: absolute;
  516. font-weight: bold;
  517. display: block;
  518. padding: 0px 15px;
  519. width: 100%;
  520. left: 0px;
  521. bottom: 0px;
  522. text-align: center;
  523. background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7));
  524. word-break: keep-all;
  525. white-space: nowrap;
  526. overflow: hidden;
  527. text-overflow: ellipsis;
  528. }
  529. .ul_box {
  530. margin-top: 20px;
  531. a {
  532. color: #333333;
  533. }
  534. }
  535. .ul_li {
  536. line-height: 24px;
  537. height: 24px;
  538. position: relative;
  539. color: #333;
  540. font-size: 18px;
  541. text-indent: 9px;
  542. margin-bottom: 20px;
  543. width: 380px;
  544. margin: 0px 28px 20px 0px;
  545. float: left;
  546. word-break: keep-all;
  547. white-space: nowrap;
  548. overflow: hidden;
  549. text-overflow: ellipsis;
  550. }
  551. .ul_li:nth-of-type(-n+3) {
  552. font-weight: bold;
  553. }
  554. .ul_li:nth-of-type(3n) {
  555. margin-right: 0px;
  556. }
  557. .ul_li::before {
  558. content: '';
  559. position: absolute;
  560. left: 0px;
  561. top: 10px;
  562. width: 4px;
  563. height: 4px;
  564. background: #F2F2F2;
  565. border-radius: 2px;
  566. }
  567. }
  568. }
  569. .box_4 {
  570. height: px;
  571. overflow: hidden;
  572. .ul_head {
  573. height: 47px;
  574. border-bottom: solid 1px #93969A;
  575. border-top: solid 1px #DCDDDF;
  576. margin: 0px;
  577. box-sizing: border-box;
  578. }
  579. .ul_head * {
  580. float: left;
  581. height: 100%;
  582. line-height: 47px;
  583. box-sizing: border-box;
  584. font-weight: bold;
  585. color: #333;
  586. font-size: 20px;
  587. margin-right: 30px;
  588. }
  589. .ul_head .ul_head_only {
  590. color: #A72213;
  591. border-bottom: solid 2px #A72213;
  592. }
  593. .card_out {
  594. margin-top: 20px;
  595. .img_ul {
  596. height: 180px;
  597. }
  598. .img_ul_li {
  599. float: left;
  600. width: 285px;
  601. height: 180px;
  602. margin-right: 20px;
  603. position: relative;
  604. }
  605. .img_ul_li:nth-last-of-type(1) {
  606. margin-right: 0px;
  607. float: right;
  608. }
  609. .img_ul_li:nth-last-of-type(2) {
  610. margin-right: 0px;
  611. }
  612. .img_ul_li_a {
  613. display: block;
  614. width: 100%;
  615. height: 100%;
  616. }
  617. .img_ul_li_img {
  618. display: block;
  619. width: 100%;
  620. height: 100%;
  621. }
  622. .img_ul_li_dot1 {
  623. height: 29px;
  624. line-height: 29px;
  625. color: #fff;
  626. box-sizing: border-box;
  627. font-size: 14px;
  628. position: absolute;
  629. font-weight: bold;
  630. display: block;
  631. padding: 0px 15px;
  632. width: 100%;
  633. left: 0px;
  634. bottom: 0px;
  635. text-align: center;
  636. background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7));
  637. word-break: keep-all;
  638. white-space: nowrap;
  639. overflow: hidden;
  640. text-overflow: ellipsis;
  641. }
  642. .ul_box {
  643. margin-top: 0px;
  644. a {
  645. color: #333333;
  646. }
  647. }
  648. .ul_li {
  649. line-height: 24px;
  650. height: 24px;
  651. position: relative;
  652. color: #333;
  653. font-size: 18px;
  654. text-indent: 9px;
  655. margin-bottom: 20px;
  656. width: 380px;
  657. margin: 0px 28px 20px 0px;
  658. float: left;
  659. word-break: keep-all;
  660. white-space: nowrap;
  661. overflow: hidden;
  662. text-overflow: ellipsis;
  663. }
  664. .ul_li:nth-of-type(-n+3) {
  665. font-weight: bold;
  666. }
  667. .ul_li:nth-of-type(3n) {
  668. margin-right: 0px;
  669. }
  670. .ul_li::before {
  671. content: '';
  672. position: absolute;
  673. left: 0px;
  674. top: 10px;
  675. width: 4px;
  676. height: 4px;
  677. background: #F2F2F2;
  678. border-radius: 2px;
  679. }
  680. }
  681. }
  682. </style>