read.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="x-ua-compatible" content="ie=edge" />
  6. <meta name="description" content="" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  8. <link rel="icon" href="../assets/img/favicon.ico">
  9. <title>新闻详情</title>
  10. <link rel="stylesheet" href="../assets/css/bootstrap.min.css" />
  11. <!--====== Mean Menu ======-->
  12. <link rel="stylesheet" href="../assets/css/meanmenu.min.css" />
  13. <!--====== Default css ======-->
  14. <link rel="stylesheet" href="../assets/css/default.css" />
  15. <!--====== Style css ======-->
  16. <link rel="stylesheet" href="../assets/css/style.css" />
  17. <!--====== Animation css =======-->
  18. <link rel="stylesheet" href="../assets/css/animation.css" />
  19. <!--====== home css ====== -->
  20. <link rel="stylesheet" href="../assets/css/home.css" />
  21. </head>
  22. <body>
  23. <!--[if lte IE 9]>
  24. <p class="browserupgrade">请使用chrome,IE11等现代浏览器,浏览本网站.</p>
  25. <![endif]-->
  26. <div id="app">
  27. <!--====== HEADER START ======-->
  28. <header class="header-absolute sticky-header">
  29. <div class="custom-container-one">
  30. <div class="header-top-area">
  31. <div class="container align-items-center">
  32. <!-- <div class="col-md-6 col-sm-7">
  33. <ul class="contact-list">
  34. <li>
  35. <a href="javascipt:void();">www.chinausky.com</a>
  36. </li>
  37. <li>
  38. <a href="javascipt:void();">400 633 8668</a>
  39. </li>
  40. </ul>
  41. </div> -->
  42. </div>
  43. </div>
  44. <div class="mainmenu-area container">
  45. <div class="d-flex align-items-center justify-content-between">
  46. <nav class="main-menu">
  47. <div class="logo">
  48. <a href="../index.html"><img src="../assets/img/logo.png" alt="uskylogo"></a>
  49. </div>
  50. <div class="menu-items">
  51. <ul>
  52. <li>
  53. <a href="../index.html">首页</a>
  54. </li>
  55. <li>
  56. <a href="../solution/index.html?solution_type=1">解决方案</a>
  57. <ul class="submenu">
  58. <li><a href="../solution/index.html?solution_type=1">智慧安防</a></li>
  59. <li><a href="../solution/index.html?solution_type=2">智慧消防</a></li>
  60. <li><a href="../solution/index.html?solution_type=3">智慧建筑能源管理</a></li>
  61. <li><a href="../solution/index.html?solution_type=4">智慧电力综合管理</a></li>
  62. <li><a href="../solution/index.html?solution_type=5">智慧园区无人机综合管理</a></li>
  63. <li><a href="../solution/index.html?solution_type=6">智慧楼宇综合运营</a></li>
  64. </ul>
  65. </li>
  66. <li>
  67. <a href="../product/index.html">产品中心</a>
  68. </li>
  69. <li>
  70. <a href="../technology/index.html">技术支撑</a>
  71. </li>
  72. <li class="active">
  73. <a href="../news/index.html">新闻动态</a>
  74. <!-- <ul class="submenu">
  75. <li><a href="../news">公司新闻</a></li>
  76. <li><a href="../news/trade/index.html">行业动态</a></li>
  77. </ul> -->
  78. </li>
  79. <li>
  80. <a href="../about/index.html">关于我们</a>
  81. </li>
  82. </ul>
  83. </div>
  84. </nav>
  85. </div>
  86. </div>
  87. <div>
  88. <div class="mobile-menu"></div>
  89. </div>
  90. </div>
  91. </header>
  92. <!--====== HEADER END ======-->
  93. <!--====== NEWS BREADCRUMB START ======-->
  94. <section class="common-bradcrumb-section">
  95. <img src="../assets/img/news/read-banner.png" alt="">
  96. </section>
  97. <!--====== NEWS BREADCRUMB END ======-->
  98. <!-- <section class="crumbs">
  99. <div class="container">
  100. <ul>
  101. 所在位置:
  102. <li>首页 ></li>
  103. <li v-if="isNews" @click="toNews">公司新闻 ></li>
  104. <li v-else @click="toTrade">行业动态 ></li>
  105. <li class="active">正文</li>
  106. </ul>
  107. </div>
  108. </section> -->
  109. <!--====== NEWS CONTENT START ======-->
  110. <section class="news-content-section pt-60">
  111. <div class="container">
  112. <div class="row">
  113. <div class="col-lg-12 col-md-12 content">
  114. <div v-if="loading" class="pt-60 pb-60">
  115. <div class="loadEffect">
  116. <span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
  117. </div>
  118. </div>
  119. <div v-if="!loading" class="read_content">
  120. <div class="section-title text-center both-border mb-20">
  121. <span class="title-tag2">{{articleInfo.title}}</span>
  122. </div>
  123. <div class="new-read-title2">
  124. <div class="row">
  125. <div class="col-md-3 col-sm-6 col-6 line-one">时间:{{articleInfo.time}}</div>
  126. <div class="col-md-3 col-sm-6 col-6 line-one">作者:{{articleInfo.publisher}}</div>
  127. <div class="col-md-3 col-sm-6 col-6 line-one">点击:{{articleInfo.hits}}</div>
  128. <div class="col-md-3 col-sm-6 col-6 line-one">来源:{{articleInfo.source}}</div>
  129. </div>
  130. <!-- <span style="margin-left:30px"></span>
  131. <span>作者:{{articleInfo.publisher}}</span>
  132. <span>点击:{{articleInfo.publisher}}</span>
  133. <span>来源:{{articleInfo.publisher}}</span> -->
  134. </div>
  135. <div v-html="articleInfo.content" class="new-read-body">
  136. </div>
  137. </div>
  138. <!-- -->
  139. <div v-if="!loading" class="read-page d-flex justify-content-between">
  140. <a :class="[!hasPrevious ? 'disable' : '']"
  141. :href="[hasPrevious ? './read.html?id='+previousInfo.id : 'javascript: void();']"
  142. class="previous">上一篇{{previousInfo.title}}</a>
  143. <a href="./index.html">返回新闻列表</a>
  144. <a :class="[!hasNext ? 'disable' : '']"
  145. :href="[hasNext ? './read.html?id='+nextInfo.id : 'javascript: void();']"
  146. class="next">下一篇{{nextInfo.title}}</a>
  147. <a :class="[!hasPrevious ? 'disable' : '']"
  148. :href="[hasPrevious ? './read.html?id='+previousInfo.id : 'javascript: void();']"
  149. class="min-previous">上一篇</a>
  150. <a :class="[!hasNext ? 'disable' : '']"
  151. :href="[hasNext ? './read.html?id='+nextInfo.id : 'javascript: void();']"
  152. class="min-next">下一篇</a>
  153. </div>
  154. <!-- 相关新闻 start -->
  155. <div>
  156. <div class="title-tag2 pt-60">相关新闻</div>
  157. <div class="relNewBox container ">
  158. <a class="justify-content-between d-flex relNewsList" :href="'./read.html?id='+item.id" v-for="item in relativeArr" :key="item.id">
  159. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg"> {{item.title}} </div>
  160. <div> {{item.time}}</div>
  161. </a>
  162. <!-- <a class="justify-content-between d-flex relNewsList" href="">
  163. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg"> 大数据时代要定“明规则” 保护好用户隐私 </div>
  164. <div>2022-02-12</div>
  165. </a>
  166. <a class="justify-content-between d-flex relNewsList" href="">
  167. <div><img width="18" height="18"
  168. src="../assets/img/news/arrowT.svg">IDC关于覆盖100多个城市的智慧城市支出预测 </div>
  169. <div>2022-02-12</div>
  170. </a>
  171. <a class="justify-content-between d-flex relNewsList" href="">
  172. <div><img width="18" height="18"
  173. src="../assets/img/news/arrowT.svg">中国智慧城市建设:全国加速进行时 </div>
  174. <div>2022-02-12</div>
  175. </a>
  176. <a class="justify-content-between d-flex relNewsList" href="">
  177. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg">德勤中国智能制造深度报告
  178. </div>
  179. <div>2022-02-12</div>
  180. </a>
  181. <a class="justify-content-between d-flex relNewsList" href="">
  182. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg">复合年增长率为13.6%
  183. 2022年中国将成最大物联网市场</div>
  184. <div>2022-02-12</div>
  185. </a> -->
  186. </div>
  187. </div>
  188. <!-- 相关新闻end -->
  189. </div>
  190. </div>
  191. </div>
  192. </section>
  193. <!--====== NEWS CONTENT END ======-->
  194. <!--====== FOOTER PART START ======-->
  195. <div id="footer"></div>
  196. <!--====== FOOTER PART END ======-->
  197. </div>
  198. <script src="../assets/js/vendor/modernizr-3.6.0.min.js"></script>
  199. <script src="../assets/js/vendor/jquery-1.12.4.min.js"></script>
  200. <!--====== Bootstrap js ======-->
  201. <script src="../assets/js/bootstrap.min.js"></script>
  202. <script src="../assets/js/popper.min.js"></script>
  203. <!--====== Mean Menu ======-->
  204. <script src="../assets/js/jquery.meanmenu.min.js"></script>
  205. <script src="../assets/css/font_mun4q5ltrbp/iconfont.js"></script>
  206. <!--====== Main js ======-->
  207. <script src="../assets/js/main.js"></script>
  208. <!--====== Setting Info js=======-->
  209. <script src="../assets/js/settinginfo.js"></script>
  210. <!--====== Vue Developer js ======-->
  211. <!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
  212. <!--====== Vue js ======-->
  213. <script src="../assets/js/vue.min.js"></script>
  214. <script>
  215. $(function () {
  216. $('#footer').load("../footer.html");
  217. })
  218. var app = new Vue({
  219. el: '#app',
  220. data: {
  221. loading: true,
  222. articleInfo: {},
  223. previousInfo: {},
  224. nextInfo: {},
  225. relativeArr: [],
  226. ariticle_id: 0
  227. },
  228. created: function () {
  229. this.ariticle_id = this.getQueryVariable('id')
  230. },
  231. computed: {
  232. isNews: function () {
  233. return (this.articleInfo.type == 1);
  234. },
  235. hasPrevious: function () {
  236. return Object.keys(this.previousInfo).length > 0;
  237. },
  238. hasNext: function () {
  239. return Object.keys(this.nextInfo).length > 0;
  240. }
  241. },
  242. mounted: function () {
  243. var self = this;
  244. jQuery.ajax({
  245. type: 'POST',
  246. dataType: 'json',
  247. url: window.FQDN + 'agw/journalism_details',
  248. data: {
  249. id: this.ariticle_id
  250. }
  251. }).done(function (res) {
  252. if (!res.msg) {
  253. return;
  254. }
  255. // console.log('res.content')
  256. // console.log(res.content)
  257. self.loading = false;
  258. self.articleInfo = res;
  259. self.relativeArr = res.related;
  260. console.log(self.relativeArr)
  261. if (res.previous != null) {
  262. self.previousInfo = res.previous;
  263. }
  264. if (res.next != null) {
  265. self.nextInfo = res.next;
  266. }
  267. }).fail(function (err) { });
  268. },
  269. methods: {
  270. getQueryVariable: function (variable) {
  271. var query = window.location.search.substring(1);
  272. var vars = query.split("&");
  273. for (var i = 0; i < vars.length; i++) {
  274. var pair = vars[i].split("=");
  275. if (pair[0] == variable) {
  276. return pair[1];
  277. }
  278. }
  279. return (false);
  280. }
  281. }
  282. })
  283. </script>
  284. </body>
  285. </html>