_id.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869
  1. <template>
  2. <section class="cotainer">
  3. <!-- 面包屑部分 -->
  4. <div id="bread-nav">
  5. <div class="brand-nav-box clearfix">
  6. <div class="brand-nav-content">
  7. <div class="brand-nav-title">
  8. <span>当前位置:</span>
  9. </div>
  10. <div class="brand-nav-list">
  11. <ul>
  12. <li>
  13. <nuxt-link target="_blank" to="/">首页</nuxt-link>
  14. </li>
  15. <li>></li>
  16. <li class="brand-nav-products">
  17. <nuxt-link target="_blank" to="/news">新闻中心</nuxt-link>
  18. </li>
  19. <li>></li>
  20. <template v-for="(item,index) in $store.state.headNewsNav">
  21. <li
  22. class="brand-nav-prod-list"
  23. :key="item.articleCategoryId"
  24. v-if=" (index + 1) == $route.query.category"
  25. >
  26. <nuxt-link
  27. target="_blank"
  28. :to="{name: 'news-category',params: {category: item.articleCategoryId}}"
  29. >{{item.articleCategoryName}}</nuxt-link>
  30. </li>
  31. </template>
  32. </ul>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <!-- 面包屑部分结束 -->
  38. <!-- News View details start-->
  39. <div id="news-view">
  40. <div class="news-view-box">
  41. <div class="news-view-details-wrap">
  42. <div class="news-view-title-box">
  43. <div class="news-view-title">
  44. <h1>{{articleData.articleName}}</h1>
  45. </div>
  46. <div class="news-view-info">
  47. <div class="news-view-sort">
  48. <span class="news-view-info-title">分类:</span>
  49. <span class="news-view-sort-cont">{{articleData.articleCategory.articleCategoryName}}</span>
  50. </div>
  51. <div class="news-view-edit">
  52. <span class="news-view-info-title">编辑:</span>
  53. <span class="news-view-edit-cont">{{articleData.articleEditor.articleEditorName}}</span>
  54. </div>
  55. <div class="news-view-access">
  56. <span class="news-view-info-title">访问:</span>
  57. <span class="news-view-access-cont">{{articleData.pageViews.pageViewsCount}}</span>
  58. </div>
  59. <div class="news-view-time">
  60. <span class="news-view-info-title">发布:</span>
  61. <span class="news-view-time-cont">{{articleData.articleAddTime}}</span>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="news-view-details" v-html="articleData.articleText"></div>
  66. </div>
  67. <div class="news-view-other" v-if="preNextData.length == 1">
  68. <div class="news-view-prev" v-if="preNextData[0].articleId < this.$route.params.id">
  69. <nuxt-link
  70. :to="{name:'news-newsView-id',params:{id:preNextData[0].articleId},query: {category:preNextData[0].articleCategoryId}}"
  71. >
  72. <span>上一篇:</span>
  73. <span class="news-view-prev-title">{{preNextData[0].articleName}}</span>
  74. </nuxt-link>
  75. </div>
  76. <div class="news-view-next" v-if=" preNextData[0].articleId > this.$route.params.id">
  77. <nuxt-link
  78. :to="{name:'news-newsView-id',params:{id:preNextData[0].articleId},query: {category:preNextData[0].articleCategoryId}}"
  79. >
  80. <span>下一篇:</span>
  81. <span class="news-view-next-title">{{preNextData[0].articleName}}</span>
  82. </nuxt-link>
  83. </div>
  84. </div>
  85. <div class="news-view-other" v-if="preNextData.length == 2">
  86. <div class="news-view-prev">
  87. <nuxt-link
  88. :to="{name:'news-newsView-id',params:{id:preNextData[0].articleId},query: {category:preNextData[0].articleCategoryId}}"
  89. >
  90. <span>上一篇:</span>
  91. <span class="news-view-prev-title">{{preNextData[0].articleName}}</span>
  92. </nuxt-link>
  93. </div>
  94. <div class="news-view-next">
  95. <nuxt-link
  96. :to="{name:'news-newsView-id',params:{id:preNextData[1].articleId},query: {category:preNextData[1].articleCategoryId}}"
  97. >
  98. <span>下一篇:</span>
  99. <span class="news-view-next-title">{{preNextData[1].articleName}}</span>
  100. </nuxt-link>
  101. </div>
  102. </div>
  103. <div class="news-view-share-box clearfix">
  104. <div class="news-view-tag-box">
  105. <div class="news-view-tag">
  106. <a href="javascript:viod(0);">{{articleData.labelList[0].articleLabelName}}</a>
  107. </div>
  108. <div class="news-view-tag">
  109. <a href="javascript:viod(0);">{{articleData.labelList[1].articleLabelName}}</a>
  110. </div>
  111. </div>
  112. <div class="news-view-share">
  113. <div class="bdsharebuttonbox">
  114. <a href="#" class="bds_more" data-cmd="more"></a>
  115. <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
  116. <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
  117. <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
  118. <a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <!-- News Views details end-->
  125. <!-- Related Article Start-->
  126. <div id="related-article">
  127. <div class="related-article-box">
  128. <div class="related-article-title">
  129. <p>相关文章</p>
  130. </div>
  131. <div class="related-article-list-box">
  132. <div class="related-article-left">
  133. <ul>
  134. <template v-for="(list,index) in relatedArticleData">
  135. <li
  136. class="related-article-list"
  137. :key="list.articleId"
  138. v-if="index<4"
  139. >
  140. <div class="related-article-list-title">
  141. <nuxt-link
  142. target="_blank"
  143. :to="{name: 'news-newsView-id',params:{id:list.articleId},query: {category: list.articleCategoryId}}"
  144. >{{list.articleName}}</nuxt-link>
  145. </div>
  146. </li>
  147. </template>
  148. </ul>
  149. </div>
  150. <div class="related-article-right">
  151. <ul>
  152. <template v-for="(list,index) in relatedArticleData">
  153. <li
  154. class="related-article-list"
  155. :key="list.articleId"
  156. v-if="index>3"
  157. >
  158. <div class="related-article-list-title">
  159. <nuxt-link
  160. target="_blank"
  161. :to="{name: 'news-newsView-id',params:{id:list.articleId},query: {category: list.articleCategoryId}}"
  162. >{{list.articleName}}</nuxt-link>
  163. </div>
  164. </li>
  165. </template>
  166. </ul>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <!-- Related Article End-->
  172. <!-- Latest Articles start-->
  173. <div id="latest-article">
  174. <div class="latest-article-box">
  175. <div class="latest-article-title">
  176. <p>最新文章</p>
  177. </div>
  178. <div class="latest-article-list-box">
  179. <ul>
  180. <li class="latest-article-list" v-for="list in latestArticleData" :key="list.articleId">
  181. <div class="latest-article-list-title">
  182. <nuxt-link
  183. target="_blank"
  184. :to="{name: 'news-newsView-id',params:{id:list.articleId},query: {category: list.articleCategoryId}}"
  185. >{{list.articleName}}</nuxt-link>
  186. </div>
  187. </li>
  188. </ul>
  189. </div>
  190. </div>
  191. </div>
  192. <!-- Latest Articles end-->
  193. <!-- Love Products Start-->
  194. <div id="love-products">
  195. <div class="love-products-box">
  196. <div class="love-products-title">
  197. <p>猜你喜欢</p>
  198. </div>
  199. <div class="love-products-list-box">
  200. <ul>
  201. <li class="love-products-list" v-for="list in loveArticleData" :key="list.articleId">
  202. <div class="love-products-list-img">
  203. <nuxt-link
  204. target="_blank"
  205. :to="{name: 'news-newsView-id',params:{id:list.articleId},query: {category: list.articleCategoryId}}"
  206. >
  207. <img :src="list.articleImg.articleImgSrc" :alt="list.articleImg.articleImgAlt">
  208. </nuxt-link>
  209. </div>
  210. <div class="love-products-list-title">
  211. <nuxt-link
  212. target="_blank"
  213. :to="{name: 'news-newsView-id',params:{id:list.articleId},query: {category: list.articleCategoryId}}"
  214. >{{list.articleName}}</nuxt-link>
  215. </div>
  216. </li>
  217. </ul>
  218. </div>
  219. </div>
  220. </div>
  221. <!-- Love Products End-->
  222. </section>
  223. </template>
  224. <script>
  225. import axios from "axios";
  226. export default {
  227. data() {
  228. return {};
  229. },
  230. validate({ params }) {
  231. return /^\d+$/.test(params.id);
  232. },
  233. async asyncData({ params, query, store }) {
  234. console.log(params);
  235. console.log(query);
  236. let id = params.id;
  237. let parId = query.category;
  238. //详情数据
  239. let articleData = await axios.get(
  240. `${store.state.wordpressAPI}/article/getArticleDetails/${id}`
  241. );
  242. //上下篇数据
  243. let preNextData = await axios.get(
  244. `${
  245. store.state.wordpressAPI
  246. }/article/getArticleNextAndBefore/${parId}/${id}`
  247. );
  248. //相关文章
  249. let relatedArticleData = await axios.get(
  250. `${store.state.wordpressAPI}/article/getRecommendsByCategoryId/${parId}/8`
  251. );
  252. //最新文章
  253. let latestArticleData = await axios.get(
  254. `${store.state.wordpressAPI}/article/getArticleNew/6`
  255. );
  256. //猜你喜欢
  257. let loveArticleData = await axios.get(
  258. `${store.state.wordpressAPI}/article/getArticleRandom`
  259. );
  260. return {
  261. articleData: articleData.data,
  262. preNextData: preNextData.data.list,
  263. relatedArticleData: relatedArticleData.data,
  264. latestArticleData: latestArticleData.data,
  265. loveArticleData: loveArticleData.data,
  266. };
  267. },
  268. head() {
  269. return {
  270. title: this.articleData.articleMetaTitle,
  271. meta: [
  272. {
  273. name: "keywords",
  274. hid: "keywords",
  275. content: `${this.articleData.articleKeyWord}`,
  276. },
  277. {
  278. name: "description",
  279. hid: "description",
  280. content: `${this.articleData.articleMetaDescription}`,
  281. },
  282. ],
  283. };
  284. },
  285. mounted() {
  286. this.$nextTick(function() {
  287. window._bd_share_config = {
  288. common: {
  289. bdSnsKey: {},
  290. bdText: "",
  291. bdMini: "1",
  292. bdMiniList: [
  293. "qzone",
  294. "tsina",
  295. "weixin",
  296. "sqq",
  297. "duitang",
  298. "hx",
  299. "fx",
  300. "youdao",
  301. "sdo",
  302. "qingbiji",
  303. "people",
  304. "xinhua",
  305. "mail",
  306. "isohu",
  307. "yaolan",
  308. "wealink",
  309. "ty",
  310. "iguba",
  311. "fbook",
  312. "twi",
  313. "linkedin",
  314. "h163",
  315. "evernotecn",
  316. "copy",
  317. "print",
  318. ],
  319. bdPic: "",
  320. bdStyle: "2",
  321. bdSize: "32",
  322. },
  323. share: {},
  324. };
  325. const s = document.createElement("script");
  326. s.type = "text/javascript";
  327. s.src =
  328. "http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=" +
  329. ~(-new Date() / 36e5);
  330. document.body.appendChild(s);
  331. });
  332. },
  333. };
  334. </script>
  335. <style type="text/css" scoped>
  336. /*面包屑部分*/
  337. div#bread-nav {
  338. width: 100%;
  339. height: auto;
  340. }
  341. #bread-nav {
  342. position: relative;
  343. }
  344. #bread-nav .brand-nav-content {
  345. float: left;
  346. }
  347. .brand-nav-box {
  348. width: 1200px;
  349. margin: 0 auto;
  350. color: #858585;
  351. font-size: 14px;
  352. text-align: left;
  353. line-height: 70px;
  354. }
  355. .brand-nav-content {
  356. float: left;
  357. }
  358. .brand-nav-title {
  359. float: left;
  360. }
  361. .brand-nav-list {
  362. float: left;
  363. overflow: hidden;
  364. }
  365. .brand-nav-list ul {
  366. overflow: hidden;
  367. }
  368. .brand-nav-list ul li {
  369. float: left;
  370. padding: 0 5px;
  371. }
  372. .brand-nav-list ul li a {
  373. display: block;
  374. width: 100%;
  375. height: 100%;
  376. color: #858585;
  377. }
  378. .brand-nav-list ul li:last-child a {
  379. color: #22202b;
  380. }
  381. .brand-nav-list ul li a:hover {
  382. color: #22202b;
  383. }
  384. /*面包屑部分结束*/
  385. /*News Views details start*/
  386. div#news-view {
  387. display: -webkit-flex;
  388. display: -moz-flex;
  389. display: -ms-flex;
  390. display: -o-flex;
  391. display: flex;
  392. width: 100%;
  393. height: auto;
  394. }
  395. .news-view-box {
  396. overflow: hidden;
  397. width: 1200px;
  398. height: auto;
  399. margin: 0 auto;
  400. }
  401. .news-view-title-box {
  402. width: 100%;
  403. height: auto;
  404. padding: 60px 0 48px;
  405. border-bottom: 2px solid #d5d5d8;
  406. box-sizing: border-box;
  407. }
  408. .news-view-title {
  409. overflow: hidden;
  410. width: 100%;
  411. height: 68px;
  412. color: #22202b;
  413. font-size: 30px;
  414. line-height: 68px;
  415. text-align: center;
  416. }
  417. .news-view-title h1 {
  418. font-size: 30px;
  419. font-weight: normal;
  420. }
  421. .news-view-info {
  422. display: flex;
  423. overflow: hidden;
  424. width: 100%;
  425. height: 50px;
  426. justify-content: center;
  427. align-items: center;
  428. color: #858585;
  429. font-size: 14px;
  430. text-align: center;
  431. line-height: 50px;
  432. }
  433. .news-view-info div {
  434. margin: 0 6px;
  435. }
  436. .news-view-details {
  437. overflow: hidden;
  438. width: 100%;
  439. height: auto;
  440. padding: 95px 0 70px;
  441. font-size: 14px;
  442. text-align: left;
  443. line-height: 20px;
  444. }
  445. p.news-view-details-title {
  446. color: #22202b;
  447. font-size: 18px;
  448. line-height: 32px;
  449. }
  450. .news-view-other {
  451. overflow: hidden;
  452. width: 100%;
  453. height: 34px;
  454. padding-bottom: 30px;
  455. color: #22202b;
  456. font-size: 14px;
  457. line-height: 34px;
  458. }
  459. .news-view-prev {
  460. float: left;
  461. overflow: hidden;
  462. width: 50%;
  463. text-align: left;
  464. }
  465. .news-view-next {
  466. float: right;
  467. overflow: hidden;
  468. width: 50%;
  469. text-align: right;
  470. }
  471. .news-view-other a {
  472. color: #22202b;
  473. }
  474. .news-view-other a:hover {
  475. color: #ccc;
  476. }
  477. .news-view-share-box {
  478. width: 100%;
  479. height: auto;
  480. padding: 40px 0 45px;
  481. border-top: 2px solid #d5d5d8;
  482. }
  483. .news-view-tag-box {
  484. float: left;
  485. overflow: hidden;
  486. }
  487. .news-view-tag {
  488. float: left;
  489. width: 103px;
  490. height: 32px;
  491. border: 2px solid #000;
  492. box-sizing: border-box;
  493. font-size: 12px;
  494. line-height: 28px;
  495. text-align: center;
  496. }
  497. .news-view-tag-box a {
  498. display: block;
  499. width: 100%;
  500. height: 100%;
  501. color: #000;
  502. -webkit-transition: all 0.5s ease;
  503. -o-transition: all 0.5s ease;
  504. transition: all 0.5s ease;
  505. }
  506. .news-view-tag-box a:hover {
  507. background: #000;
  508. color: #feeabd;
  509. }
  510. .news-view-tag-box .news-view-tag:first-child {
  511. margin-right: 17px;
  512. }
  513. .news-view-share {
  514. float: right;
  515. }
  516. .news-view-share .bdshare-button-style2-32 a {
  517. margin: 0 7px;
  518. }
  519. a.bds_more {
  520. display: none;
  521. }
  522. .news-view-share .bdshare-button-style2-32 a.bds_tsina {
  523. background: url('~assets/images/news-view/bds_tsina.png') center center
  524. no-repeat;
  525. }
  526. .news-view-share .bdshare-button-style2-32 a.bds_weixin {
  527. background: url('~assets/images/news-view/bds_weixin.png') center center
  528. no-repeat;
  529. }
  530. .news-view-share .bdshare-button-style2-32 a.bds_qzone {
  531. background: url('~assets/images/news-view/bds_qzone.png') center center
  532. no-repeat;
  533. }
  534. .news-view-share .bdshare-button-style2-32 a.bds_sqq {
  535. background: url('~assets/images/news-view/bds_sqq.png') center center no-repeat;
  536. }
  537. .news-view-share .bdshare-button-style2-32 a.bds_tsina:hover {
  538. opacity: 1;
  539. filter: alpha(opacity=100);
  540. background: url('~assets/images/news-view/bds_tsina_hover.png') center center
  541. no-repeat;
  542. }
  543. .news-view-share .bdshare-button-style2-32 a.bds_weixin:hover {
  544. opacity: 1;
  545. filter: alpha(opacity=100);
  546. background: url('~assets/images/news-view/bds_weixin_hover.png') center center
  547. no-repeat;
  548. }
  549. .news-view-share .bdshare-button-style2-32 a.bds_qzone:hover {
  550. opacity: 1;
  551. filter: alpha(opacity=100);
  552. background: url('~assets/images/news-view/bds_qzone_hover.png') center center
  553. no-repeat;
  554. }
  555. .news-view-share .bdshare-button-style2-32 a.bds_sqq:hover {
  556. opacity: 1;
  557. filter: alpha(opacity=100);
  558. background: url('~assets/images/news-view/bds_sqq_hover.png') center center
  559. no-repeat;
  560. }
  561. /*News Views details end*/
  562. /*Related Article Start*/
  563. div#related-article {
  564. width: 100%;
  565. height: auto;
  566. }
  567. .related-article-box {
  568. overflow: hidden;
  569. width: 1200px;
  570. height: auto;
  571. margin: 0 auto;
  572. }
  573. .related-article-title {
  574. width: 100%;
  575. height: 76px;
  576. border-bottom: 2px solid #d5d5d8;
  577. color: #22202b;
  578. font-size: 22px;
  579. line-height: 74px;
  580. text-align: left;
  581. box-sizing: border-box;
  582. }
  583. .related-article-list-box {
  584. overflow: hidden;
  585. width: 100%;
  586. height: auto;
  587. padding: 71px 0 54px;
  588. }
  589. .related-article-left {
  590. float: left;
  591. width: 600px;
  592. height: 104px;
  593. padding-left: 220px;
  594. box-sizing: border-box;
  595. background: url('~assets/images/news-list/recom-article-left-bg.png') left
  596. center no-repeat;
  597. }
  598. .related-article-right {
  599. float: right;
  600. width: 600px;
  601. height: 104px;
  602. padding-left: 220px;
  603. box-sizing: border-box;
  604. background: url('~assets/images/news-list/recom-article-left-bg.png') left
  605. center no-repeat;
  606. }
  607. li.related-article-list {
  608. overflow: hidden;
  609. width: 345px;
  610. height: 26px;
  611. }
  612. .related-article-list-title {
  613. position: relative;
  614. width: 100%;
  615. height: 100%;
  616. padding-left: 6px;
  617. box-sizing: border-box;
  618. font-size: 14px;
  619. text-align: left;
  620. line-height: 26px;
  621. }
  622. .related-article-list-title::after {
  623. position: absolute;
  624. top: 50%;
  625. left: 0;
  626. content: "";
  627. width: 2px;
  628. height: 2px;
  629. border-radius: 50%;
  630. background: #22202b;
  631. }
  632. .related-article-list-title a {
  633. display: block;
  634. overflow: hidden;
  635. width: 100%;
  636. height: 100%;
  637. color: #999999;
  638. text-overflow: ellipsis;
  639. white-space: nowrap;
  640. }
  641. .related-article-list-title a:hover {
  642. color: #000;
  643. }
  644. /*Related Article End*/
  645. /*Love Products Start*/
  646. div#love-products {
  647. width: 100%;
  648. height: auto;
  649. }
  650. .love-products-box {
  651. overflow: hidden;
  652. width: 1200px;
  653. height: auto;
  654. margin: 0 auto;
  655. }
  656. .love-products-title {
  657. width: 100%;
  658. height: 76px;
  659. border-bottom: 2px solid #d5d5d8;
  660. color: #22202b;
  661. font-size: 22px;
  662. line-height: 74px;
  663. text-align: left;
  664. box-sizing: border-box;
  665. }
  666. .love-products-list-box {
  667. width: 100%;
  668. height: auto;
  669. padding: 43px 0 133px;
  670. }
  671. .love-products-list-box ul {
  672. overflow: hidden;
  673. width: 100%;
  674. }
  675. li.love-products-list {
  676. float: left;
  677. width: 200px;
  678. height: auto;
  679. margin-left: 50px;
  680. }
  681. .love-products-list-box ul li:first-child {
  682. margin-left: 0px;
  683. }
  684. .love-products-list-img {
  685. overflow: hidden;
  686. width: 100%;
  687. height: 105px;
  688. }
  689. .love-products-list-img img {
  690. width: 100%;
  691. height: 100%;
  692. -webkit-transition: all 0.5s ease;
  693. -o-transition: all 0.5s ease;
  694. transition: all 0.5s ease;
  695. }
  696. .love-products-list-img img:hover {
  697. -webkit-transform: scale(1.2);
  698. -ms-transform: scale(1.2);
  699. -o-transform: scale(1.2);
  700. transform: scale(1.2);
  701. }
  702. .love-products-list-title {
  703. overflow: hidden;
  704. width: 100%;
  705. height: 45px;
  706. color: #999;
  707. font-size: 14px;
  708. line-height: 45px;
  709. text-align: center;
  710. }
  711. .love-products-list-title a {
  712. display: block;
  713. overflow: hidden;
  714. width: 100%;
  715. height: 100%;
  716. padding: 0 10px;
  717. color: #999;
  718. box-sizing: border-box;
  719. text-overflow: ellipsis;
  720. white-space: nowrap;
  721. }
  722. .love-products-list-title a:hover {
  723. color: #000;
  724. }
  725. /*Love Products End*/
  726. /*Latest Articles start*/
  727. div#latest-article {
  728. width: 100%;
  729. height: auto;
  730. }
  731. .latest-article-box {
  732. overflow: hidden;
  733. width: 1200px;
  734. height: auto;
  735. margin: 0 auto;
  736. }
  737. .latest-article-title {
  738. width: 100%;
  739. height: 76px;
  740. border-bottom: 2px solid #d5d5d8;
  741. color: #22202b;
  742. font-size: 22px;
  743. line-height: 74px;
  744. text-align: left;
  745. box-sizing: border-box;
  746. }
  747. .latest-article-list-box {
  748. overflow: hidden;
  749. width: 100%;
  750. height: auto;
  751. padding: 40px 0 20px;
  752. }
  753. .latest-article-list-box ul {
  754. overflow: hidden;
  755. width: 100%;
  756. }
  757. li.latest-article-list {
  758. float: left;
  759. overflow: hidden;
  760. width: 400px;
  761. height: 26px;
  762. }
  763. .latest-article-list-title {
  764. position: relative;
  765. width: 100%;
  766. height: 100%;
  767. padding-left: 6px;
  768. box-sizing: border-box;
  769. font-size: 14px;
  770. text-align: left;
  771. line-height: 26px;
  772. }
  773. .latest-article-list-title::after {
  774. position: absolute;
  775. top: 50%;
  776. left: 0;
  777. content: "";
  778. width: 2px;
  779. height: 2px;
  780. border-radius: 50%;
  781. background: #22202b;
  782. }
  783. .latest-article-list-title a {
  784. display: block;
  785. overflow: hidden;
  786. width: 100%;
  787. height: 100%;
  788. color: #999999;
  789. text-overflow: ellipsis;
  790. white-space: nowrap;
  791. }
  792. .latest-article-list-title a:hover {
  793. color: #000;
  794. }
  795. /*Latest Articles end*/
  796. </style>