Commit 1630a6b0a864a585ce012e7fdfed8a8e4ac6a643
1 parent
9ba24acd
add 新闻动态
Showing
2 changed files
with
208 additions
and
1 deletions
webintroduce/src/assets/images/point.png
0 → 100644
90 Bytes
webintroduce/src/views/home.vue
... | ... | @@ -74,6 +74,24 @@ |
74 | 74 | </ul> |
75 | 75 | </div> |
76 | 76 | </div> |
77 | + <!--新闻动态--> | |
78 | + <div class="features index-news-section"> | |
79 | + <div class="section-title"> | |
80 | + <h2>新闻动态</h2> | |
81 | + </div> | |
82 | + <div class="news-bd"> | |
83 | + <div class="focus swiper-container swiper-container-horizontal" id="swiper-container-news"> | |
84 | + </div> | |
85 | + <div class="newslist"> | |
86 | + <ul> | |
87 | + <li v-for="(news,index) in newsLists" :key="index" @click=""> | |
88 | + <p class="pos-rel red-slide"> <a data-href="" title="">{{news.newsTitle}}<span class="pos-abs" style="bottom: 0px;right: 2px;color: rgba(0,0,0,0.3);font-size: 12px">{{news.time}}</span> </a> | |
89 | + </p> | |
90 | + </li> | |
91 | + </ul> | |
92 | + </div> | |
93 | + </div> | |
94 | + </div> | |
77 | 95 | </div> |
78 | 96 | </template> |
79 | 97 | |
... | ... | @@ -100,7 +118,69 @@ export default { |
100 | 118 | disableOnInteraction: false, |
101 | 119 | delay: 3000 |
102 | 120 | }, |
103 | - } | |
121 | + }, | |
122 | + newsLists:[ | |
123 | + { | |
124 | + "href":"https://mp.weixin.qq.com/s/NcWXfcxjy5t-sqG2yFg6JQ", | |
125 | + "newsTitle":"【公司要闻】中兴智能交通建设甘肃省周边“一带一路”沿线城市的智慧停车", | |
126 | + "img":"http://www.zte-its.com/Upload/2019-01/20190107134910953.jpg", | |
127 | + "time":"2019-01-06" | |
128 | + }, | |
129 | + { | |
130 | + "href":"https://mp.weixin.qq.com/s/bO_1as7-8enGR7g4sI_6lw", | |
131 | + "newsTitle":"【公司要闻】年度盘点丨2018,中兴智能交通铸就辉煌", | |
132 | + "img":"http://www.zte-its.com/Upload/2019-01/20190107120328342.jpg", | |
133 | + "time":"2018-12-30" | |
134 | + }, | |
135 | + { | |
136 | + "href":"https://mp.weixin.qq.com/s/ZJCdWCWCkrxtmOCep9fvwQ", | |
137 | + "newsTitle":"【公司要闻】中兴智能交通荣获”2018中国城市无人化停车十大创新方案”称号", | |
138 | + "img":"http://www.zte-its.com/Upload/2019-01/20190114111641907.jpg", | |
139 | + "time":"2019-01-14" | |
140 | + }, | |
141 | + { | |
142 | + "href":"https://mp.weixin.qq.com/s/ilplSVvIBUt0sDtqTgsgbw", | |
143 | + "newsTitle":"【公司要闻】2018年年底,赤峰智慧停车项目正式上线运营", | |
144 | + "img":"http://www.zte-its.com/ckfinder/userfiles/images/Snap2(34).jpg", | |
145 | + "time":"2018-12-26" | |
146 | + }, | |
147 | + { | |
148 | + "href":"https://mp.weixin.qq.com/s/j4FJmW-dAMAKK8WBilHSzw", | |
149 | + "newsTitle":"【公司要闻】中兴智能交通应邀出席“2018第三届中国物联网国际峰会”", | |
150 | + "img":"http://www.zte-its.com/Upload/2018-05/20180529172415999.jpg", | |
151 | + "time":"2018-05-15" | |
152 | + }, | |
153 | + { | |
154 | + "href":"https://mp.weixin.qq.com/s/Q3V4F0PHm0cS7a-zlXx6OA", | |
155 | + "newsTitle":"【行业动态】贵州机动车停放收费新规5月起试行 小区停车费由业主大会决定", | |
156 | + "img":"http://www.zte-its.com/Upload/2018-08/20180808173733771.jpg", | |
157 | + "time":"2018-04-24" | |
158 | + }, | |
159 | + { | |
160 | + "href":"https://mp.weixin.qq.com/s/BEyfUDkfrZqLokZxoKp04Q", | |
161 | + "newsTitle":"【行业动态】广州停车场条例10月起施行 小区停车收费标准先议价", | |
162 | + "img":"http://www.zte-its.com/Upload/2018-09/20180918095140370.jpg", | |
163 | + "time":"2018-04-24" | |
164 | + }, | |
165 | + { | |
166 | + "href":"https://mp.weixin.qq.com/s/-ltsBzboxdeCzwz4-nOy0Q", | |
167 | + "newsTitle":"【行业动态】2018雄安新区停车设备设施投资建设高峰论坛暨博览会隆重召开!", | |
168 | + "img":"https://mmbiz.qpic.cn/mmbiz_jpg/eRs8EuRTNC1tBsAtYFuuFx3SgKrPpkMYib3bP9kBKnxqcwcosVOUc5iaF4hQ9JkHfZib0SWuANXAuzI8u4vzWgDFA/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1", | |
169 | + "time":"2018-04-20" | |
170 | + }, | |
171 | + { | |
172 | + "href":"https://mp.weixin.qq.com/s/3tWOAvnXl5T78TzBPgWszA", | |
173 | + "newsTitle":"【行业动态】滴滴发布企业公民报告:让城市交通更智慧 运行更高效", | |
174 | + "img":"https://mmbiz.qpic.cn/mmbiz_jpg/uWQ5Iz1kD2bHvLt6DEdN4ib00PeTsmxiaTye2BHMuxXSD7Z51HnBicxNc53FeZceD2ZiaJ4Eq4ft9cHY9Uib1CXNzIA/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1", | |
175 | + "time":"2018-04-20" | |
176 | + }, { | |
177 | + "href":"https://mp.weixin.qq.com/s/ZrDwirjt0JTntmcCI5L4Ag", | |
178 | + "newsTitle":"【行业动态】昆明停车管理新规 力图破解“圈地收费”乱象", | |
179 | + "img":"http://www.zte-its.com/Upload/2018-05/20180529173902781.jpg", | |
180 | + "time":"2018-04-20" | |
181 | + } | |
182 | + | |
183 | + ] | |
104 | 184 | } |
105 | 185 | }, |
106 | 186 | computed: { |
... | ... | @@ -305,4 +385,131 @@ export default { |
305 | 385 | } |
306 | 386 | } |
307 | 387 | } |
388 | + | |
389 | + /*news */ | |
390 | + .section-title{ | |
391 | + text-align: center; | |
392 | + margin-bottom: 20px; | |
393 | + padding: 0 190px; | |
394 | + } | |
395 | + .section-title h2{ | |
396 | + font-size:36px; | |
397 | + font-weight: 500; | |
398 | + text-transform:uppercase; | |
399 | + padding-bottom:15px; | |
400 | + position:relative; | |
401 | + } | |
402 | + | |
403 | + /*news 新闻中心*/ | |
404 | + .index-news-section .news-bd{ | |
405 | + width: 1200px; | |
406 | + overflow: hidden; | |
407 | + margin: 0 auto; | |
408 | + } | |
409 | + .index-news-section .focus { | |
410 | + width: 476px !important; | |
411 | + height: 289px !important; | |
412 | + float: left; | |
413 | + position: relative; | |
414 | + } | |
415 | + .index-news-section .newslist { | |
416 | + width: 715px; | |
417 | + float: left; | |
418 | + margin-bottom: 10px; | |
419 | + } | |
420 | + .index-news-section .newslist ul { | |
421 | + padding: 15px 0; | |
422 | + overflow: hidden; | |
423 | + list-style: initial; | |
424 | + color: #797979; | |
425 | + } | |
426 | + .index-news-section .newslist li { | |
427 | + width: 326px; | |
428 | + height: 45px; | |
429 | + line-height: 22px; | |
430 | + float: left; | |
431 | + margin-left: 30px; | |
432 | + list-style: none; | |
433 | + text-align: left; | |
434 | + } | |
435 | + .index-news-section .newslist li { | |
436 | + margin-bottom: 10px; | |
437 | + background-image: url(../assets/images/point.png); | |
438 | + background-repeat: no-repeat; | |
439 | + background-position: 5px 7px; | |
440 | + } | |
441 | + .index-news-section .newslist li p { | |
442 | + padding-left: 10px; | |
443 | + margin-left: 8px; | |
444 | + height: 44px; | |
445 | + } | |
446 | + .newslist li a{ | |
447 | + color: rgba(0,0,0,.6); | |
448 | + display: block; | |
449 | + } | |
450 | + .pos-rel{ | |
451 | + position: relative; | |
452 | + } | |
453 | + .pos-abs{ | |
454 | + position: absolute; | |
455 | + } | |
456 | + /*轮播 */ | |
457 | + .news_a { | |
458 | + position: relative; | |
459 | + overflow: hidden; | |
460 | + display: block; | |
461 | + width: 100%; | |
462 | + height: 272px; | |
463 | + } | |
464 | + .news_title { | |
465 | + display: block; | |
466 | + position: absolute; | |
467 | + bottom: 0; | |
468 | + padding: 10px; | |
469 | + width: 100%; | |
470 | + background: rgba(0,0,0,0.5); | |
471 | + color: #fff; | |
472 | + font-size: 16px; | |
473 | + border-radius: 0 0 5px 5px; | |
474 | + text-align: left; | |
475 | + } | |
476 | + .news_title p { | |
477 | + margin: 0; | |
478 | + width: 65%; | |
479 | + text-overflow: ellipsis; | |
480 | + overflow: hidden; | |
481 | + white-space: nowrap; | |
482 | + } | |
483 | + .news_a img { | |
484 | + width: 100%; | |
485 | + height: 272px; | |
486 | + } | |
487 | + .pagination{ | |
488 | + position: absolute; | |
489 | + z-index: 20; | |
490 | + right: 10px; | |
491 | + bottom: 10px; | |
492 | + margin: 0; | |
493 | + height: 20px; | |
494 | + } | |
495 | + .news-pagination{ | |
496 | + right: 0px !important; | |
497 | + bottom: 30px !important; | |
498 | + width: 120px !important; | |
499 | + margin-left: 340px; | |
500 | + } | |
501 | + .news-pagination .swiper-pagination-bullet{ | |
502 | + width:28px; | |
503 | + height:4px; | |
504 | + background:rgba(255,255,255,1); | |
505 | + opacity: 0.5; | |
506 | + border-radius:0; | |
507 | + } | |
508 | + .news-pagination .swiper-pagination-bullet-active{ | |
509 | + background:rgba(255,255,255,1); | |
510 | + opacity: 1 !important; | |
511 | + } | |
512 | + .red-slide{ | |
513 | + cursor: pointer; | |
514 | + } | |
308 | 515 | </style> | ... | ... |