news.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <link rel="shortcut icon" href="imgs/favicon.png" type="image/x-icon">
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>新闻中心</title>
  8. <link rel="stylesheet" href="css/css.css">
  9. <link rel="stylesheet" type="text/css" href="css/screen.css" />
  10. <link rel="stylesheet" type="text/css" href="css/style.css" />
  11. <link rel="stylesheet" type="text/css" href="css/cc-css-tools.css" />
  12. <link rel="stylesheet" href="css/main.min.css">
  13. <link rel="stylesheet" href="js/bootstrap-3.4.1-dist/css/bootstrap.min.css">
  14. <script src="js/jquery3.6.min.js"></script>
  15. <script src="js/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
  16. <style>
  17. .bannerbg {
  18. background: url(../images/bannerbg12.png) center center no-repeat;
  19. background-size: 100% 100%;
  20. }
  21. .content {
  22. margin: 0 6.25rem 0 6.25rem;
  23. }
  24. .content-box {
  25. display: flex;
  26. justify-content: space-between;
  27. height: 30rem;
  28. }
  29. .box-more {
  30. font-size: 16px;
  31. color: #000000;
  32. font-weight: 500;
  33. margin-top: 50px;
  34. cursor: pointer;
  35. }
  36. .box-img {
  37. width: 48%;
  38. background-size: 100%;
  39. color: #ffffff;
  40. position: relative;
  41. }
  42. .bgImg1 {
  43. background: url(../images/news2-1.jpg) center center no-repeat;
  44. }
  45. .bgImg2 {
  46. background: url(../images/news3.jpg) center center no-repeat;
  47. }
  48. .top-title {
  49. position: absolute;
  50. font-size: 18px;
  51. top: -20px;
  52. width: 80px;
  53. height: 80px;
  54. background-color: #3c137c;
  55. padding: 15px;
  56. text-align: center;
  57. font-weight: 600;
  58. }
  59. .left {
  60. left: 20px;
  61. }
  62. .right {
  63. right: 20px;
  64. }
  65. .bottom-text {
  66. position: absolute;
  67. font-size: 16px;
  68. text-align: center;
  69. padding: 10px 0px 10px 0px;
  70. bottom: 0;
  71. width: 100%;
  72. background-color: rgba(0, 0, 0, 0.4);
  73. font-weight: 600;
  74. color: #ffffff;
  75. }
  76. .box-text {
  77. width: 48%;
  78. background-color: #f7f7f7;
  79. padding: 20px;
  80. }
  81. .text-row {
  82. font-size: 16px;
  83. line-height: 43px;
  84. color: #000000;
  85. display: flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. cursor: pointer;
  89. }
  90. .row-left{
  91. width: 450px;
  92. overflow: hidden;
  93. text-overflow: ellipsis;
  94. display: -webkit-box;
  95. -webkit-box-orient: vertical;
  96. -webkit-line-clamp: 1;
  97. }
  98. .m-index{
  99. margin: 80px 0 80px 0;
  100. }
  101. .bannerNewsTitle {
  102. color: #000000;
  103. font-weight: 500;
  104. text-align: left;
  105. margin-left: 6.25rem;
  106. margin-bottom: 20px;
  107. }
  108. .ban_bd li a{
  109. box-shadow: none !important;
  110. border-radius: 0% !important;
  111. }
  112. .ban_bd li .text{
  113. padding: 5% 0 !important;
  114. }
  115. .ban_bd li p{
  116. height: 100% !important;
  117. }
  118. .ban_bd li .ban-img{
  119. height: 250px !important;
  120. }
  121. .prevbtn{
  122. width: 50px !important;
  123. height: 100px !important;
  124. background: url(../images/left-arrow.png) center center no-repeat !important;
  125. top: 25%;
  126. left: -1% !important;
  127. }
  128. .nextbtn{
  129. width: 50px !important;
  130. height: 100px !important;
  131. background: url(../images/right-arrow.png) center center no-repeat !important;
  132. top: 25%;
  133. right: -1% !important;
  134. }
  135. </style>
  136. </head>
  137. <body>
  138. <div class="navbgbox">
  139. <div class="navbg">
  140. <div class="nav about_nav">
  141. <div style="position: relative">
  142. <a href="index.html" class="nav_logo">
  143. <img src="images/dgt_logo.png" width="171" height="70">
  144. </a>
  145. <div class="guanggao">
  146. <strong style="color: #999999; margin-left : -140px; font-size: 14px">智慧科技 · 神州软件</strong>
  147. </div>
  148. </div>
  149. <div class="nav_a">
  150. <a href="index.html">首页</a>
  151. <a href="product.html">智慧企业</a>
  152. <a href="wisdom.html">智慧城市</a>
  153. <a href="fangan.html">解决方案</a>
  154. <a href="technology.html">技术服务</a>
  155. <a href="news.html" class="cur">新闻中心</a>
  156. <a href="about_us.html">关于我们</a>
  157. <a href="contact.html">联系我们</a>
  158. <!-- <img width="70px" src="imgs/QRcode1.jpg" alt=""> -->
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <div class="banner">
  164. <div class="bannerbg">
  165. <div class="shade">
  166. <div class="cc-tc-w bannerBoxTitle">
  167. <div class="bannerTitle">新闻中心</div>
  168. <div class="bannerTitle-eng">News Center</div>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. <div class="content">
  174. <div class="box-more" style="text-align: right;">
  175. <a href="newList.html?type=companyNews">更多</a>
  176. </div>
  177. <div class="content-box">
  178. <div class="box-img bgImg1">
  179. <div class="left top-title">公司新闻</div>
  180. <!-- <a href="newDetail3.html">
  181. <div class="bottom-text">清华大学小程序项目进入上线阶段</div>
  182. </a> -->
  183. </div>
  184. <div class="box-text companyNews">
  185. </div>
  186. </div>
  187. <div class="box-more">
  188. <a href="newList.html?type=industryInfo">更多</a>
  189. </div>
  190. <div class="content-box">
  191. <div class="box-text industryInfo"></div>
  192. <div class="box-img bgImg2">
  193. <div class="right top-title">行业资讯</div>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="m-index">
  198. <div style="background-color: #eee; padding-bottom: 10px;" class="index-third">
  199. <div style="display: flex;justify-content: space-between;align-items: center;">
  200. <h2 class="bannerNewsTitle">公司动态</h2>
  201. <div style="margin-right: 6.25rem;font-size: 16px;">
  202. <a href="newList.html?type=companyDynamic">更多</a>
  203. </div>
  204. </div>
  205. <div class="f-in" style="max-width: 100%">
  206. <div class="third-box">
  207. <div class="m-slide" style="width: 1250px;margin: 0 auto;">
  208. <div id="index-case" class="index_banner" style="background-color: #ffffff;padding: 30px 0 10px 0;">
  209. <div class="ban_hd">
  210. <ul></ul>
  211. </div>
  212. <div class="ban_bd">
  213. <div class="tempWrap" style="overflow:hidden; position:relative; width:1251px">
  214. <ul class="companyDynamics">
  215. </ul>
  216. </div>
  217. </div>
  218. <div class="prevbtn"></div>
  219. <div class="nextbtn"></div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="footerbg">
  227. <div style="height: auto;" class="footer">
  228. <div>
  229. <span><a href="index.html">首页</a>|</span><span><a href="product.html">智慧企业</a>|</span><span><a
  230. href="wisdom.html">智慧城市</a>|</span><span><a href="fangan.html">解决方案</a>|</span><span><a
  231. href="technology.html">技术服务</a>|</span><span><a href="news.html">新闻中心</a>|</span><span><a
  232. href="about_us.html">关于我们</a>|</span><span><a href="contact.html">联系我们</a></span>
  233. <p>
  234. <span>
  235. 上海市长宁区福泉路111号神州数码(上海)科技园 </span>
  236. <span>|</span>
  237. <span>北京市海淀区上地九街九号数码科技广场 </span>
  238. <span>|</span>
  239. <span>洛阳市洛龙区金城寨街正大国际中心</span>
  240. </p>
  241. <p style="padding-top: 5px;">
  242. <span>苏州市相城区元和街道嘉元路959号元和大厦 </span>
  243. <span>|</span>
  244. <span>杭州市下城区延安路385号杭州嘉里中心 </span>
  245. </p>
  246. <a href="http://www.beian.miit.gov.cn/">沪ICP备16042560号</a>
  247. </div>
  248. <div class="leftImg">
  249. <img src="imgs/QRcode1.jpg" alt="">
  250. </div>
  251. </div>
  252. </div>
  253. <script src="js/slide/all.min.js" type="text/javascript" charset="utf-8"></script>
  254. <script>
  255. $(function () {
  256. $.ajax({
  257. type: "post", //请求类型
  258. dataType: "json", //请求数据返回类型
  259. headers:{"content-type":"application/json;charset=utf-8"}, //请求头类型
  260. url: "https://xiaoyou.dgtis.com/admin/news/listForDGTSiteNews", //请求地址
  261. async: true, //同步或者异步 ,ajax 就是为了异步而生
  262. data: JSON.stringify({
  263. page: 1,
  264. limit: 6,
  265. type: 'companyNews',
  266. title: '',
  267. }), //传参
  268. success: function (result) { //成功
  269. if (result.errno === 0) {
  270. console.log(result);
  271. let companyNewsData = result.data.items;
  272. let companyNews = document.querySelector(".companyNews");
  273. for (let i = 0; i < companyNewsData.length; i++) {
  274. companyNews.innerHTML +=`<a href="newDetail.html?id=${companyNewsData[i].id}">
  275. <div class="text-row" id="${companyNewsData[i].id}" >
  276. <div class="row-left">${companyNewsData[i].title}</div>
  277. <div class="row-right">${companyNewsData[i].pubDate}</div>
  278. </div>
  279. </a>`
  280. }
  281. } else {
  282. console.log(result);
  283. console.log("失败");
  284. }
  285. },
  286. error: function (result) { //失败
  287. console.log(result);
  288. console.log("异常");
  289. }
  290. });
  291. $.ajax({
  292. type: "post", //请求类型
  293. dataType: "json", //请求数据返回类型
  294. headers:{"content-type":"application/json;charset=utf-8"}, //请求头类型
  295. url: "https://xiaoyou.dgtis.com/admin/news/listForDGTSiteNews", //请求地址
  296. async: true, //同步或者异步 ,ajax 就是为了异步而生
  297. data: JSON.stringify({
  298. page: 1,
  299. limit: 6,
  300. type: 'industryInfo',
  301. title: '',
  302. }), //传参
  303. success: function (result) { //成功
  304. if (result.errno === 0) {
  305. console.log(result);
  306. let industryInfoData = result.data.items;
  307. let industryInfo = document.querySelector(".industryInfo");
  308. for (let i = 0; i < industryInfoData.length; i++) {
  309. industryInfo.innerHTML +=`<a href="newDetail.html?id=${industryInfoData[i].id}">
  310. <div class="text-row" id="${industryInfoData[i].id}" >
  311. <div class="row-left">${industryInfoData[i].title}</div>
  312. <div class="row-right">${industryInfoData[i].pubDate}</div>
  313. </div>
  314. </a>`
  315. }
  316. } else {
  317. console.log(result);
  318. console.log("失败");
  319. }
  320. },
  321. error: function (result) { //失败
  322. console.log(result);
  323. console.log("异常");
  324. }
  325. });
  326. $.ajax({
  327. type: "post", //请求类型
  328. dataType: "json", //请求数据返回类型
  329. headers:{"content-type":"application/json;charset=utf-8"}, //请求头类型
  330. url: "https://xiaoyou.dgtis.com/admin/news/listForDGTSiteNews", //请求地址
  331. async: true, //同步或者异步 ,ajax 就是为了异步而生
  332. data: JSON.stringify({
  333. page: 1,
  334. limit: 6,
  335. type: 'companyDynamic',
  336. title: '',
  337. }), //传参
  338. success: function (result) { //成功
  339. if (result.errno === 0) {
  340. console.log(result);
  341. let companyDynamicsData = result.data.items;
  342. let companyDynamics = document.querySelector(".companyDynamics");
  343. for (let i = 0; i < companyDynamicsData.length; i++) {
  344. companyDynamics.innerHTML +=
  345. `<li>
  346. <a target="_blank" href="newDetail.html?id=${companyDynamicsData[i].id}">
  347. <div class="ban-img">
  348. <img src="${companyDynamicsData[i].image}" />
  349. </div>
  350. <div class="text">
  351. <p style="font-weight: 600;color: #000000">
  352. ${companyDynamicsData[i].title}
  353. </p>
  354. <p style="font-size: 14px;">
  355. ${companyDynamicsData[i].subTitle}
  356. </p>
  357. </div>
  358. </a>
  359. </li>`
  360. }
  361. $("#index-case").slide({
  362. titCell: ".ban_hd ul",
  363. mainCell: ".ban_bd ul",
  364. autoPage: true,
  365. effect: "leftLoop",
  366. prevCell: ".prevbtn",
  367. nextCell: ".nextbtn",
  368. trigger: "click",
  369. autoPlay: true,
  370. interTime: 6000,
  371. scroll: 1,
  372. vis: 3,
  373. defaultIndex: 0,
  374. titOnClassName: "on"
  375. })
  376. } else {
  377. console.log(result);
  378. console.log("失败");
  379. }
  380. },
  381. error: function (result) { //失败
  382. console.log(result);
  383. console.log("异常");
  384. }
  385. });
  386. })
  387. </script>
  388. </body>
  389. </html>