index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  7. <meta name="format-detection" content="telephone=no">
  8. <title>乐鱼</title>
  9. <meta name="description" content="" />
  10. <meta name="keywords" content="" />
  11. <meta name="author" content="order by mobanxiu.cn" />
  12. <link rel="stylesheet" type="text/css" href="/skin/css/bootstrap.css" />
  13. <link rel="stylesheet" type="text/css" href="/skin/css/style.css" />
  14. <link rel="stylesheet" type="text/css" href="/skin/css/flexible-bootstrap-carousel.css" />
  15. <script src="/skin/js/jquery-1.8.3.min.js"></script>
  16. <script src="/skin/js/commonHttp.js"></script>
  17. <script src="/skin/js/flexible-bootstrap-carousel.js"></script>
  18. <!--<script src="/skin/js/script.js"></script>-->
  19. <script src="/skin/js/jquery.tmpl.js"></script>
  20. <script src="/skin/js/scripta.js"></script>
  21. <style>
  22. .carousel-inner img {
  23. width: 100%;
  24. height: 100%;
  25. }
  26. </style>
  27. </head>
  28. <body style="display: none;">
  29. <!-------------------------------------- 头部开始 -------------------------------------->
  30. <header>
  31. <div class="container full-height">
  32. <div class="logo">
  33. <a href="/"><img src="/skin/images/logo.png"></a>
  34. </div>
  35. <a class="mbtn"></a>
  36. <div class="menu">
  37. <ul>
  38. <li>
  39. <a class='on' href="/">网站首页</a>
  40. </li>
  41. <div id="NavlistContent">
  42. </div>
  43. <li>
  44. <a href="/a/lianxiwomen/">联系我们</a>
  45. </li>
  46. </ul>
  47. </div>
  48. <div class="foot">
  49. <p class="p1">
  50. <a href="http://wpa.qq.com/msgrd?v=3&uin=80044685&site=qq&menu=yes" id="footqq" class="ico ico1"></a>
  51. <a class="ico ico2"><img src="/skin/images/qbox.png"></a>
  52. </p>
  53. <p class="p2">杭州乐鱼旅行社有限公司 版权所有</p>
  54. </div>
  55. </div>
  56. </header>
  57. <!-------------------------------------- 头部结束 -------------------------------------->
  58. <!-------------------------------------- 主体开始 -------------------------------------->
  59. <main>
  60. <div class="ui-fullpart nopd">
  61. <div class="ui-homebanner">
  62. <div class="view">
  63. <div id="carousel-homebanner" class="carousel slide" data-ride="carousel">
  64. <div class="carousel-inner" role="listbox" id="SlideContent">
  65. </div>
  66. <div class="navi">
  67. <ul class=" carousel-indicators" id="SlideonContent">
  68. </ul>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="ui-fullpart bg-g">
  75. <div class="ui-title">
  76. <p class="p1" id="title"></p>
  77. <p class="p2" id="titlea"></p>
  78. </div>
  79. <div class="ui-homeview wow fadeInUp">
  80. <ul id="FeatureContent">
  81. <div class="clearfix"></div>
  82. </ul>
  83. </div>
  84. <div class="container" style="overflow: hidden;">
  85. <div class="ht90"></div>
  86. <div class="ui-title">
  87. <p class="p1" id="titleb"></p>
  88. <p class="p2" id="titlec"></p>
  89. </div>
  90. <div class="ui-homehouse lrlist" data-count-pc="3" data-count-mb="1">
  91. <!--<a href="" class="aw l">
  92. <</a>
  93. <a href="" class="aw r">></a>
  94. <div class="ct">
  95. <ul id="HomeContent">
  96. </ul>
  97. <div class="clearfix"></div>
  98. </div>-->
  99. <div class="carousel-example">
  100. <!-- FLEXIBLE BOOTSTRAP CAROUSEL -->
  101. <div id="simple-content-carousel" class="carousel flexible slide" data-ride="carousel" data-interval="5000" data-wrap="true">
  102. <div class="items" id="HomeContent">
  103. <!--<div class="flex-item">
  104. <img class="img-responsive" src="/skin/images/banner-img2.jpg" />
  105. </div>
  106. <div class="flex-item">
  107. <img class="img-responsive" src="/skin/images/banner-img3.jpg" />
  108. </div>
  109. <div class="flex-item">
  110. <img class="img-responsive" src="/skin/images/banner-img1.jpg" />
  111. </div>
  112. <div class="flex-item">
  113. <img class="img-responsive" src="/skin/images/banner-img1.jpg" />
  114. </div>
  115. <div class="flex-item">
  116. <img class="img-responsive" src="/skin/images/banner-img1.jpg" />
  117. </div>-->
  118. </div>
  119. <div class="carousel-inner" role="listbox">
  120. </div>
  121. <a class="left carousel-control" href="#simple-content-carousel" role="button" data-slide="prev">
  122. <span class="fa fa-angle-left" aria-hidden="true"><</span>
  123. <span class="sr-only">Previous</span>
  124. </a>
  125. <a class="right carousel-control" href="#simple-content-carousel" role="button" data-slide="next">
  126. <span class="fa fa-angle-right" aria-hidden="true">></span>
  127. <span class="sr-only">Next</span>
  128. </a>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="ui-fullpart">
  135. <div class="ui-title">
  136. <p class="p1" id="titled"></p>
  137. <p class="p2" id="titlee"></p>
  138. </div>
  139. <div class="ul-homenews">
  140. <ul id="NewsContent">
  141. <div class="clearfix"></div>
  142. </ul>
  143. </div>
  144. <div class="ht70" style="clear: both;"></div>
  145. <div class="ui-more">
  146. <p>
  147. <a href="/a/zuixindongtai/" id="more">LEARN MORE ></a>
  148. </p>
  149. </div>
  150. </div>
  151. <div class="ui-fullpart bg-homeexpe">
  152. <div class="container">
  153. <div class="ui-title">
  154. <p class="p1" id="titlef"></p>
  155. <p class="p2" id="titleg"></p>
  156. </div>
  157. <div class="ui-homeexpe">
  158. <ul id="ExpeContent">
  159. <div class="clearfix"></div>
  160. </ul>
  161. </div>
  162. </div>
  163. </div>
  164. </main>
  165. <!-------------------------------------- 主体结束 -------------------------------------->
  166. <!-------------------------------------- 尾部开始 -------------------------------------->
  167. <footer>
  168. <div class="container">
  169. <div class="info">
  170. <p><span class="pull-right"><span class="loca"><a href="/a/lianxiwomen/ ">目的地指南</a> <em>/</em>联系电话:<text id="phoneq"></text></span></span>
  171. <a href="/">网站首页</a> <i>|</i>
  172. <span id="FootlistContent">
  173. </span>
  174. <a href="/a/lianxiwomen/">联系我们</a>
  175. </p>
  176. </div>
  177. </div>
  178. </footer>
  179. <!-------------------------------------- 尾部开始 -------------------------------------->
  180. <script type="text/html" id="SlideTemplate">
  181. <div class='carousel-item'>
  182. <img src="{{= image}}" />
  183. <a href="#" class="img ">
  184. <div class="tt">
  185. <p class="p3">
  186. <label for="">more></label>
  187. </p>
  188. </div>
  189. </a>
  190. </div>
  191. </script>
  192. <script type="text/html" id="SlideonTemplate">
  193. <li data-target="#demo" data-slide-to="{{= id}}">
  194. <a href="#">0{{= $index+1}}</a>
  195. </li>
  196. </script>
  197. <script type="text/html" id="FeatureTemplate">
  198. <li>
  199. <a href="/a/jingqutese/1.html?id={{= id }}" class="i"><img src="{{= zhu_images.shift() }}" alt="{{= title}}">
  200. <div class="ct">
  201. <h3>
  202. <label for="">{{= title}}<br>
  203. <small>{{= small_title}}</small></label>
  204. </h3>
  205. <p>{{= small_introduce }}</p>
  206. </div>
  207. </a>
  208. </li>
  209. </script>
  210. <script type="text/html" id="HomeTemplate">
  211. <!--<div >
  212. <img class="img-responsive" src="/skin/images/banner-img1.jpg" />
  213. </div>-->
  214. <div class="flex-item">
  215. <a href="/a/jingxinminsu/5.html?id={{= id }}" class="i">
  216. <div class="img"> <img src="{{= zhu_images.shift() }}" alt="{{= title}}" class="img-responsive"> </div>
  217. <div class="txt">
  218. <h3>{{= title}}</h3>
  219. <p>{{= small_introduce}}</p>
  220. <h5>
  221. <label for="">MORE</label>
  222. </h5>
  223. </div>
  224. </a>
  225. </div>
  226. </script>
  227. <script type="text/html" id="NewsTemplate">
  228. <li>
  229. <a href="/a/zuixindongtai/10.html?id={{= id }}" class="i"><img src="{{= zhu_images.shift() }}" alt="{{= title}}">
  230. <div class="ct">
  231. <h3>{{= title}}</h3>
  232. <h5>{{= create}}</h5>
  233. <p>{{= small_introduce}}</p>
  234. </div>
  235. </a>
  236. </li>
  237. </script>
  238. <script type="text/html" id="ExpeTemplate">
  239. <li>
  240. <a href="/a/shangxintiyan/16.html?id={{= id }}" class="i">
  241. <div class="img"> <img src="{{= zhu_images.shift() }}" alt="{{= title}}"> </div>
  242. <div class="txt">
  243. <h3>{{= title}}</h3>
  244. <p>{{= small_introduce}}</p>
  245. </div>
  246. </a>
  247. </li>
  248. </script>
  249. <script type="text/html" id="NavlistTemplate">
  250. <li>
  251. <a href="{{= url}}?id={{= id }}">{{= name }}</a>
  252. </li>
  253. </script>
  254. <script type="text/html" id="FootlistTemplate">
  255. <a href="{{= url}}?id={{= id }}">{{= name }}</a> <i>|</i>
  256. </script>
  257. <script type="text/javascript">
  258. var winResize = function() {
  259. var width = $(window).width();
  260. var height = $(window).height();
  261. $('.full-height').height(height);
  262. if(width <= 767) {
  263. $('body').addClass('small-screen');
  264. $('body').removeClass('normal-screen');
  265. } else {
  266. $('body').removeClass('small-screen');
  267. $('body').addClass('normal-screen');
  268. }
  269. if($('body').hasClass('normal-screen')) {
  270. $('.bg-contactus').height(height - $('footer').outerHeight());
  271. } else {
  272. $('main').css('min-height', $(window).height() - $('footer').outerHeight(true));
  273. }
  274. $('.lrlist').each(function(index, el) {
  275. var $this = $(this);
  276. var count = $this.data('count-pc');
  277. if($('body').hasClass('small-screen')) {
  278. count = $this.data('count-mb');
  279. }
  280. $this.find('ul li').width(Math.floor($this.width() / count));
  281. $this.find('ul').width($this.find('ul li').width() * ($this.find('ul li').length + 1));
  282. });
  283. }
  284. $(function() {
  285. $(window).resize(function() {
  286. winResize();
  287. });
  288. winResize();
  289. setTimeout(function() {
  290. winResize();
  291. }, 100);
  292. $(window).scroll(function() {
  293. var sTop = $(window).scrollTop();
  294. var wHeight = $(window).height();
  295. var sBottom = wHeight - ($('body').height() - sTop);
  296. });
  297. $('header .mbtn').click(function(event) {
  298. $('body').toggleClass('on-menu');
  299. return false;
  300. });
  301. $('header .menu >a').click(function(event) {
  302. $('body').removeClass('on-menu');
  303. return false;
  304. });
  305. // $('.carousel').swipe({
  306. // threshold: 25,
  307. // allowPageScroll: 'vertical',
  308. // swipe: function(event, direction, distance, duration, fingerCount, fingerData) {
  309. // console.log(direction);
  310. // if(direction == 'left') {
  311. // $(this).carousel('next');
  312. // } else {
  313. // $(this).carousel('prev');
  314. // }
  315. // }
  316. // });
  317. // if(browser == 'ie6' || browser == 'ie7' || browser == 'ie8' || browser == 'ie9') {
  318. //
  319. // } else {
  320. // new WOW({
  321. // callback: function(box) {
  322. //
  323. // }
  324. // }).init();
  325. // }
  326. $('#carousel-homebanner').on('slid.bs.carousel', function() {
  327. var ind = $('#carousel-homebanner .item').index($('#carousel-homebanner .item.active'));
  328. $('.ui-homebanner .navi a').removeClass('on');
  329. $('.ui-homebanner .navi a').eq(ind).addClass('on');
  330. });
  331. $('.ui-homebanner .navi a').click(function(event) {
  332. var ind = $('.ui-homebanner .navi a').index($(this));
  333. $('#carousel-homebanner').carousel(ind);
  334. return false;
  335. });
  336. $('.lrlist').each(function(index, el) {
  337. var $this = $(this);
  338. var $aw = $this.find('.aw');
  339. $aw.click(function(event) {
  340. if($this.find('ul').is(':animated')) {
  341. return false;
  342. }
  343. var next = true;
  344. if($(this).hasClass('l')) {
  345. next = false;
  346. }
  347. var $next;
  348. var w = $this.find('li').width();
  349. if(next) {
  350. $next = $this.find('li').first().clone();
  351. $next.appendTo($this.find('ul'));
  352. $this.find('ul').animate({
  353. 'left': -1 * w
  354. }, 300, function() {
  355. $this.find('li').first().remove();
  356. $this.find('ul').css('left', 0);
  357. });
  358. } else {
  359. $next = $this.find('li').last().clone();
  360. $next.prependTo($this.find('ul'));
  361. $this.find('ul').css('left', -1 * w);
  362. $this.find('ul').animate({
  363. 'left': 0
  364. }, 300, function() {
  365. $this.find('li').last().remove();
  366. });
  367. }
  368. clearInterval(t);
  369. t = setInterval(function() {
  370. go();
  371. }, 5000);
  372. $('.ui-prodhead .view >.ct .i').hover(function() {
  373. $(this).click();
  374. });
  375. return false;
  376. });
  377. var go = function() {
  378. if($this.hasClass('noauto')) {
  379. return;
  380. }
  381. $aw.filter('.r').click();;
  382. }
  383. var t = setInterval(function() {
  384. go();
  385. }, 5000);
  386. });
  387. });
  388. //页面转载完毕后启动
  389. $(document).ready(function() {
  390. BannerList();
  391. GetNavList();
  392. About();
  393. });
  394. //左侧栏目
  395. function GetNavList() {
  396. //定义请求URL
  397. var url = apiRootPath + 'api/index/allType';
  398. $.get(url, '', function(result) {
  399. if(result.code != 200) {
  400. alert(result.msg);
  401. return;
  402. }
  403. //绑定数据
  404. $("#NavlistTemplate").tmpl(result.data).appendTo("#NavlistContent");
  405. $("#FootlistTemplate").tmpl(result.data).appendTo("#FootlistContent");
  406. $("#more").attr('href', '/a/zuixindongtai/?id=' + result.data[2].id);
  407. }, "json");
  408. }
  409. //首页banner轮播
  410. function BannerList() {
  411. //定义请求URL
  412. var url = apiRootPath + 'api/index/allIntroduce';
  413. $.get(url, '', function(result) {
  414. if(result.code != 200) {
  415. alert(result.msg);
  416. return;
  417. }
  418. //绑定数据
  419. $("#SlideTemplate").tmpl(result.data.chart).appendTo("#SlideContent");
  420. $("#SlideContent").children(":first").addClass("active")
  421. $("#SlideonTemplate").tmpl(result.data.chart).appendTo("#SlideonContent");
  422. $("#SlideonContent").children(":first").addClass("active");
  423. $("#title").html(result.data.b.name);
  424. $("#titlea").html(result.data.b.english);
  425. $("#titleb").html(result.data.e.name);
  426. $("#titlec").html(result.data.e.english);
  427. $("#titled").html(result.data.c.name);
  428. $("#titlee").html(result.data.c.english);
  429. $("#titlef").html(result.data.d.name);
  430. $("#titleg").html(result.data.d.english);
  431. $("#FeatureTemplate").tmpl(result.data.b.introduce_model).appendTo("#FeatureContent");
  432. $("#HomeTemplate").tmpl(result.data.e.introduce_model).appendTo("#HomeContent");
  433. $("#NewsTemplate").tmpl(result.data.c.introduce_model).appendTo("#NewsContent");
  434. $("#ExpeTemplate").tmpl(result.data.d.introduce_model).appendTo("#ExpeContent");
  435. }, "json");
  436. }
  437. function About() {
  438. //定义请求URL
  439. var url = apiRootPath + 'api/index/aboutUs';
  440. $.get(url, '', function(result) {
  441. if(result.code != 200) {
  442. alert(result.msg);
  443. return;
  444. }
  445. //绑定数据
  446. $("#phoneq").html(result.data.phone);
  447. $("#footqq").attr('href', 'http://wpa.qq.com/msgrd?v=3&amp;uin=' + result.data.qq + '&amp;site=qq&amp;menu=yes');
  448. }, "json");
  449. }
  450. </script>
  451. </body>
  452. </html>