read.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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">新闻动态</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">关于我们</a>
  81. </li>
  82. </ul>
  83. </div>
  84. </nav>
  85. </div>
  86. </div>
  87. <div class="row">
  88. <div class="col-12">
  89. <div class="mobile-menu"></div>
  90. </div>
  91. </div>
  92. </div>
  93. </header>
  94. <!--====== HEADER END ======-->
  95. <!--====== NEWS BREADCRUMB START ======-->
  96. <section class="common-bradcrumb-section">
  97. <img src="../assets/img/news/news-banner.png" alt="">
  98. </section>
  99. <!--====== NEWS BREADCRUMB END ======-->
  100. <!-- <section class="crumbs">
  101. <div class="container">
  102. <ul>
  103. 所在位置:
  104. <li>首页 ></li>
  105. <li v-if="isNews" @click="toNews">公司新闻 ></li>
  106. <li v-else @click="toTrade">行业动态 ></li>
  107. <li class="active">正文</li>
  108. </ul>
  109. </div>
  110. </section> -->
  111. <!--====== NEWS CONTENT START ======-->
  112. <section class="news-content-section pt-60">
  113. <div class="container">
  114. <div class="row">
  115. <div class="col-lg-12 col-md-12 content">
  116. <div v-if="loading" class="pt-60 pb-60">
  117. <div class="loadEffect">
  118. <span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
  119. </div>
  120. </div>
  121. <div v-if="!loading" class="read_content">
  122. <div class="section-title text-center both-border mb-20">
  123. <span class="title-tag2">{{articleInfo.title}}</span>
  124. </div>
  125. <div class="new-read-title2">
  126. <div class="row">
  127. <div class="col-md-3 col-sm-6 col-6 ">时间:{{articleInfo.time}}</div>
  128. <div class="col-md-3 col-sm-6 col-6 ">作者:{{articleInfo.publisher}}</div>
  129. <div class="col-md-3 col-sm-6 col-6 ">点击:缺字段</div>
  130. <div class="col-md-3 col-sm-6 col-6 ">来源:缺字段</div>
  131. </div>
  132. <!-- <span style="margin-left:30px"></span>
  133. <span>作者:{{articleInfo.publisher}}</span>
  134. <span>点击:{{articleInfo.publisher}}</span>
  135. <span>来源:{{articleInfo.publisher}}</span> -->
  136. </div>
  137. <div v-html="articleInfo.content" class="new-read-body">
  138. </div>
  139. </div>
  140. <!-- -->
  141. <div v-if="!loading" class="read-page d-flex justify-content-between">
  142. <a :class="[!hasPrevious ? 'disable' : '']" :href="[hasPrevious ? './read.html?id='+previousInfo.id : 'javascript: void();']" class="previous">上一篇{{previousInfo.title}}</a>
  143. <a href="./index.html">返回新闻列表</a>
  144. <a :class="[!hasNext ? 'disable' : '']" :href="[hasNext ? './read.html?id='+nextInfo.id : 'javascript: void();']" class="next">下一篇{{nextInfo.title}}</a>
  145. <a :class="[!hasPrevious ? 'disable' : '']" :href="[hasPrevious ? './read.html?id='+previousInfo.id : 'javascript: void();']" class="min-previous">上一篇</a>
  146. <a :class="[!hasNext ? 'disable' : '']" :href="[hasNext ? './read.html?id='+nextInfo.id : 'javascript: void();']" class="min-next">下一篇</a>
  147. </div>
  148. <!-- 相关新闻 start -->
  149. <div>
  150. <div class="title-tag2 pt-60">相关新闻</div>
  151. <div class="relNewBox container ">
  152. <a class="justify-content-between d-flex relNewsList" href="">
  153. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg"> 大数据时代要定“明规则” 保护好用户隐私 </div>
  154. <div>2022-02-12</div>
  155. </a>
  156. <a class="justify-content-between d-flex relNewsList" href="">
  157. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg">IDC关于覆盖100多个城市的智慧城市支出预测 </div>
  158. <div>2022-02-12</div>
  159. </a>
  160. <a class="justify-content-between d-flex relNewsList" href="">
  161. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg">中国智慧城市建设:全国加速进行时 </div>
  162. <div>2022-02-12</div>
  163. </a>
  164. <a class="justify-content-between d-flex relNewsList" href="">
  165. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg">德勤中国智能制造深度报告 </div>
  166. <div>2022-02-12</div>
  167. </a>
  168. <a class="justify-content-between d-flex relNewsList" href="">
  169. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg">复合年增长率为13.6% 2022年中国将成最大物联网市场</div>
  170. <div>2022-02-12</div>
  171. </a>
  172. </div>
  173. </div>
  174. <!-- 相关新闻end -->
  175. </div>
  176. </div>
  177. </div>
  178. </section>
  179. <!--====== NEWS CONTENT END ======-->
  180. <!--====== FOOTER PART START ======-->
  181. <div id="footer"></div>
  182. <!--====== FOOTER PART END ======-->
  183. </div>
  184. <script src="../assets/js/vendor/modernizr-3.6.0.min.js"></script>
  185. <script src="../assets/js/vendor/jquery-1.12.4.min.js"></script>
  186. <!--====== Bootstrap js ======-->
  187. <script src="../assets/js/bootstrap.min.js"></script>
  188. <script src="../assets/js/popper.min.js"></script>
  189. <!--====== Mean Menu ======-->
  190. <script src="../assets/js/jquery.meanmenu.min.js"></script>
  191. <script src="../assets/css/font_mun4q5ltrbp/iconfont.js"></script>
  192. <!--====== Main js ======-->
  193. <script src="../assets/js/main.js"></script>
  194. <!--====== Setting Info js=======-->
  195. <script src="../assets/js/settinginfo.js"></script>
  196. <!--====== Vue Developer js ======-->
  197. <!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
  198. <!--====== Vue js ======-->
  199. <script src="../assets/js/vue.min.js"></script>
  200. <script>
  201. $(function() {
  202. $('#footer').load("../footer.html");
  203. })
  204. var app = new Vue({
  205. el: '#app',
  206. data: {
  207. loading: true,
  208. articleInfo: {},
  209. previousInfo: {},
  210. nextInfo: {},
  211. ariticle_id: 0
  212. },
  213. created: function() {
  214. this.ariticle_id = this.getQueryVariable('id')
  215. },
  216. computed: {
  217. isNews: function() {
  218. return (this.articleInfo.type == 1);
  219. },
  220. hasPrevious: function() {
  221. return Object.keys(this.previousInfo).length > 0;
  222. },
  223. hasNext: function() {
  224. return Object.keys(this.nextInfo).length > 0;
  225. }
  226. },
  227. mounted: function() {
  228. var self = this;
  229. jQuery.ajax({
  230. type: 'POST',
  231. dataType: 'json',
  232. url: window.FQDN + 'agw/journalism_details',
  233. data: {
  234. id: this.ariticle_id
  235. }
  236. }).done(function(res) {
  237. if (!res.msg) {
  238. return;
  239. }
  240. console.log('res.content')
  241. console.log(res.content)
  242. self.loading = false;
  243. self.articleInfo = res;
  244. if (res.previous != null) {
  245. self.previousInfo = res.previous;
  246. }
  247. if (res.next != null) {
  248. self.nextInfo = res.next;
  249. }
  250. }).fail(function(err) {});
  251. },
  252. methods: {
  253. getQueryVariable: function(variable) {
  254. var query = window.location.search.substring(1);
  255. var vars = query.split("&");
  256. for (var i = 0; i < vars.length; i++) {
  257. var pair = vars[i].split("=");
  258. if (pair[0] == variable) {
  259. return pair[1];
  260. }
  261. }
  262. return (false);
  263. }
  264. }
  265. })
  266. </script>
  267. </body>
  268. </html>