index.html 13 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 title="description" content="" />
  7. <meta title="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  8. <meta name="viewport" content="initial-scale=1.0, width=device-width, user-scalable=no" />
  9. <link rel="icon" href="../assets/img/favicon.ico">
  10. <title>解决方案</title>
  11. <link rel="stylesheet" href="../assets/css/bootstrap.min.css" />
  12. <!--====== Owl Carousel css ======-->
  13. <link rel="stylesheet" href="../assets/css/slick.css" />
  14. <!--====== Mean Menu ======-->
  15. <link rel="stylesheet" href="../assets/css/meanmenu.min.css" />
  16. <!--====== Default css ======-->
  17. <link rel="stylesheet" href="../assets/css/default.css" />
  18. <!--====== Style css ======-->
  19. <link rel="stylesheet" href="../assets/css/style.css" />
  20. <!--====== home css ====== -->
  21. <link rel="stylesheet" href="../assets/css/home.css" />
  22. <!--====== solution css ====== -->
  23. <link rel="stylesheet" href="./css/solution.css" />
  24. </head>
  25. <body>
  26. <div id="app">
  27. <div class="erMenu">
  28. <div>
  29. </div>
  30. </div>
  31. <!--====== HEADER START ======-->
  32. <header class="header-absolute sticky-header">
  33. <div class="custom-container-one">
  34. <div class="header-top-area">
  35. <div class="container align-items-center">
  36. <!-- <div class="col-md-6 col-sm-7">
  37. <ul class="contact-content">
  38. <li>
  39. <a href="javascipt:void();">www.chinausky.com</a>
  40. </li>
  41. <li>
  42. <a href="javascipt:void();">400 633 8668</a>
  43. </li>
  44. </ul>
  45. </div> -->
  46. </div>
  47. </div>
  48. <div id="headerNav"></div>
  49. <div>
  50. <div class="mobile-menu"></div>
  51. </div>
  52. </div>
  53. </header>
  54. <!--====== HEADER END ======-->
  55. <!--====== COMMON BREADCRUMB START ======-->
  56. <section class="common-bradcrumb-section inner-banner">
  57. <img :src="backBanner" alt="">
  58. </section>
  59. <!--====== COMMON BREADCRUMB END ======-->
  60. <!--====== SOLUTION SECTION START ======-->
  61. <section class="solution-section pt-40">
  62. <div class="container pt-40" v-for="arr in array">
  63. <div class="section-title both-border mb-20">
  64. <span class="title-tag2">{{arr.title}}</span>
  65. </div>
  66. <!-- ordinary普通样式 开始 -->
  67. <div class="row align-items-center justify-content-center" v-if="arr.cssType === 'ordinary'" v-for="cont in arr.content">
  68. <div class="col-md-12 mb-20" v-if="cont.text_content != ''">
  69. {{cont.text_content}}
  70. </div>
  71. <div class="pt-40 mb-40 col-md-12 solution-img" v-if="cont.text_picture != ''">
  72. <img :src="cont.text_picture" alt="">
  73. </div>
  74. </div>
  75. <!-- ordinary普通样式 结束 -->
  76. <!-- list列表样式 开始 -->
  77. <div class="row align-items-center justify-content-center" v-if="arr.cssType === 'list'">
  78. <div class="col-md-12" v-for="cont in arr.content">
  79. <ul>
  80. <li v-if="cont.text_content != ''">
  81. <span class="borderRadius1">
  82. <span class="borderRadius2"></span>
  83. </span>
  84. {{cont.text_content}}
  85. </li>
  86. <li v-if="cont.text_picture != ''">
  87. <img :src="cont.text_picture" alt="">
  88. </li>
  89. </ul>
  90. </div>
  91. </div>
  92. <!-- list列表样式 开始 -->
  93. <!-- titleList带标题列表样式 开始 -->
  94. <div class="row align-items-center justify-content-center" v-if="arr.cssType === 'titleList'" v-for="cont in arr.content">
  95. <div class="col-md-12" v-if="typeof cont.text_content == 'string' && cont.text_content != ''">
  96. <ul>
  97. <li>
  98. <span class="borderRadius1">
  99. <span class="borderRadius2"></span>
  100. </span>
  101. <span class="pb-10 textSpan" v-if="cont.text_title != ''">{{cont.text_title}}</span>
  102. <div class="pb-30 textDiv" v-if="cont.text_content != ''">{{cont.text_content}}</div>
  103. <div class="pb-30 textDiv solution-img" v-if="cont.text_picture != ''">
  104. <img :src="cont.text_picture" alt="">
  105. </div>
  106. </li>
  107. </ul>
  108. </div>
  109. </div>
  110. <!-- titleList带标题列表样式 结束 -->
  111. <!-- doubleTabs双重tabs切换样式 开始 -->
  112. <div class="row mb-60 align-items-center justify-content-center" v-if="arr.cssType === 'doubleTabs'">
  113. <div class="col-md-12 BoxShadow">
  114. <ul id="nav-tabs-ul" class="nav nav-tabs col-md-12" role="tabcontent">
  115. <li class="col-md-2 col-sm col" role="parrentation" v-for="(cont,i) in arr.content" :style="'max-width: calc(100% / '+arr.content.length+'); flex: 0 0 calc(100% /'+arr.content.length+');'">
  116. <a :class="i==0?'active':''" :href="'#'+cont.text_href" :aria-controls="cont.text_href" role="tab" data-toggle="tab">{{cont.text_title}}</a>
  117. </li>
  118. </ul>
  119. <!-- Tab panes -->
  120. <div class="tab-content tab-content-one">
  121. <div v-for="(cont,i) in arr.content" role="tabpanel" :class="i==0 ? 'active tab-pane tab-pane-one' : 'tab-pane tab-pane-one'" :id="cont.text_href">
  122. <ul class="nav nav-tabs col-md-12 nav-tabs-li" role="tabcontent">
  123. <li class="col-md-4 col-sm-4 col-4" role="parrentation" v-for="(textcont,j) in cont.text_content" :style="'max-width: calc(100% / '+cont.text_content.length+'); flex: 0 0 calc(100% /'+cont.text_content.length+');'">
  124. <a :class="j==0? 'active':''" :href="'#'+textcont.href" :aria-controls="textcont.href" role="tab" data-toggle="tab">{{textcont.title}}</a>
  125. </li>
  126. </ul>
  127. <div class="tab-content tab-content-two">
  128. <div v-for="(textcont,j) in cont.text_content" role="tabpanel" :class="j==0?'tab-pane tab-pane-tow active':'tab-pane tab-pane-tow'" :id="textcont.href">
  129. <div class="paneContent">
  130. <img :src="textcont.picture" alt="">
  131. <div>
  132. <div class="paneConTitle">
  133. <div v-if="textcont.region != ''">区位:{{textcont.region}}</div>
  134. <div v-if="textcont.scale != ''">规模:{{textcont.scale}}</div>
  135. </div>
  136. <div>
  137. <div v-for="content in textcont.content">
  138. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{content}}
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. <!-- doubleTabs双重tabs切换样式 结束 -->
  150. </div>
  151. </section>
  152. <!--====== SOLUTION SECTION END ======-->
  153. <!--====== FOOTER PART START ======-->
  154. <div id="footer"></div>
  155. <!--====== FOOTER PART END ======-->
  156. </div>
  157. <script src="../assets/js/vendor/modernizr-3.6.0.min.js"></script>
  158. <script src="../assets/js/vendor/jquery-1.12.4.min.js"></script>
  159. <!--====== Bootstrap js ======-->
  160. <script src="../assets/js/bootstrap.min.js"></script>
  161. <script src="../assets/js/popper.min.js"></script>
  162. <!--====== Mean Menu ======-->
  163. <script src="../assets/js/jquery.meanmenu.min.js"></script>
  164. <!--====== Main js ======-->
  165. <script src="../assets/js/main.js"></script>
  166. <!--====== Setting Info js ======-->
  167. <script src="../assets/js/settinginfo.js"></script>
  168. <!--====== Vue js======-->
  169. <script src="../assets/js/vue.min.js "></script>
  170. <script>
  171. $(function() {
  172. $('#footer').load("../footer.html");
  173. $('#headerNav').load("../headerNav.html");
  174. $(".menu-items ul li").hover(function() {
  175. $(".erMenu>div").html("")
  176. $(this).addClass("menuactive").siblings().removeClass("menuactive");
  177. if ($(this).children("a").text() == "解决方案") {
  178. $(this).addClass("menuactive").siblings()
  179. var data = `
  180. <ul class="erMenuList">
  181. <li><a href="../solution/index.html?solution_type=1">智慧安防</a></li>
  182. <li><a href="../solution/index.html?solution_type=2">智慧消防</a></li>
  183. <li><a href="../solution/index.html?solution_type=3">智慧建筑能源管理</a></li>
  184. <li><a href="../solution/index.html?solution_type=4">智慧电力综合管理</a></li>
  185. <li><a href="../solution/index.html?solution_type=5">智慧园区无人机综合管理</a></li>
  186. <li><a href="../solution/index.html?solution_type=6">智慧楼宇综合运营</a></li>
  187. </ul>`
  188. $(".erMenu>div").append(data)
  189. $(".erMenu").fadeIn()
  190. } else {
  191. $(".erMenu").fadeOut()
  192. }
  193. });
  194. $(".erMenu").hover(function() {}, function() {
  195. $(".erMenu").fadeOut()
  196. })
  197. })
  198. var app = new Vue({
  199. el: '#app',
  200. data: {
  201. backBanner: "",
  202. solution: [],
  203. solution_type: 1,
  204. id:null,
  205. array: []
  206. },
  207. computed: {
  208. },
  209. created: function() {
  210. this.solution_type = this.getQueryVariable('solution_type')
  211. this.id = this.getQueryVariable('id')
  212. console.log(this.id)
  213. // this.backBanner = '../assets/img/solution/solution-banner' + this.getQueryVariable('solution_type') + '.jpg';
  214. this.backBanner = '../assets/img/solution/solution-banner1.jpg'
  215. },
  216. mounted: function() {
  217. console.log(this.solution_type)
  218. // console.log(JSON.stringify(this.array))
  219. var _this = this;
  220. $.ajax({
  221. type: 'POST',
  222. dataType: 'json',
  223. url: window.FQDN + 'Solution/index',
  224. data: {
  225. id: this.id?this.id:1
  226. }
  227. }).done(function(arr) {
  228. _this.array = arr;
  229. }).fail(function(err) {});
  230. $.ajax({
  231. type: 'GET',
  232. dataType: 'json',
  233. url: window.FQDN2 + 'siteArticle/siteArticleList',
  234. data: {
  235. categoryid: this.id?this.id:182
  236. }
  237. }).done(function(arr) {
  238. // _this.array = arr;
  239. }).fail(function(err) {});
  240. },
  241. methods: {
  242. getQueryVariable: function(variable) {
  243. var query = window.location.search.substring(1);
  244. var vars = query.split("&");
  245. for (var i = 0; i < vars.length; i++) {
  246. var pair = vars[i].split("=");
  247. if (pair[0] == variable) {
  248. return pair[1];
  249. }
  250. }
  251. return (false);
  252. }
  253. }
  254. });
  255. </script>
  256. </body>
  257. </html>