|
@@ -14,12 +14,10 @@
|
|
<link rel="stylesheet" type="text/css" href="/skin/css/style.css" />
|
|
<link rel="stylesheet" type="text/css" href="/skin/css/style.css" />
|
|
|
|
|
|
<script src="/skin/js/jquery-1.8.3.min.js"></script>
|
|
<script src="/skin/js/jquery-1.8.3.min.js"></script>
|
|
-
|
|
|
|
|
|
+
|
|
<script src="/skin/js/commonHttp.js"></script>
|
|
<script src="/skin/js/commonHttp.js"></script>
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
<!--<script src="/skin/js/bootstrap.js"></script>-->
|
|
<!--<script src="/skin/js/bootstrap.js"></script>-->
|
|
-
|
|
|
|
|
|
|
|
<style>
|
|
<style>
|
|
.carousel-inner img {
|
|
.carousel-inner img {
|
|
@@ -43,7 +41,7 @@
|
|
<a class='on' href="/">网站首页</a>
|
|
<a class='on' href="/">网站首页</a>
|
|
</li>
|
|
</li>
|
|
<div id="NavlistContent">
|
|
<div id="NavlistContent">
|
|
-
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<li>
|
|
<li>
|
|
@@ -89,8 +87,7 @@
|
|
<p class="p2" id="titlea"></p>
|
|
<p class="p2" id="titlea"></p>
|
|
</div>
|
|
</div>
|
|
<div class="ui-homeview wow fadeInUp">
|
|
<div class="ui-homeview wow fadeInUp">
|
|
- <ul id="FeatureContent">
|
|
|
|
-
|
|
|
|
|
|
+ <ul id="FeatureContent">
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
</ul>
|
|
</ul>
|
|
@@ -106,9 +103,8 @@
|
|
<</a>
|
|
<</a>
|
|
<a href="" class="aw r">></a>
|
|
<a href="" class="aw r">></a>
|
|
<div class="ct">
|
|
<div class="ct">
|
|
- <ul id="HomeContent" style="width: 760px;">
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ <ul id="HomeContent" style="width: 760px;">
|
|
|
|
+
|
|
</ul>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
@@ -122,7 +118,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="ul-homenews">
|
|
<div class="ul-homenews">
|
|
<ul id="NewsContent">
|
|
<ul id="NewsContent">
|
|
-
|
|
|
|
|
|
+
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
@@ -141,8 +137,6 @@
|
|
</div>
|
|
</div>
|
|
<div class="ui-homeexpe">
|
|
<div class="ui-homeexpe">
|
|
<ul id="ExpeContent">
|
|
<ul id="ExpeContent">
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
</ul>
|
|
</ul>
|
|
@@ -156,22 +150,20 @@
|
|
<div class="container">
|
|
<div class="container">
|
|
<div class="info">
|
|
<div class="info">
|
|
<p><span class="pull-right"><span class="loca"><a href="/a/lianxiwomen/ ">目的地指南</a> <em>/</em>联系电话:<text id="phoneq"></text></span></span>
|
|
<p><span class="pull-right"><span class="loca"><a href="/a/lianxiwomen/ ">目的地指南</a> <em>/</em>联系电话:<text id="phoneq"></text></span></span>
|
|
-
|
|
|
|
- <a href="/">网站首页</a> <i>|</i>
|
|
|
|
- <span id="FootlistContent" >
|
|
|
|
|
|
+
|
|
|
|
+ <a href="/">网站首页</a> <i>|</i>
|
|
|
|
+ <span id="FootlistContent">
|
|
|
|
|
|
</span>
|
|
</span>
|
|
- <a href="/a/lianxiwomen/">联系我们</a>
|
|
|
|
-
|
|
|
|
|
|
+ <a href="/a/lianxiwomen/">联系我们</a>
|
|
|
|
+
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</footer>
|
|
|
|
|
|
<!-------------------------------------- 尾部开始 -------------------------------------->
|
|
<!-------------------------------------- 尾部开始 -------------------------------------->
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
<script type="text/html" id="SlideTemplate">
|
|
<script type="text/html" id="SlideTemplate">
|
|
<div class='carousel-item'>
|
|
<div class='carousel-item'>
|
|
<img src="{{= image}}" />
|
|
<img src="{{= image}}" />
|
|
@@ -215,8 +207,8 @@
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</a>
|
|
</li>
|
|
</li>
|
|
- </script>
|
|
|
|
-
|
|
|
|
|
|
+ </script>
|
|
|
|
+
|
|
<script type="text/html" id="NewsTemplate">
|
|
<script type="text/html" id="NewsTemplate">
|
|
<li>
|
|
<li>
|
|
<a href="/a/zuixindongtai/10.html?id={{= id }}" class="i"><img src="{{= zhu_images.shift() }}" alt="{{= title}}">
|
|
<a href="/a/zuixindongtai/10.html?id={{= id }}" class="i"><img src="{{= zhu_images.shift() }}" alt="{{= title}}">
|
|
@@ -230,7 +222,7 @@
|
|
</script>
|
|
</script>
|
|
<script type="text/html" id="ExpeTemplate">
|
|
<script type="text/html" id="ExpeTemplate">
|
|
<li>
|
|
<li>
|
|
- <a href="/a/shangxintiyan/16.html?id={{= id }}" class="i">
|
|
|
|
|
|
+ <a href="/a/shangxintiyan/16.html?id={{= id }}" class="i">
|
|
<div class="img"> <img src="{{= zhu_images.shift() }}" alt="{{= title}}"> </div>
|
|
<div class="img"> <img src="{{= zhu_images.shift() }}" alt="{{= title}}"> </div>
|
|
<div class="txt">
|
|
<div class="txt">
|
|
<h3>{{= title}}</h3>
|
|
<h3>{{= title}}</h3>
|
|
@@ -250,17 +242,16 @@
|
|
<script src="/skin/js/script.js"></script>
|
|
<script src="/skin/js/script.js"></script>
|
|
<script src="/skin/js/jquery.tmpl.js"></script>
|
|
<script src="/skin/js/jquery.tmpl.js"></script>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
-
|
|
|
|
//页面转载完毕后启动
|
|
//页面转载完毕后启动
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
-
|
|
|
|
|
|
+
|
|
BannerList();
|
|
BannerList();
|
|
GetNavList();
|
|
GetNavList();
|
|
About();
|
|
About();
|
|
|
|
|
|
});
|
|
});
|
|
//左侧栏目
|
|
//左侧栏目
|
|
- function GetNavList(){
|
|
|
|
|
|
+ function GetNavList() {
|
|
//定义请求URL
|
|
//定义请求URL
|
|
var url = apiRootPath + 'api/index/allType';
|
|
var url = apiRootPath + 'api/index/allType';
|
|
$.get(url, '', function(result) {
|
|
$.get(url, '', function(result) {
|
|
@@ -270,10 +261,9 @@
|
|
}
|
|
}
|
|
//绑定数据
|
|
//绑定数据
|
|
$("#NavlistTemplate").tmpl(result.data).appendTo("#NavlistContent");
|
|
$("#NavlistTemplate").tmpl(result.data).appendTo("#NavlistContent");
|
|
-
|
|
|
|
|
|
+
|
|
$("#FootlistTemplate").tmpl(result.data).appendTo("#FootlistContent");
|
|
$("#FootlistTemplate").tmpl(result.data).appendTo("#FootlistContent");
|
|
- $("#more").attr('href','/a/zuixindongtai/?id='+result.data[2].id);
|
|
|
|
-
|
|
|
|
|
|
+ $("#more").attr('href', '/a/zuixindongtai/?id=' + result.data[2].id);
|
|
|
|
|
|
}, "json");
|
|
}, "json");
|
|
}
|
|
}
|
|
@@ -305,11 +295,40 @@
|
|
$("#HomeTemplate").tmpl(result.data.e.introduce_model).appendTo("#HomeContent");
|
|
$("#HomeTemplate").tmpl(result.data.e.introduce_model).appendTo("#HomeContent");
|
|
$("#NewsTemplate").tmpl(result.data.c.introduce_model).appendTo("#NewsContent");
|
|
$("#NewsTemplate").tmpl(result.data.c.introduce_model).appendTo("#NewsContent");
|
|
$("#ExpeTemplate").tmpl(result.data.d.introduce_model).appendTo("#ExpeContent");
|
|
$("#ExpeTemplate").tmpl(result.data.d.introduce_model).appendTo("#ExpeContent");
|
|
-
|
|
|
|
|
|
+ var winResize = function() {
|
|
|
|
+ var width = $(window).width();
|
|
|
|
+ var height = $(window).height();
|
|
|
|
+ $('.full-height').height(height);
|
|
|
|
+
|
|
|
|
+ if(width <= 767) {
|
|
|
|
+ $('body').addClass('small-screen');
|
|
|
|
+ $('body').removeClass('normal-screen');
|
|
|
|
+ } else {
|
|
|
|
+ $('body').removeClass('small-screen');
|
|
|
|
+ $('body').addClass('normal-screen');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if($('body').hasClass('normal-screen')) {
|
|
|
|
+ $('.bg-contactus').height(height - $('footer').outerHeight());
|
|
|
|
+ } else {
|
|
|
|
+ $('main').css('min-height', $(window).height() - $('footer').outerHeight(true));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $('.lrlist').each(function(index, el) {
|
|
|
|
+ var $this = $(this);
|
|
|
|
+ var count = $this.data('count-pc');
|
|
|
|
+ if($('body').hasClass('small-screen')) {
|
|
|
|
+ count = $this.data('count-mb');
|
|
|
|
+ }
|
|
|
|
+ $this.find('ul li').width(Math.floor($this.width() / count));
|
|
|
|
+ $this.find('ul').width($this.find('ul li').width() * ($this.find('ul li').length + 1));
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
}, "json");
|
|
}, "json");
|
|
}
|
|
}
|
|
- function About(){
|
|
|
|
|
|
+
|
|
|
|
+ function About() {
|
|
//定义请求URL
|
|
//定义请求URL
|
|
var url = apiRootPath + 'api/index/aboutUs';
|
|
var url = apiRootPath + 'api/index/aboutUs';
|
|
$.get(url, '', function(result) {
|
|
$.get(url, '', function(result) {
|
|
@@ -319,7 +338,7 @@
|
|
}
|
|
}
|
|
//绑定数据
|
|
//绑定数据
|
|
$("#phoneq").html(result.data.phone);
|
|
$("#phoneq").html(result.data.phone);
|
|
- $("#footqq").attr('href','http://wpa.qq.com/msgrd?v=3&uin='+result.data.qq+'&site=qq&menu=yes');
|
|
|
|
|
|
+ $("#footqq").attr('href', 'http://wpa.qq.com/msgrd?v=3&uin=' + result.data.qq + '&site=qq&menu=yes');
|
|
|
|
|
|
}, "json");
|
|
}, "json");
|
|
}
|
|
}
|