projects-1.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. <!DOCTYPE html>
  2. <html lang='en'>
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  6. <meta name='viewport' content='width=device-width, initial-scale=1.0,user-scalable=no'>
  7. <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
  8. <title>PROJECTS | ELAB</title>
  9. <link rel="stylesheet" href="css/reset.css"></link>
  10. <link rel="stylesheet" href="css/style.css"></link>
  11. <link rel="stylesheet" href="css/animate.min.css"></link>
  12. <style type="text/css">
  13. html,
  14. body {
  15. background: #1b2030;
  16. height: auto;
  17. }
  18. .slide-line,.slide-line1{
  19. background: #fff;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div id="projects" class="page">
  25. <!--top menu-->
  26. <div class="top-menu wow fadeInDown" data-wow-duration="1s" data-wow-delay="2s">
  27. <div class="logo">
  28. <a href="javascript:parent.showIndex();"><img class="inner-icon" src="http://yun-image.elab-plus.com/images/contact/1_objects@2x_3.png" /></a>
  29. </div>
  30. <div class="menu"><img class="inner-icon" src="http://yun-image.elab-plus.com/images/contact/1_objects@2x_4.png" /></div>
  31. <div class="cases"><a href="javascript:parent.showIndex();parent.showProjects();"><img class="inner-icon" src="http://yun-image.elab-plus.com/images/contact/1_objects@2x_5.png" /></a></div>
  32. </div>
  33. <!--main menu-->
  34. <div class="main-menu">
  35. <div class="menu-background"></div>
  36. <!--contact us-->
  37. <div class="menu-contact">
  38. <div class="menu-contact-list">
  39. <div class="menu-contact-map">
  40. <a href="https://m.amap.com/search/mapview/markers=31.287272%2C121.447295%2C%E4%B8%8A%E6%B5%B7%E5%B8%82%E9%9D%99%E5%AE%89%E5%8C%BA%E5%BD%AD%E6%B1%9F%E8%B7%AF602%E5%8F%B7e%E5%BA%A7" target="_blank">
  41. <div class="map-icon">
  42. <img class="map-img" src="https://dm.static.elab-plus.com/elabGuanWang/Location@2x.png">
  43. </div>
  44. <div class="map-address">
  45. <p>地址</p>
  46. </div>
  47. <div class="map-desc">
  48. <p>上海市静安区彭江路602号E座408室</p>
  49. </div>
  50. </a>
  51. </div>
  52. <div class="menu-contact-phone">
  53. <div class="phone-icon">
  54. <img class="phone-img" src="https://dm.static.elab-plus.com/elabGuanWang/Phone@2x.png">
  55. </div>
  56. <div class="phone-address">
  57. <p>电话</p>
  58. </div>
  59. <div class="phone-desc">
  60. <p><a href="tel:02156519508">021-56519508</a></p>
  61. </div>
  62. </div>
  63. <div class="menu-contact-mail">
  64. <div class="email-icon">
  65. <img class="email-img" src="https://dm.static.elab-plus.com/elabGuanWang/Email@2x.png">
  66. </div>
  67. <div class="email-address">
  68. <p>邮件</p>
  69. </div>
  70. <div class="email-desc">
  71. <p><a href="mailto:admin@elab-plus.com">admin@elab-plus.com</a></p>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <!--CONTACT US-->
  77. <div class="menu-close"></div>
  78. <ul class="menu-list">
  79. <li class="elab_who">
  80. <a href="javascript:$('.main-menu').removeClass('active');parent.closeProjects();parent.showWho();">ELAB是谁<small>WHO IS ELAB</small></a>
  81. </li>
  82. <li class="elab_what">
  83. <a href="javascript:$('.main-menu').removeClass('active');parent.closeProjects();parent.showDo();">ELAB在做什么<small>WHAT ELAB DO</small></a>
  84. </li>
  85. <li class="elab_news">
  86. <a href="javascript:$('.main-menu').removeClass('active');parent.closeProjects();parent.showNews();">新闻中心
  87. <small>NEWS</small>
  88. </a>
  89. </li>
  90. <li class="elab_project">
  91. <a href="javascript:$('.main-menu').removeClass('active');parent.closeProjects();parent.showProjects();">作品案例<small>PROJECTS</small></a>
  92. </li>
  93. <li class="elab_contact">
  94. <a href="javascript:$('.main-menu').removeClass('active');parent.closeProjects();parent.showCareers();">加入我们<small>CAREERS</small></a>
  95. </li>
  96. <!--<li>-->
  97. <!--<a href="javascript:$('.main-menu').removeClass('active');parent.closeProjects();parent.showContact();">联系我们<small>CONTACTS</small></a>-->
  98. <!--</li>-->
  99. </ul>
  100. </div>
  101. <div class="who-we-are wow fadeInUpIndex" data-wow-duration="1s" data-wow-delay="3s">
  102. <p>
  103. <a href="javascript:thisShowWho();">我们是谁</a>
  104. </p>
  105. <div class="slide-line"></div>
  106. <div class="slide-line1"></div>
  107. </div>
  108. <div class="what-we-do wow fadeInUpIndex1" data-wow-duration="1s" data-wow-delay="3s">
  109. <p>
  110. <a href="javascript:parent.closeProjects();parent.closeList();parent.showDo();">我们在做什么</a>
  111. </p>
  112. <div class="slide-line"></div>
  113. <div class="slide-line1"></div>
  114. </div>
  115. <!--main-->
  116. <div class="project-list">
  117. <!--single item-->
  118. <div class="project-item-inner">
  119. <img class="inner-icon wow fadeIn" data-wow-duration="1s" data-wow-delay="3s" id="bigImage" src="" />
  120. <div class="close-bar wow fadeIn" data-wow-duration="1s" data-wow-delay="3.5s"></div>
  121. <div class="item-desc item-inner wow fadeInUp" data-wow-duration="1s" data-wow-delay="4s"><span></span></div>
  122. <div class="item-title item-inner wow fadeInUp" data-wow-duration="1s" data-wow-delay="4s">
  123. <p></p>
  124. </div>
  125. <div class="item-link item-inner wow fadeInUp" data-wow-duration="1s" data-wow-delay="4s">
  126. <!--<a href="projects-1-1.html">宁波</a><span class="small-line"></span>
  127. <a href="projects-1-1.html">无锡</a>-->
  128. </div>
  129. </div>
  130. <!--/single item-->
  131. </div>
  132. </div>
  133. <script src="js/jquery-1.11.3.min.js"></script>
  134. <script src="js/wow.js"></script>
  135. <script>
  136. var markIdx = 0;
  137. var currentIdx = 0;
  138. var lastIdx = 0;
  139. $(function() {
  140. <!-- menu hover start-->
  141. $('.elab_who').hover(function () {
  142. currentIdx = 1;
  143. // $(".elab_who").css("opacity","1");
  144. // $(".elab_who").removeClass("animate_fadeIn");
  145. // $(".elab_what").removeClass("animate_fadeIn");
  146. // $(".elab_news").removeClass("animate_fadeIn");
  147. // $(".elab_project").removeClass("animate_fadeIn");
  148. // $(".elab_contact").removeClass("animate_fadeIn");
  149. //
  150. // $(".elab_what").addClass("animate_fadeOut");
  151. // $(".elab_news").addClass("animate_fadeOut");
  152. // $(".elab_project").addClass("animate_fadeOut");
  153. // $(".elab_contact").addClass("animate_fadeOut");
  154. },function () {
  155. currentIdx = 0;
  156. // $(".elab_who").css("opacity","1");
  157. //
  158. // $(".elab_who").removeClass("animate_fadeOut");
  159. // $(".elab_what").removeClass("animate_fadeOut");
  160. // $(".elab_news").removeClass("animate_fadeOut");
  161. // $(".elab_project").removeClass("animate_fadeOut");
  162. // $(".elab_contact").removeClass("animate_fadeOut");
  163. // $(".elab_what").addClass("animate_fadeIn");
  164. // $(".elab_news").addClass("animate_fadeIn");
  165. // $(".elab_project").addClass("animate_fadeIn");
  166. // $(".elab_contact").addClass("animate_fadeIn");
  167. });
  168. $('.elab_what').hover(function () {
  169. currentIdx = 2;
  170. // $(".elab_what").css("opacity","1");
  171. // $(".elab_who").removeClass("animate_fadeIn");
  172. // $(".elab_what").removeClass("animate_fadeIn");
  173. // $(".elab_news").removeClass("animate_fadeIn");
  174. // $(".elab_project").removeClass("animate_fadeIn");
  175. // $(".elab_contact").removeClass("animate_fadeIn");
  176. },function () {
  177. currentIdx = 0;
  178. /* $(".elab_what").css("opacity","1");
  179. $(".elab_who").removeClass("animate_fadeOut");
  180. $(".elab_what").removeClass("animate_fadeOut");
  181. $(".elab_news").removeClass("animate_fadeOut");
  182. $(".elab_project").removeClass("animate_fadeOut");
  183. $(".elab_contact").removeClass("animate_fadeOut");*/
  184. // $(".elab_who").addClass("animate_fadeIn");
  185. // $(".elab_news").addClass("animate_fadeIn");
  186. // $(".elab_project").addClass("animate_fadeIn");
  187. // $(".elab_contact").addClass("animate_fadeIn");
  188. });
  189. $('.elab_news').hover(function () {
  190. currentIdx = 3;
  191. /*$(".elab_news").css("opacity","1");
  192. $(".elab_who").removeClass("animate_fadeIn");
  193. $(".elab_what").removeClass("animate_fadeIn");
  194. $(".elab_news").removeClass("animate_fadeIn");
  195. $(".elab_project").removeClass("animate_fadeIn");
  196. $(".elab_contact").removeClass("animate_fadeIn");*/
  197. },function () {
  198. currentIdx = 0;
  199. /*$(".elab_news").css("opacity","1");
  200. $(".elab_who").removeClass("animate_fadeOut");
  201. $(".elab_what").removeClass("animate_fadeOut");
  202. $(".elab_news").removeClass("animate_fadeOut");
  203. $(".elab_project").removeClass("animate_fadeOut");
  204. $(".elab_contact").removeClass("animate_fadeOut");*/
  205. // $(".elab_who").addClass("animate_fadeIn");
  206. // $(".elab_what").addClass("animate_fadeIn");
  207. // $(".elab_project").addClass("animate_fadeIn");
  208. // $(".elab_contact").addClass("animate_fadeIn");
  209. });
  210. $('.elab_project').hover(function () {
  211. currentIdx = 4;
  212. /*$(".elab_project").css("opacity","1");
  213. $(".elab_who").removeClass("animate_fadeIn");
  214. $(".elab_what").removeClass("animate_fadeIn");
  215. $(".elab_news").removeClass("animate_fadeIn");
  216. $(".elab_project").removeClass("animate_fadeIn");
  217. $(".elab_contact").removeClass("animate_fadeIn");
  218. $(".elab_who").addClass("animate_fadeOut");
  219. $(".elab_what").addClass("animate_fadeOut");
  220. $(".elab_news").addClass("animate_fadeOut");
  221. $(".elab_contact").addClass("animate_fadeOut");*/
  222. },function () {
  223. currentIdx = 0;
  224. /*$(".elab_project").css("opacity","1");
  225. $(".elab_who").removeClass("animate_fadeOut");
  226. $(".elab_what").removeClass("animate_fadeOut");
  227. $(".elab_news").removeClass("animate_fadeOut");
  228. $(".elab_project").removeClass("animate_fadeOut");
  229. $(".elab_contact").removeClass("animate_fadeOut");
  230. $(".elab_who").addClass("animate_fadeIn");
  231. $(".elab_what").addClass("animate_fadeIn");
  232. $(".elab_news").addClass("animate_fadeIn");
  233. $(".elab_contact").addClass("animate_fadeIn");*/
  234. });
  235. $('.elab_contact').hover(function () {
  236. currentIdx = 5;
  237. /*$(".elab_contact").css("opacity","1");
  238. $(".elab_who").removeClass("animate_fadeIn");
  239. $(".elab_what").removeClass("animate_fadeIn");
  240. $(".elab_news").removeClass("animate_fadeIn");
  241. $(".elab_project").removeClass("animate_fadeIn");
  242. $(".elab_contact").removeClass("animate_fadeIn");
  243. $(".elab_who").addClass("animate_fadeOut");
  244. $(".elab_what").addClass("animate_fadeOut");
  245. $(".elab_news").addClass("animate_fadeOut");
  246. $(".elab_project").addClass("animate_fadeOut");*/
  247. },function () {
  248. currentIdx = 0;
  249. /* $(".elab_contact").css("opacity","1");
  250. $(".elab_who").removeClass("animate_fadeOut");
  251. $(".elab_what").removeClass("animate_fadeOut");
  252. $(".elab_news").removeClass("animate_fadeOut");
  253. $(".elab_project").removeClass("animate_fadeOut");
  254. $(".elab_contact").removeClass("animate_fadeOut");
  255. $(".elab_who").addClass("animate_fadeIn");
  256. $(".elab_what").addClass("animate_fadeIn");
  257. $(".elab_news").addClass("animate_fadeIn");
  258. $(".elab_project").addClass("animate_fadeIn");*/
  259. });
  260. <!-- menu hover end -->
  261. <!--mouse over listener start-->
  262. <!--mouse over listener end-->
  263. setInterval(function () {
  264. if(markIdx !== currentIdx){
  265. markIdx = currentIdx;
  266. var link = '';
  267. var empty = true;
  268. switch (markIdx) {
  269. case 0:
  270. link = '';
  271. empty = true;
  272. break;
  273. case 1:
  274. link = 'url(https://dm.static.elab-plus.com/elabGuanWang/elab_what.png)';
  275. empty = false;
  276. break;
  277. case 2:
  278. link = 'url(https://dm.static.elab-plus.com/elabGuanWang/elab_do.png)';
  279. empty = false;
  280. break;
  281. case 3:
  282. link = 'url(https://dm.static.elab-plus.com/elabGuanWang/elab_news.png)';
  283. empty = false;
  284. break;
  285. case 4:
  286. link = 'url(https://dm.static.elab-plus.com/elabGuanWang/elab_project.png)';
  287. empty = false;
  288. break;
  289. case 5:
  290. link = 'url(https://dm.static.elab-plus.com/elabGuanWang/elab_join.png)';
  291. empty = false;
  292. break;
  293. }
  294. if(empty){
  295. $(".menu-background").fadeOut(400,function () {
  296. $(".menu-background").css('background-image',link);
  297. });
  298. }else {
  299. if(lastIdx!==0){
  300. $(".menu-background").fadeOut(400,function () {
  301. $(".menu-background").css('background-image',link);
  302. $(".menu-background").fadeIn(800);
  303. })
  304. }else {
  305. $(".menu-background").css('background-image',link);
  306. $(".menu-background").fadeIn(800);
  307. }
  308. }
  309. lastIdx = markIdx;
  310. }
  311. },1210);
  312. //show menu
  313. $(".menu").on("click", function(e) {
  314. $(".main-menu").addClass("active");
  315. });
  316. //close menu
  317. $('.menu-close').on('click', function(e) {
  318. $(".main-menu").removeClass("active");
  319. });
  320. //hover style
  321. $(".who-we-are").on('mouseover', function(e) {
  322. $(".footer .left,#leftWave").addClass("active");
  323. $(".who-we-are .slide-line,.who-we-are .slide-line1").addClass("active");
  324. });
  325. $(".who-we-are").on('mouseout', function(e) {
  326. $(".footer .left,#leftWave").removeClass("active");
  327. $(".who-we-are .slide-line,.who-we-are .slide-line1").removeClass("active").addClass("fadeInUp");
  328. });
  329. $(".what-we-do").on('mouseover', function(e) {
  330. $(".footer .right,#rightWave").addClass("active");
  331. $(".what-we-do .slide-line,.what-we-do .slide-line1").addClass("active");
  332. $("#menuLayer .cases img").attr("src", "http://yun-image.elab-plus.com/images/index/1_objects@2x_5.png");
  333. });
  334. $(".what-we-do").on('mouseout', function(e) {
  335. //setTimeout(function(){
  336. $(".footer .right,#rightWave").removeClass("active");
  337. $(".what-we-do .slide-line,.what-we-do .slide-line1").removeClass("active").addClass("fadeInUp");
  338. $("#menuLayer .cases img").attr("src", "http://yun-image.elab-plus.com/images/index/1_objects@2x_4.png");
  339. //},600);
  340. });
  341. //加载数据
  342. var parentid = getQueryString("parent") || '';
  343. if(!parentid || parentid == '') {
  344. return false;
  345. } //父ID参数错误
  346. //加载大类信息
  347. $.get("http://106.14.225.13:8081/rest/listCategory1", function(result) {
  348. console.log(result);
  349. var $_list = result.result.list;
  350. var host = "";
  351. if($_list.length > 0) {
  352. for(var i = 0; i < $_list.length; i++) {
  353. var tmp = $_list[i];
  354. if(tmp['id'] == parentid) { //当前分类数据
  355. var $_img = (host+tmp['image2']) || 'http://yun-image.elab-plus.com/images/projects/1_objects@2x_6.jpg';
  356. $("#bigImage").attr("src", $_img); //大图
  357. $(".item-desc").html("<span>" + tmp["textTitle"] + "</span>");
  358. $(".item-title").html("" + tmp["textCn"] + "<p>" + tmp["textEn"] + "</p>");
  359. }
  360. }
  361. }
  362. });
  363. $.get("http://106.14.225.13:8081/rest/listCategory2?parent=" + parentid + "", function(result) {
  364. //console.log(result);
  365. var $_list = result.result.list;
  366. if($_list.length > 0) {
  367. $(".item-link").empty(); //清空demo
  368. for(var i = 0; i < $_list.length; i++) {
  369. var tmp = $_list[i];
  370. var $_html = `<a href="javascript:parent.showDetail('${tmp['url']}');">${tmp['location']}</a><span class="small-line"></span>`;
  371. $(".item-link").append($_html);
  372. }
  373. }
  374. });
  375. //close-bar click
  376. $('.close-bar').on('click', function(e) {
  377. parent.closeList();
  378. });
  379. var wow = new WOW({
  380. boxClass: 'wow',
  381. animateClass: 'animated',
  382. offset: 0,
  383. mobile: false,
  384. live: true
  385. });
  386. wow.init();
  387. });
  388. function thisShowWho(){
  389. parent.closeProjects();
  390. parent.closeList();
  391. parent.showWho();
  392. }
  393. function getQueryString(name) {
  394. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  395. var r = window.location.search.substr(1).match(reg);
  396. if(r != null) {
  397. return decodeURI(r[2]);
  398. } else {
  399. return null;
  400. }
  401. }
  402. </script>
  403. </body>
  404. </html>