index.html 13 KB

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