read.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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 ">时间:{{articleInfo.time}}</div>
  126. <div class="col-md-3 col-sm-6 col-6 ">作者:{{articleInfo.publisher}}</div>
  127. <div class="col-md-3 col-sm-6 col-6 ">点击:缺字段</div>
  128. <div class="col-md-3 col-sm-6 col-6 ">来源:缺字段</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="">
  159. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg"> 大数据时代要定“明规则”
  160. 保护好用户隐私 </div>
  161. <div>2022-02-12</div>
  162. </a>
  163. <a class="justify-content-between d-flex relNewsList" href="">
  164. <div><img width="18" height="18"
  165. src="../assets/img/news/arrowT.svg">IDC关于覆盖100多个城市的智慧城市支出预测 </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"
  170. src="../assets/img/news/arrowT.svg">中国智慧城市建设:全国加速进行时 </div>
  171. <div>2022-02-12</div>
  172. </a>
  173. <a class="justify-content-between d-flex relNewsList" href="">
  174. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg">德勤中国智能制造深度报告
  175. </div>
  176. <div>2022-02-12</div>
  177. </a>
  178. <a class="justify-content-between d-flex relNewsList" href="">
  179. <div><img width="18" height="18" src="../assets/img/news/arrowT.svg">复合年增长率为13.6%
  180. 2022年中国将成最大物联网市场</div>
  181. <div>2022-02-12</div>
  182. </a>
  183. </div>
  184. </div>
  185. <!-- 相关新闻end -->
  186. </div>
  187. </div>
  188. </div>
  189. </section>
  190. <!--====== NEWS CONTENT END ======-->
  191. <!--====== FOOTER PART START ======-->
  192. <div id="footer"></div>
  193. <!--====== FOOTER PART END ======-->
  194. </div>
  195. <script src="../assets/js/vendor/modernizr-3.6.0.min.js"></script>
  196. <script src="../assets/js/vendor/jquery-1.12.4.min.js"></script>
  197. <!--====== Bootstrap js ======-->
  198. <script src="../assets/js/bootstrap.min.js"></script>
  199. <script src="../assets/js/popper.min.js"></script>
  200. <!--====== Mean Menu ======-->
  201. <script src="../assets/js/jquery.meanmenu.min.js"></script>
  202. <script src="../assets/css/font_mun4q5ltrbp/iconfont.js"></script>
  203. <!--====== Main js ======-->
  204. <script src="../assets/js/main.js"></script>
  205. <!--====== Setting Info js=======-->
  206. <script src="../assets/js/settinginfo.js"></script>
  207. <!--====== Vue Developer js ======-->
  208. <!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
  209. <!--====== Vue js ======-->
  210. <script src="../assets/js/vue.min.js"></script>
  211. <script>
  212. $(function () {
  213. $('#footer').load("../footer.html");
  214. })
  215. var app = new Vue({
  216. el: '#app',
  217. data: {
  218. loading: true,
  219. articleInfo: {},
  220. previousInfo: {},
  221. nextInfo: {},
  222. ariticle_id: 0
  223. },
  224. created: function () {
  225. this.ariticle_id = this.getQueryVariable('id')
  226. },
  227. computed: {
  228. isNews: function () {
  229. return (this.articleInfo.type == 1);
  230. },
  231. hasPrevious: function () {
  232. return Object.keys(this.previousInfo).length > 0;
  233. },
  234. hasNext: function () {
  235. return Object.keys(this.nextInfo).length > 0;
  236. }
  237. },
  238. mounted: function () {
  239. var self = this;
  240. jQuery.ajax({
  241. type: 'POST',
  242. dataType: 'json',
  243. url: window.FQDN + 'agw/journalism_details',
  244. data: {
  245. id: this.ariticle_id
  246. }
  247. }).done(function (res) {
  248. if (!res.msg) {
  249. return;
  250. }
  251. console.log('res.content')
  252. console.log(res.content)
  253. self.loading = false;
  254. self.articleInfo = res;
  255. if (res.previous != null) {
  256. self.previousInfo = res.previous;
  257. }
  258. if (res.next != null) {
  259. self.nextInfo = res.next;
  260. }
  261. }).fail(function (err) { });
  262. },
  263. methods: {
  264. getQueryVariable: function (variable) {
  265. var query = window.location.search.substring(1);
  266. var vars = query.split("&");
  267. for (var i = 0; i < vars.length; i++) {
  268. var pair = vars[i].split("=");
  269. if (pair[0] == variable) {
  270. return pair[1];
  271. }
  272. }
  273. return (false);
  274. }
  275. }
  276. })
  277. </script>
  278. </body>
  279. </html>