first commit
567
public/assets/index/css/base.css
Normal file
@@ -0,0 +1,567 @@
|
||||
@charset "utf-8";
|
||||
|
||||
/******基础样式开始******/
|
||||
body {
|
||||
font-family: Microsoft Yahei, Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
background: #fff;
|
||||
text-align: justify;
|
||||
text-justify: inter-ideograph;
|
||||
background-image: url(about:blank);
|
||||
background-attachment: fixed;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
font-family: Microsoft Yahei, Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
line-height: 24px;
|
||||
color: #2e2e2e;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
div,
|
||||
span,
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
em,
|
||||
img,
|
||||
strong,
|
||||
blockquote,
|
||||
sub,
|
||||
sup,
|
||||
tt,
|
||||
i,
|
||||
b,
|
||||
dd,
|
||||
dl,
|
||||
dt,
|
||||
form,
|
||||
label,
|
||||
table,
|
||||
caption,
|
||||
tbody,
|
||||
tfoot,
|
||||
thead,
|
||||
tr,
|
||||
th,
|
||||
td,
|
||||
ul,
|
||||
li,
|
||||
p,
|
||||
a,
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
s,
|
||||
i,
|
||||
em {
|
||||
font-style: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul,
|
||||
ol,
|
||||
li {
|
||||
list-style-type: none;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
vertical-align: middle;
|
||||
font-family: Microsoft Yahei;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
address,
|
||||
cite,
|
||||
dfn,
|
||||
em,
|
||||
var {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: courier new, courier, monospace;
|
||||
}
|
||||
|
||||
sup {
|
||||
vertical-align: text-top;
|
||||
}
|
||||
|
||||
sub {
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
legend {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
fieldset,
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #6e6e6e;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.white,
|
||||
.white a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.white,
|
||||
a:hover {
|
||||
color: #027eba;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
clear: both;
|
||||
height: 1px;
|
||||
margin-top: -1px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.fw {
|
||||
font-family: Microsoft Yahei, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.fl {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.fr {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.fb {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.disb {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.disn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'impact';
|
||||
src: url(impact.ttf);
|
||||
src: url('impact.eot');
|
||||
/* IE9 Compat Modes */
|
||||
src: url('impact.eot?#iefix') format('embedded-opentype'),
|
||||
/* IE6-IE8 */
|
||||
url('impact.woff') format('woff'),
|
||||
/* Modern Browsers */
|
||||
url('impact.ttf') format('truetype'),
|
||||
/* Safari, Android, iOS */
|
||||
url('impact.svg#impact') format('svg');
|
||||
/* Legacy iOS */
|
||||
}
|
||||
|
||||
|
||||
.area-dialog-ct {
|
||||
width: 760px;
|
||||
padding: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.area-dialog-bar {
|
||||
height: 40px;
|
||||
background: #003a52;
|
||||
}
|
||||
|
||||
.area-dialog-bar span,
|
||||
.area-dialog-bar a {
|
||||
line-height: 40px;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.area-dialog-bar a#_a_c_close {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.area-dialog-ct .area-dialog-content {
|
||||
margin0;
|
||||
}
|
||||
|
||||
.area-dialog-ct .area-dialog-content::after {
|
||||
clear: both;
|
||||
display: block;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.area-dialog-content li {
|
||||
float: left;
|
||||
padding: 10px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.area-dialog-content .area-m-o {
|
||||
width: 150px;
|
||||
margin: 0;
|
||||
padding: 0 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.area-dialog-content li .a-i-disable {
|
||||
background: #d8d8d8;
|
||||
}
|
||||
|
||||
.area-dialog-content .area-m-o .a-check-num {
|
||||
color: #d00;
|
||||
}
|
||||
|
||||
.area-dialog-content input {
|
||||
margin: -3px 5px 0 0;
|
||||
}
|
||||
|
||||
.area-dialog-content .area-m-o lable {
|
||||
line-height: 35px;
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.area-dialog-content li .a-city-ct {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.area-dialog-content li.area-item-mover {
|
||||
background: #f7e76a;
|
||||
}
|
||||
|
||||
.area-dialog-content li.area-item-mover .a-city-ct {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.area-dialog-bottom {
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.area-dialog-bottom a {
|
||||
padding: 5px 15px;
|
||||
color: #fff;
|
||||
background: #007ba9;
|
||||
font-size: 14px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.area-dialog-bottom a:hover {
|
||||
background: #003a52;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
|
||||
.area-dialog-content .a-city-ct {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 45px;
|
||||
background: #f7e76a;
|
||||
padding: 10px;
|
||||
z-index: 100;
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
.area-dialog-content .a-city-ct:after {
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.area-dialog-content .a-city-ct p {
|
||||
float: left;
|
||||
width: 100px;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
|
||||
.color-1 {
|
||||
background-color: #249edc;
|
||||
}
|
||||
|
||||
.color-2 {
|
||||
background-color: #17a668;
|
||||
}
|
||||
|
||||
.color-3 {
|
||||
background-color: #741d88;
|
||||
}
|
||||
|
||||
.color-4 {
|
||||
background-color: #da9627;
|
||||
}
|
||||
|
||||
.color-5 {
|
||||
background-color: #ff9933;
|
||||
}
|
||||
|
||||
.color-6 {
|
||||
background-color: #6666ff;
|
||||
}
|
||||
|
||||
.color-7 {
|
||||
background-color: #ff99ff;
|
||||
}
|
||||
|
||||
.color-8 {
|
||||
background-color: #66cc66;
|
||||
}
|
||||
|
||||
.color-9 {
|
||||
background-color: #666;
|
||||
}
|
||||
|
||||
.color-10 {
|
||||
background-color: #ff7800;
|
||||
}
|
||||
|
||||
.color-11 {
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
.color-12 {
|
||||
background-color: #ff3333;
|
||||
}
|
||||
|
||||
.color-white {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.bgcolor-gray {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.ipt-txt {
|
||||
outline: none;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.ipt-txt:focus,
|
||||
.ipt-sec:focus {
|
||||
border: 1px solid #0078b5;
|
||||
box-shadow: #ccc 2px 4px 2px;
|
||||
}
|
||||
|
||||
.small-ipt {
|
||||
line-height: 16px;
|
||||
width: 150px;
|
||||
height: 16px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.ipt-sec {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.ipt-radio,
|
||||
.ipt-check {
|
||||
vertical-align: middle;
|
||||
margin: 0 5px 4px 0;
|
||||
}
|
||||
|
||||
.btnBox {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.Submit {
|
||||
width: 200px;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
border: 0;
|
||||
outline: none;
|
||||
margin: 0 auto;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease;
|
||||
-moz-transition: background-color 0.3s ease;
|
||||
-webkit-transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.Submit:hover {
|
||||
background-color: #F60;
|
||||
}
|
||||
|
||||
/* 弹性盒子布局 */
|
||||
|
||||
.flexrow {
|
||||
display: -webkit-box;
|
||||
/* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */
|
||||
display: -moz-box;
|
||||
/* Firefox 17- */
|
||||
display: -webkit-flex;
|
||||
/* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */
|
||||
display: -moz-flex;
|
||||
/* Firefox 18+ */
|
||||
display: -ms-flexbox;
|
||||
/* IE 10 */
|
||||
display: flex;
|
||||
/* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.flexcolumn {
|
||||
display: -webkit-box;
|
||||
/* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */
|
||||
display: -moz-box;
|
||||
/* Firefox 17- */
|
||||
display: -webkit-flex;
|
||||
/* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */
|
||||
display: -moz-flex;
|
||||
/* Firefox 18+ */
|
||||
display: -ms-flexbox;
|
||||
/* IE 10 */
|
||||
display: flex;
|
||||
/* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.jc_start {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.jc_end {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.jc_sb {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.jc_sr {
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
/* align-items: stretch|center|flex-start|flex-end|baseline|initial|inherit; */
|
||||
|
||||
.ai_start {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.ai_end {
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.flex1 {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.flex2 {
|
||||
flex: 2;
|
||||
}
|
||||
|
||||
.flex3 {
|
||||
flex: 3;
|
||||
}
|
||||
|
||||
.flex4 {
|
||||
flex: 4;
|
||||
}
|
||||
|
||||
.flex5 {
|
||||
flex: 5;
|
||||
}
|
||||
|
||||
/* wrap 超出一行隐藏... 超出两行隐藏...*/
|
||||
|
||||
|
||||
.overflow1 {
|
||||
text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 1;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.overflow2 {
|
||||
text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.overflow3 {
|
||||
text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.overflow4 {
|
||||
text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 4;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.overflow7 {
|
||||
text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 7;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.flexwrap{
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
23
public/assets/index/css/jquery.slideBox.css
Normal file
@@ -0,0 +1,23 @@
|
||||
@charset "utf-8";
|
||||
html, body { font-family:"微软雅黑"}
|
||||
/*
|
||||
* jQuery图片轮播(焦点图)插件
|
||||
* ADD.JENA.201206291027
|
||||
* EDIT.JENA.201206300904
|
||||
* Author: jena
|
||||
* Demo: http://ishere.cn/demo/jquery.slidebox/
|
||||
*/
|
||||
div.slideBox{ position:relative; width:670px; height:300px; overflow:hidden;}
|
||||
div.slideBox ul.items{ position:absolute; float:left; background:none; list-style:none; padding:0px; margin:0px;}
|
||||
div.slideBox ul.items li{ float:left; background:none; list-style:none; padding:0px; margin:0px;}
|
||||
div.slideBox ul.items li a{ float:left; line-height:normal !important; padding:0px !important; border:none/*For IE.ADD.JENA.201206300844*/;}
|
||||
div.slideBox ul.items li a img{ margin:0px !important; padding:0px !important; display:block; border:none/*For IE.ADD.JENA.201206300844*/;}
|
||||
div.slideBox div.tips{ position:absolute; bottom:0px; width:100%; height:32px; background-color:#000; overflow:hidden;}
|
||||
div.slideBox div.tips div.title{ position:absolute; left:0px; top:0px; height:100%;}
|
||||
div.slideBox div.tips div.title a{ color:#FFF; font-size:12px; line-height:32px; margin-left:10px; text-decoration:none;}
|
||||
div.slideBox div.tips div.title a:hover{ text-decoration:underline !important;}
|
||||
div.slideBox div.tips div.nums{ position:absolute; right:0px; top:0px; height:100%;}
|
||||
div.slideBox div.tips div.nums a{ display:inline-block; >float:left/*For IE.ADD.JENA.201206300844*/; width:10px; height:10px; background-color:#FFF; text-indent:-99999px; margin:12px 5px 0px 0px;}
|
||||
div.slideBox div.tips div.nums a.active{ background-color:#093;}
|
||||
|
||||
|
||||
1425
public/assets/index/css/main.css
Normal file
BIN
public/assets/index/images/0.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
public/assets/index/images/1.png
Normal file
|
After Width: | Height: | Size: 956 KiB |
BIN
public/assets/index/images/2.jpg
Normal file
|
After Width: | Height: | Size: 127 KiB |
BIN
public/assets/index/images/3.jpg
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
public/assets/index/images/4.jpg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/assets/index/images/5.jpg
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
public/assets/index/images/6.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
public/assets/index/images/banner.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
public/assets/index/images/bg.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
public/assets/index/images/blue.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/assets/index/images/bmicon.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/assets/index/images/ewm.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/assets/index/images/face1.gif
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/assets/index/images/face10.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/assets/index/images/face2.gif
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/assets/index/images/face3.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
public/assets/index/images/face4.gif
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/assets/index/images/face5.gif
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
public/assets/index/images/face6.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/assets/index/images/face7.gif
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/assets/index/images/face8.gif
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
public/assets/index/images/face9.gif
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/assets/index/images/footbj.jpg
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/assets/index/images/fuwu1.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
public/assets/index/images/fuwu2.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/assets/index/images/fuwu3.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/assets/index/images/fuwu4.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
public/assets/index/images/fuwu5.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
public/assets/index/images/gg_00.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
public/assets/index/images/gg_01.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
public/assets/index/images/gg_02.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
public/assets/index/images/gg_03.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
public/assets/index/images/icon.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
public/assets/index/images/ine-01.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
public/assets/index/images/ine-02.jpg
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
public/assets/index/images/jiantou.png
Normal file
|
After Width: | Height: | Size: 1014 B |
BIN
public/assets/index/images/jsq.png
Normal file
|
After Width: | Height: | Size: 755 B |
BIN
public/assets/index/images/jsq2.png
Normal file
|
After Width: | Height: | Size: 678 B |
BIN
public/assets/index/images/jtt.png
Normal file
|
After Width: | Height: | Size: 146 B |
BIN
public/assets/index/images/jtx.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/assets/index/images/logo.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
public/assets/index/images/logo.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
public/assets/index/images/name_00.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/assets/index/images/name_01.jpg
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
public/assets/index/images/name_02.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/assets/index/images/name_03.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/assets/index/images/name_04.jpg
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
public/assets/index/images/right.png
Normal file
|
After Width: | Height: | Size: 445 B |
BIN
public/assets/index/images/sanjiao.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/assets/index/images/sanjiao2.png
Normal file
|
After Width: | Height: | Size: 966 B |
BIN
public/assets/index/images/sficon.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
public/assets/index/images/shu.png
Normal file
|
After Width: | Height: | Size: 154 B |
BIN
public/assets/index/images/topbj.jpg
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
public/assets/index/images/topbj.png
Normal file
|
After Width: | Height: | Size: 426 KiB |
BIN
public/assets/index/images/words11_jcfc_content_left_but.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
public/assets/index/images/words11_jcfc_content_right_but.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
public/assets/index/images/zhinan01.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
public/assets/index/images/zhinan02.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/assets/index/images/zhinan03.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/assets/index/images/zhinan04.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/assets/index/images/zhinan05.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
public/assets/index/images/zhinan06.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/assets/index/images/zhinan07.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
public/assets/index/images/zxfw1.png
Normal file
|
After Width: | Height: | Size: 650 B |
BIN
public/assets/index/images/zxfw2.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/assets/index/images/zxfw3.png
Normal file
|
After Width: | Height: | Size: 980 B |
BIN
public/assets/index/images/zxfw4.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
public/assets/index/images/zxfw5.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
public/assets/index/images/zxfw6.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
public/assets/index/images/zxfw7.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
106
public/assets/index/js/Tabs.js
Normal file
@@ -0,0 +1,106 @@
|
||||
|
||||
(function($){
|
||||
|
||||
$.fn.rTabs = function(options){
|
||||
|
||||
//默认值
|
||||
var defaultVal = {
|
||||
btnClass:'.j-tab-nav', /*按钮的父级Class*/
|
||||
conClass:'.j-tab-con', /*内容的父级Class*/
|
||||
bind:'hover', /*事件参数 click,hover*/
|
||||
animation:'0', /*动画方向 left,up,fadein,0 为无动画*/
|
||||
speed:300, /*动画运动速度*/
|
||||
delay:200, /*Tab延迟速度*/
|
||||
auto:true, /*是否开启自动运行 true,false*/
|
||||
autoSpeed:8000 /*自动运行速度*/
|
||||
};
|
||||
|
||||
//全局变量
|
||||
var obj = $.extend(defaultVal, options),
|
||||
evt = obj.bind,
|
||||
btn = $(this).find(obj.btnClass),
|
||||
con = $(this).find(obj.conClass),
|
||||
anim = obj.animation,
|
||||
conWidth = con.width(),
|
||||
conHeight = con.height(),
|
||||
len = con.children().length,
|
||||
sw = len * conWidth,
|
||||
sh = len * conHeight,
|
||||
i = 0,
|
||||
len,t,timer;
|
||||
|
||||
return this.each(function(){
|
||||
|
||||
//判断动画方向
|
||||
function judgeAnim(){
|
||||
var w = i * conWidth,
|
||||
h = i * conHeight;
|
||||
btn.children().removeClass('current').eq(i).addClass('current');
|
||||
switch(anim){
|
||||
case '0':
|
||||
con.children().hide().eq(i).show();
|
||||
break;
|
||||
case 'left':
|
||||
con.css({position:'absolute',width:sw}).children().css({float:'left',display:'block'}).end().stop().animate({left:-w},obj.speed);
|
||||
break;
|
||||
case 'up':
|
||||
con.css({position:'absolute',height:sh}).children().css({display:'block'}).end().stop().animate({top:-h},obj.speed);
|
||||
break;
|
||||
case 'fadein':
|
||||
con.children().hide().eq(i).fadeIn();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//判断事件类型
|
||||
if(evt == "hover"){
|
||||
btn.children().hover(function(){
|
||||
var j = $(this).index();
|
||||
function s(){
|
||||
i = j;
|
||||
judgeAnim();
|
||||
}
|
||||
timer=setTimeout(s,obj.delay);
|
||||
}, function(){
|
||||
clearTimeout(timer);
|
||||
})
|
||||
}else{
|
||||
btn.children().bind(evt,function(){
|
||||
i = $(this).index();
|
||||
judgeAnim();
|
||||
})
|
||||
}
|
||||
|
||||
//自动运行
|
||||
function startRun(){
|
||||
t = setInterval(function(){
|
||||
i++;
|
||||
if(i>=len){
|
||||
switch(anim){
|
||||
case 'left':
|
||||
con.stop().css({left:conWidth});
|
||||
break;
|
||||
case 'up':
|
||||
con.stop().css({top:conHeight});
|
||||
}
|
||||
i=0;
|
||||
}
|
||||
judgeAnim();
|
||||
},obj.autoSpeed)
|
||||
}
|
||||
|
||||
//如果自动运行开启,调用自动运行函数
|
||||
if(obj.auto){
|
||||
$(this).hover(function(){
|
||||
clearInterval(t);
|
||||
},function(){
|
||||
startRun();
|
||||
})
|
||||
startRun();
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
2
public/assets/index/js/jquery-1.8.3.min.js
vendored
Normal file
257
public/assets/index/js/jquery.leoweather.min.js
vendored
Normal file
@@ -0,0 +1,257 @@
|
||||
(function($) {
|
||||
$.fn.leoweather = function(opts) {
|
||||
var defaults = {
|
||||
city: '',
|
||||
format: '\u5c0a\u656c\u7684\u4f1a\u5458\uff0c\u007b\u65f6\u6bb5\u007d\u597d\uff01\u0020\u73b0\u5728\u662f\uff1a\u007b\u5e74\u007d\u002f\u007b\u6708\u007d\u002f\u007b\u65e5\u007d\u0020\u007b\u65f6\u007d\u003a\u007b\u5206\u007d\u003a\u007b\u79d2\u007d\u0020\u661f\u671f\u007b\u5468\u007d\u0020\u60a8\u6240\u5728\u7684\u57ce\u5e02\uff1a\u007b\u57ce\u5e02\u007d\u0020\u4eca\u5929\u007b\u663c\u591c\u007d\u7684\u5929\u6c14\u662f\uff1a\u007b\u5929\u6c14\u007d\u0020\u6c14\u6e29\uff1a\u007b\u6c14\u6e29\u007d\u0020\u98ce\u5411\uff1a\u007b\u98ce\u5411\u007d\u0020\u98ce\u7ea7\uff1a\u007b\u98ce\u7ea7\u007d\u0020\u56fe\u6807\uff1a\u007b\u56fe\u6807\u007d'
|
||||
};
|
||||
var options = $.extend(defaults, opts);
|
||||
return this.each(function() {
|
||||
var obj = $(this),
|
||||
weather = new Array(),
|
||||
format = UC8F6C6362(options.format),
|
||||
url = '\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0070\u0068\u0070\u002e\u0077\u0065\u0061\u0074\u0068\u0065\u0072\u002e\u0073\u0069\u006e\u0061\u002e\u0063\u006f\u006d\u002e\u0063\u006e\u002f\u0069\u0066\u0072\u0061\u006d\u0065\u002f\u0069\u006e\u0064\u0065\u0078\u002f\u0077\u005f\u0063\u006c\u002e\u0070\u0068\u0070\u003f\u0063\u006f\u0064\u0065\u003d\u006a\u0073\u0026\u0064\u0061\u0079\u003d\u0030\u0026\u0063\u0069\u0074\u0079\u003d';
|
||||
var model = format.match(/\{.*?\}/g),
|
||||
action = new Array();
|
||||
for (var i = 0; model.length > i; i++) {
|
||||
action[i] = 'UC' + escape(model[i]).replace(/%u/g, '').replace(/%7B/g, '').replace(/%7D/g, '')
|
||||
};
|
||||
var valid = action.toString();
|
||||
if (valid.indexOf('UC57CE5E02') > 0 || valid.indexOf('UC59296C14') > 0 || valid.indexOf('UC6C146E29') > 0 || valid.indexOf('UC98CE5411') > 0 || valid.indexOf('UC98CE7EA7') > 0 || valid.indexOf('UC57CE5E02') > 0 || valid.indexOf('UC56FE6807') > 0) {
|
||||
$.ajax({
|
||||
url: UC7F515740(url, options.city),
|
||||
dataType: "script",
|
||||
success: function() {
|
||||
for (s in SWther.w) {
|
||||
var data = SWther.w[s][0];
|
||||
weather['name'] = s;
|
||||
weather['d1'] = data['d1'];
|
||||
weather['p1'] = data['p1'];
|
||||
weather['s1'] = data['s1'];
|
||||
weather['t1'] = data['t1'];
|
||||
weather['f1'] = data['f1'];
|
||||
weather['d2'] = data['d2'];
|
||||
weather['p2'] = data['p2'];
|
||||
weather['s2'] = data['s2'];
|
||||
weather['t2'] = data['t2'];
|
||||
weather['f2'] = data['f2']
|
||||
};
|
||||
getcontent(obj, weather)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
getcontent(obj, '')
|
||||
};
|
||||
function getcontent(o, w) {
|
||||
var d = new Date(),
|
||||
timer = 0;
|
||||
for (var i = 0; action.length > i; i++) {
|
||||
str = format.replace(/\{(.*?)\}/g,
|
||||
function(a, b) {
|
||||
var fun = 'UC' + escape(b).replace(/%u/g, '').replace(/%7B/g, '').replace(/%7D/g, '');
|
||||
return eval(fun + '(d,w)')
|
||||
})
|
||||
};
|
||||
if (action.toString().indexOf('UC65F6') > 0) {
|
||||
timer = 1000 * 60 * 60
|
||||
};
|
||||
if (action.toString().indexOf('UC5206') > 0) {
|
||||
timer = 1000 * 60
|
||||
};
|
||||
if (action.toString().indexOf('UC79D2') > 0) {
|
||||
timer = 1000
|
||||
};
|
||||
o.html(str);
|
||||
if (timer > 0) {
|
||||
var ClockTimer = setInterval(UC66F465B0SJ, timer)
|
||||
}
|
||||
}
|
||||
function UC66F465B0SJ() {
|
||||
var today = new Date();
|
||||
YY = today.getYear();
|
||||
if (YY < 1900) YY = YY + 1900;
|
||||
var MM = today.getMonth() + 1;
|
||||
if (MM < 10) MM = '0' + MM;
|
||||
var DD = today.getDate();
|
||||
if (DD < 10) DD = '0' + DD;
|
||||
var hh = today.getHours();
|
||||
if (hh < 10) hh = '0' + hh;
|
||||
var mm = today.getMinutes();
|
||||
if (mm < 10) mm = '0' + mm;
|
||||
var ss = today.getSeconds();
|
||||
if (ss < 10) ss = '0' + ss;
|
||||
var ww = today.getDay();
|
||||
if (ww == 0) ww = UC8F6C6362('\u65e5');
|
||||
if (ww == 1) ww = UC8F6C6362('\u4e00');
|
||||
if (ww == 2) ww = UC8F6C6362('\u4e8c');
|
||||
if (ww == 3) ww = UC8F6C6362('\u4e09');
|
||||
if (ww == 4) ww = UC8F6C6362('\u56db');
|
||||
if (ww == 5) ww = UC8F6C6362('\u4e94');
|
||||
if (ww == 6) ww = UC8F6C6362('\u516d');
|
||||
if (hh < 06) {
|
||||
xx = UC8F6C6362('\u51cc\u6668')
|
||||
} else if (hh < 09) {
|
||||
xx = UC8F6C6362('\u65e9\u4e0a')
|
||||
} else if (hh < 12) {
|
||||
xx = UC8F6C6362('\u4e0a\u5348')
|
||||
} else if (hh < 14) {
|
||||
xx = UC8F6C6362('\u4e2d\u5348')
|
||||
} else if (hh < 17) {
|
||||
xx = UC8F6C6362('\u4e0b\u5348')
|
||||
} else if (hh < 19) {
|
||||
xx = UC8F6C6362('\u508d\u665a')
|
||||
} else {
|
||||
xx = UC8F6C6362('\u665a\u4e0a')
|
||||
};
|
||||
$('#weather_YY').html(YY);
|
||||
$('#weather_MM').html(MM);
|
||||
$('#weather_DD').html(DD);
|
||||
$('#weather_hh').html(hh);
|
||||
$('#weather_mm').html(mm);
|
||||
$('#weather_ss').html(ss);
|
||||
$('#weather_ww').html(ww);
|
||||
$('#weather_xx').html(xx)
|
||||
}
|
||||
function UC5E74(today, weather) {
|
||||
YY = today.getYear();
|
||||
if (YY < 1900) YY = YY + 1900;
|
||||
return '<span id="weather_YY">' + YY + '</span>'
|
||||
}
|
||||
function UC6708(today, weather) {
|
||||
var MM = today.getMonth() + 1;
|
||||
if (MM < 10) MM = '0' + MM;
|
||||
return '<span id="weather_MM">' + MM + '</span>'
|
||||
}
|
||||
function UC65E5(today, weather) {
|
||||
var DD = today.getDate();
|
||||
if (DD < 10) DD = '0' + DD;
|
||||
return '<span id="weather_DD">' + DD + '</span>'
|
||||
}
|
||||
function UC65F6(today, weather) {
|
||||
var hh = today.getHours();
|
||||
if (hh < 10) hh = '0' + hh;
|
||||
return '<span id="weather_hh">' + hh + '</span>'
|
||||
}
|
||||
function UC5206(today, weather) {
|
||||
var mm = today.getMinutes();
|
||||
if (mm < 10) mm = '0' + mm;
|
||||
return '<span id="weather_mm">' + mm + '</span>'
|
||||
}
|
||||
function UC79D2(today, weather) {
|
||||
var ss = today.getSeconds();
|
||||
if (ss < 10) ss = '0' + ss;
|
||||
return '<span id="weather_ss">' + ss + '</span>'
|
||||
}
|
||||
function UC5468(today, weather) {
|
||||
var ww = today.getDay();
|
||||
if (ww == 0) ww = UC8F6C6362('\u65e5');
|
||||
if (ww == 1) ww = UC8F6C6362('\u4e00');
|
||||
if (ww == 2) ww = UC8F6C6362('\u4e8c');
|
||||
if (ww == 3) ww = UC8F6C6362('\u4e09');
|
||||
if (ww == 4) ww = UC8F6C6362('\u56db');
|
||||
if (ww == 5) ww = UC8F6C6362('\u4e94');
|
||||
if (ww == 6) ww = UC8F6C6362('\u516d');
|
||||
return '<span id="weather_ww">' + ww + '</span>'
|
||||
}
|
||||
function UC65F66BB5(today, weather) {
|
||||
var hh = today.getHours();
|
||||
if (hh < 06) {
|
||||
xx = UC8F6C6362('\u51cc\u6668')
|
||||
} else if (hh < 09) {
|
||||
xx = UC8F6C6362('\u65e9\u4e0a')
|
||||
} else if (hh < 12) {
|
||||
xx = UC8F6C6362('\u4e0a\u5348')
|
||||
} else if (hh < 14) {
|
||||
xx = UC8F6C6362('\u4e2d\u5348')
|
||||
} else if (hh < 17) {
|
||||
xx = UC8F6C6362('\u4e0b\u5348')
|
||||
} else if (hh < 19) {
|
||||
xx = UC8F6C6362('\u508d\u665a')
|
||||
} else {
|
||||
xx = UC8F6C6362('\u665a\u4e0a')
|
||||
};
|
||||
return '<span id="weather_xx">' + xx + '</span>'
|
||||
}
|
||||
function UC57CE5E02(today, weather) {
|
||||
return weather['name']
|
||||
}
|
||||
function UC59296C14(today, weather) {
|
||||
if (today.getHours() > 18 && today.getHours() < 8) {
|
||||
return UC591C95F459296C14(today, weather)
|
||||
} else {
|
||||
return UC767D592959296C14(today, weather)
|
||||
}
|
||||
}
|
||||
function UC767D592959296C14(today, weather) {
|
||||
return weather['s1']
|
||||
}
|
||||
function UC591C95F459296C14(today, weather) {
|
||||
return weather['s2']
|
||||
}
|
||||
function UC6C146E29(today, weather) {
|
||||
if (today.getHours() > 18 && today.getHours() < 8) {
|
||||
return UC591C95F46C146E29(today, weather)
|
||||
} else {
|
||||
return UC767D59296C146E29(today, weather)
|
||||
}
|
||||
}
|
||||
function UC767D59296C146E29(today, weather) {
|
||||
return weather['t1']
|
||||
}
|
||||
function UC591C95F46C146E29(today, weather) {
|
||||
return weather['t2']
|
||||
}
|
||||
function UC98CE5411(today, weather) {
|
||||
if (today.getHours() > 18 && today.getHours() < 8) {
|
||||
return UC591C95F498CE5411(today, weather)
|
||||
} else {
|
||||
return UC767D592998CE5411(today, weather)
|
||||
}
|
||||
}
|
||||
function UC767D592998CE5411(today, weather) {
|
||||
return weather['d1']
|
||||
}
|
||||
function UC591C95F498CE5411(today, weather) {
|
||||
return weather['d2']
|
||||
}
|
||||
function UC98CE7EA7(today, weather) {
|
||||
if (today.getHours() > 18 && today.getHours() < 8) {
|
||||
return UC591C95F498CE7EA7(today, weather)
|
||||
} else {
|
||||
return UC767D592998CE7EA7(today, weather)
|
||||
}
|
||||
}
|
||||
function UC767D592998CE7EA7(today, weather) {
|
||||
return weather['p1']
|
||||
}
|
||||
function UC591C95F498CE7EA7(today, weather) {
|
||||
return weather['p2']
|
||||
}
|
||||
function UC56FE6807(today, weather) {
|
||||
if (today.getHours() > 18 && today.getHours() < 8) {
|
||||
return UC591C95F456FE6807(today, weather)
|
||||
} else {
|
||||
return UC767D592956FE6807(today, weather)
|
||||
}
|
||||
}
|
||||
function UC767D592956FE6807(today, weather) {
|
||||
return weather['f1']
|
||||
}
|
||||
function UC591C95F456FE6807(today, weather) {
|
||||
return weather['f2']
|
||||
}
|
||||
function UC663C591C(today, weather) {
|
||||
if (today.getHours() > 18 && today.getHours() < 8) {
|
||||
return UC8F6C6362('\u591c\u95f4')
|
||||
} else {
|
||||
return UC8F6C6362('\u767d\u5929')
|
||||
}
|
||||
}
|
||||
function UC8F6C6362(string) {
|
||||
return unescape(string.replace(/\u/g, "%u"))
|
||||
}
|
||||
function UC7F515740(url, city) {
|
||||
return UC8F6C6362(url) + city + UC8F6C6362('\u0026\u0064\u0066\u0063\u003d\u0031\u0026\u0063\u0068\u0061\u0072\u0073\u0065\u0074\u003d\u0075\u0074\u0066\u002d\u0038').replace(/\%/g, '')
|
||||
}
|
||||
})
|
||||
}
|
||||
})(jQuery);
|
||||
95
public/assets/index/js/jquery.page.js
Normal file
@@ -0,0 +1,95 @@
|
||||
(function($){
|
||||
var ms = {
|
||||
init:function(obj,args){
|
||||
return (function(){
|
||||
ms.fillHtml(obj,args);
|
||||
ms.bindEvent(obj,args);
|
||||
})();
|
||||
},
|
||||
//填充html
|
||||
fillHtml:function(obj,args){
|
||||
return (function(){
|
||||
obj.empty();
|
||||
//上一页
|
||||
if(args.current > 1){
|
||||
obj.append('<a href="javascript:;" class="prevPage">上一页</a>');
|
||||
}else{
|
||||
obj.remove('.prevPage');
|
||||
obj.append('<span class="disabled">上一页</span>');
|
||||
}
|
||||
//中间页码
|
||||
if(args.current != 1 && args.current >= 4 && args.pageCount != 4){
|
||||
obj.append('<a href="javascript:;" class="tcdNumber">'+1+'</a>');
|
||||
}
|
||||
if(args.current-2 > 2 && args.current <= args.pageCount && args.pageCount > 5){
|
||||
obj.append('<span>...</span>');
|
||||
}
|
||||
var start = args.current -2,end = args.current+2;
|
||||
if((start > 1 && args.current < 4)||args.current == 1){
|
||||
end++;
|
||||
}
|
||||
if(args.current > args.pageCount-4 && args.current >= args.pageCount){
|
||||
start--;
|
||||
}
|
||||
for (;start <= end; start++) {
|
||||
if(start <= args.pageCount && start >= 1){
|
||||
if(start != args.current){
|
||||
obj.append('<a href="javascript:;" class="tcdNumber">'+ start +'</a>');
|
||||
}else{
|
||||
obj.append('<span class="current">'+ start +'</span>');
|
||||
}
|
||||
}
|
||||
}
|
||||
if(args.current + 2 < args.pageCount - 1 && args.current >= 1 && args.pageCount > 5){
|
||||
obj.append('<span>...</span>');
|
||||
}
|
||||
if(args.current != args.pageCount && args.current < args.pageCount -2 && args.pageCount != 4){
|
||||
obj.append('<a href="javascript:;" class="tcdNumber">'+args.pageCount+'</a>');
|
||||
}
|
||||
//下一页
|
||||
if(args.current < args.pageCount){
|
||||
obj.append('<a href="javascript:;" class="nextPage">下一页</a>');
|
||||
}else{
|
||||
obj.remove('.nextPage');
|
||||
obj.append('<span class="disabled">下一页</span>');
|
||||
}
|
||||
})();
|
||||
},
|
||||
//绑定事件
|
||||
bindEvent:function(obj,args){
|
||||
return (function(){
|
||||
obj.on("click","a.tcdNumber",function(){
|
||||
var current = parseInt($(this).text());
|
||||
ms.fillHtml(obj,{"current":current,"pageCount":args.pageCount});
|
||||
if(typeof(args.backFn)=="function"){
|
||||
args.backFn(current);
|
||||
}
|
||||
});
|
||||
//上一页
|
||||
obj.on("click","a.prevPage",function(){
|
||||
var current = parseInt(obj.children("span.current").text());
|
||||
ms.fillHtml(obj,{"current":current-1,"pageCount":args.pageCount});
|
||||
if(typeof(args.backFn)=="function"){
|
||||
args.backFn(current-1);
|
||||
}
|
||||
});
|
||||
//下一页
|
||||
obj.on("click","a.nextPage",function(){
|
||||
var current = parseInt(obj.children("span.current").text());
|
||||
ms.fillHtml(obj,{"current":current+1,"pageCount":args.pageCount});
|
||||
if(typeof(args.backFn)=="function"){
|
||||
args.backFn(current+1);
|
||||
}
|
||||
});
|
||||
})();
|
||||
}
|
||||
}
|
||||
$.fn.createPage = function(options){
|
||||
var args = $.extend({
|
||||
pageCount : 15,
|
||||
current : 1,
|
||||
backFn : function(){}
|
||||
},options);
|
||||
ms.init(this,args);
|
||||
}
|
||||
})(jQuery);
|
||||
12
public/assets/index/js/jquery.slideBox.min.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* jQuery图片轮播(焦点图)插件
|
||||
* ADD.JENA.201206291027
|
||||
* EDIT.JENA.201206300904
|
||||
* EDIT.JENA.201207051027
|
||||
* EDIT.JENA.201208090849
|
||||
* EDIT.JENA.201303141312
|
||||
* Version: 1.2.0314
|
||||
* Author: jena
|
||||
* Demo: http://ishere.cn/demo/jquery.slidebox/
|
||||
*/
|
||||
(function($){$.fn.slideBox=function(options){var defaults={direction:'left',duration:0.6,easing:'swing',delay:3,startIndex:0,hideClickBar:true,clickBarRadius:5,hideBottomBar:false,width:null,height:null};var settings=$.extend(defaults,options||{});var wrapper=$(this),ul=wrapper.children('ul.items'),lis=ul.find('li'),firstPic=lis.first().find('img');var li_num=lis.size(),li_height=0,li_width=0;var order_by='ASC';var init=function(){if(!wrapper.size())return false;li_height=settings.height?settings.height:lis.first().height();li_width=settings.width?settings.width:lis.first().width();wrapper.css({width:li_width+'px',height:li_height+'px'});lis.css({width:li_width+'px',height:li_height+'px'});if(settings.direction=='left'){ul.css('width',li_num*li_width+'px')}else{ul.css('height',li_num*li_height+'px')};ul.find('li:eq('+settings.startIndex+')').addClass('active');if(!settings.hideBottomBar){var tips=$('<div class="tips"></div>').css('opacity',0.8).appendTo(wrapper);var title=$('<div class="title"></div>').html(function(){var active=ul.find('li.active').find('a'),text=active.attr('title'),href=active.attr('href');return $('<a>').attr('href',href).text(text)}).appendTo(tips);var nums=$('<div class="nums"></div>').hide().appendTo(tips);lis.each(function(i,n){var a=$(n).find('a'),text=a.attr('title'),href=a.attr('href'),css='';i==settings.startIndex&&(css='active');$('<a>').attr('href',href).text(text).addClass(css).css('borderRadius',settings.clickBarRadius+'px').mouseover(function(){$(this).addClass('active').siblings().removeClass('active');ul.find('li:eq('+$(this).index()+')').addClass('active').siblings().removeClass('active');start();stop()}).appendTo(nums)});if(settings.hideClickBar){tips.hover(function(){nums.animate({top:'0px'},'fast')},function(){nums.animate({top:tips.height()+'px'},'fast')});nums.show().delay(2000).animate({top:tips.height()+'px'},'fast')}else{nums.show()}};lis.size()>1&&start()};var start=function(){var active=ul.find('li.active'),active_a=active.find('a');var index=active.index();if(settings.direction=='left'){offset=index*li_width*-1;param={'left':offset+'px'}}else{offset=index*li_height*-1;param={'top':offset+'px'}};wrapper.find('.nums').find('a:eq('+index+')').addClass('active').siblings().removeClass('active');wrapper.find('.title').find('a').attr('href',active_a.attr('href')).text(active_a.attr('title'));ul.stop().animate(param,settings.duration*1000,settings.easing,function(){active.removeClass('active');if(order_by=='ASC'){if(active.next().size()){active.next().addClass('active')}else{order_by='DESC';active.prev().addClass('active')}}else if(order_by=='DESC'){if(active.prev().size()){active.prev().addClass('active')}else{order_by='ASC';active.next().addClass('active')}}});wrapper.data('timeid',window.setTimeout(start,settings.delay*1000))};var stop=function(){window.clearTimeout(wrapper.data('timeid'))};wrapper.hover(function(){stop()},function(){window.setTimeout(start,settings.delay*1000);});var imgLoader=new Image();imgLoader.onload=function(){imgLoader.onload=null;init()};imgLoader.src=firstPic.attr('src')}})(jQuery);
|
||||
58
public/assets/index/js/lb_jcfc.js
Normal file
@@ -0,0 +1,58 @@
|
||||
var x = 0;
|
||||
var midd_x = 0;
|
||||
$(document).ready(function($) {
|
||||
$(".words11_jcfc_content .box .midd ul li a img").click(function() {
|
||||
var num = $(this).parent().parent().index();
|
||||
var nums = $(".words11_jcfc_content .box .midd ul li").length;
|
||||
|
||||
for (var i = 0; i < nums; i++) {
|
||||
if (num == i) {
|
||||
$(".words11_jcfc_content .box .midd ul").children().eq(num).find("img").css("border", "2px solid #4c951c");
|
||||
$(".words11_jcfc_content .box .focus img").attr("src", $(".words11_jcfc_content .box .midd ul").children().eq(num).find("img").attr("src"));
|
||||
} else {
|
||||
$(".words11_jcfc_content .box .midd ul").children().eq(i).find("img").css("border", "2px solid #FFF");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function lb_jcfc(tag) {
|
||||
var browser = navigator.appName
|
||||
var b_version = navigator.appVersion
|
||||
var version = b_version.split(";");
|
||||
var trim_Version = version[1].replace(/[ ]/g, "");
|
||||
if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE6.0") {
|
||||
alert("请升级浏览器!");
|
||||
} else if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE7.0") {
|
||||
var nums = $(".words11_jcfc_content .box ul li").length;
|
||||
x = ($(".words11_jcfc_content .box ul li img").width()+4+9.5)*nums - 276;
|
||||
}else{
|
||||
x = $(".words11_jcfc_content .box .midd ul").width() - 276;
|
||||
}
|
||||
|
||||
var temp = 80;
|
||||
if (tag == "+") {
|
||||
midd_x = midd_x - temp;
|
||||
if (midd_x + x > temp) {
|
||||
$(".words11_jcfc_content .box .midd ul").animate({
|
||||
left: "-=" + temp + 'px'
|
||||
}, 500);
|
||||
} else {
|
||||
$(".words11_jcfc_content .box .midd ul").animate({
|
||||
left: "-" + x + 'px'
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
if (tag == "-") {
|
||||
midd_x = midd_x + temp;
|
||||
if (x + midd_x < x) {
|
||||
$(".words11_jcfc_content .box .midd ul").animate({
|
||||
left: "+=" + temp + 'px'
|
||||
}, 500);
|
||||
} else {
|
||||
$(".words11_jcfc_content .box .midd ul").animate({
|
||||
left: '0px'
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
59
public/assets/index/js/nav.js
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
*author:Null
|
||||
*DATE:2013.5.24
|
||||
*/
|
||||
|
||||
$(function(){
|
||||
//头页登录
|
||||
$("#navul > li").not(".navhome").hover(function(){
|
||||
$(this).addClass("navmoon")
|
||||
},function(){
|
||||
$(this).removeClass("navmoon")
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
(function($){
|
||||
$.fn.capacityFixed = function(options) {
|
||||
var opts = $.extend({},$.fn.capacityFixed.deflunt,options);
|
||||
var FixedFun = function(element) {
|
||||
var top = opts.top;
|
||||
element.css({
|
||||
"top":top
|
||||
});
|
||||
$(window).scroll(function() {
|
||||
var scrolls = $(this).scrollTop();
|
||||
if (scrolls > top) {
|
||||
|
||||
if (window.XMLHttpRequest) {
|
||||
element.css({
|
||||
position: "fixed",
|
||||
top: 0
|
||||
});
|
||||
} else {
|
||||
element.css({
|
||||
top: scrolls
|
||||
});
|
||||
}
|
||||
}else {
|
||||
element.css({
|
||||
position: "absolute",
|
||||
top: top
|
||||
});
|
||||
}
|
||||
});
|
||||
element.find(".close-ico").click(function(event){
|
||||
element.remove();
|
||||
event.preventDefault();
|
||||
})
|
||||
};
|
||||
return $(this).each(function() {
|
||||
FixedFun($(this));
|
||||
});
|
||||
};
|
||||
$.fn.capacityFixed.deflunt={
|
||||
right : 0,//相对于页面宽度的右边定位
|
||||
top:0
|
||||
};
|
||||
})(jQuery);
|
||||
136
public/assets/index/js/slider.js
Normal file
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
By sean at 2010.07, modified on 2010.09.10;
|
||||
|
||||
Example:
|
||||
$(".productshow").xslider({//.productshow是要移动对象的外框;
|
||||
unitdisplayed:3,//可视的单位个数 必需项;
|
||||
movelength:1,//要移动的单位个数 必需项;
|
||||
maxlength:null,//可视宽度或高度 默认查找要移动对象外层的宽或高度;
|
||||
scrollobj:null,//要移动的对象 默认查找productshow下的ul;
|
||||
unitlen:null,//移动的单位宽或高度 默认查找li的尺寸;
|
||||
nowlength:null,//移动最长宽或高(要移动对象的宽度或高度) 默认由li个数乘以unitlen所得的积;
|
||||
dir:"H",//水平移动还是垂直移动,默认H为水平移动,传入V或其他字符则表示垂直移动;
|
||||
autoscroll:1000//自动移动间隔时间 默认null不自动移动;
|
||||
});
|
||||
*/
|
||||
jQuery.extend(jQuery.easing,{
|
||||
easeInSine: function (x, t, b, c, d) {
|
||||
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
||||
}
|
||||
});
|
||||
(function($){
|
||||
$.fn.xslider=function(settings){
|
||||
settings=$.extend({},$.fn.xslider.defaults,settings);
|
||||
this.each(function(){
|
||||
var scrollobj=settings.scrollobj || $(this).find("ul");
|
||||
var maxlength=settings.maxlength || (settings.dir=="H" ? scrollobj.parent().width() : scrollobj.parent().height());//length of the wrapper visible;
|
||||
var scrollunits=scrollobj.find("li");//units to move;
|
||||
var unitlen=settings.unitlen || (settings.dir=="H" ? scrollunits.eq(0).outerWidth() : scrollunits.eq(0).outerHeight());
|
||||
var unitdisplayed=settings.unitdisplayed;//units num displayed;
|
||||
var nowlength=settings.nowlength || scrollunits.length*unitlen;//length of the scrollobj;
|
||||
var offset=0;
|
||||
var sn=0;
|
||||
var movelength=unitlen*settings.movelength;
|
||||
var moving=false;//moving now?;
|
||||
var btnright=$(this).find("a.aright");
|
||||
var btnleft=$(this).find("a.aleft");
|
||||
|
||||
if(settings.dir=="H"){
|
||||
scrollobj.css("left","0px");
|
||||
}else{
|
||||
scrollobj.css("top","0px");
|
||||
}
|
||||
if(nowlength>maxlength){
|
||||
btnleft.addClass("agrayleft");
|
||||
btnright.removeClass("agrayright");
|
||||
offset=nowlength-maxlength;
|
||||
}else{
|
||||
btnleft.addClass("agrayleft");
|
||||
btnright.addClass("agrayright");
|
||||
}
|
||||
|
||||
btnleft.click(function(){
|
||||
if($(this).is("[class*='agrayleft']")){return false;}
|
||||
if(!moving){
|
||||
moving=true;
|
||||
sn-=movelength;
|
||||
if(sn>unitlen*unitdisplayed-maxlength){
|
||||
jQuery.fn.xslider.scroll(scrollobj,-sn,settings.dir,function(){moving=false;});
|
||||
}else{
|
||||
jQuery.fn.xslider.scroll(scrollobj,0,settings.dir,function(){moving=false;});
|
||||
sn=0;
|
||||
$(this).addClass("agrayleft");
|
||||
}
|
||||
btnright.removeClass("agrayright");
|
||||
}
|
||||
return false;
|
||||
});
|
||||
btnright.click(function(){
|
||||
if($(this).is("[class*='agrayright']")){return false;}
|
||||
if(!moving){
|
||||
moving=true;
|
||||
sn+=movelength;
|
||||
if(sn<offset-(unitlen*unitdisplayed-maxlength)){
|
||||
jQuery.fn.xslider.scroll(scrollobj,-sn,settings.dir,function(){moving=false;});
|
||||
}else{
|
||||
jQuery.fn.xslider.scroll(scrollobj,-offset,settings.dir,function(){moving=false;});//滚动到最后一个位置;
|
||||
sn=offset;
|
||||
$(this).addClass("agrayright");
|
||||
}
|
||||
btnleft.removeClass("agrayleft");
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
if(settings.autoscroll){
|
||||
jQuery.fn.xslider.autoscroll($(this),settings.autoscroll);
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
})(jQuery);
|
||||
|
||||
jQuery.fn.xslider.defaults = {
|
||||
maxlength:0,
|
||||
scrollobj:null,
|
||||
unitlen:0,
|
||||
nowlength:0,
|
||||
dir:"H",
|
||||
autoscroll:null
|
||||
};
|
||||
jQuery.fn.xslider.scroll=function(obj,w,dir,callback){
|
||||
if(dir=="H"){
|
||||
obj.animate({
|
||||
left:w
|
||||
},500,"easeInSine",callback);
|
||||
}else{
|
||||
obj.animate({
|
||||
top:w
|
||||
},500,"easeInSine",callback);
|
||||
}
|
||||
}
|
||||
jQuery.fn.xslider.autoscroll=function(obj,time){
|
||||
var vane="right";
|
||||
function autoscrolling(){
|
||||
if(vane=="right"){
|
||||
if(!obj.find("a.agrayright").length){
|
||||
obj.find("a.aright").trigger("click");
|
||||
}else{
|
||||
vane="left";
|
||||
}
|
||||
}
|
||||
if(vane=="left"){
|
||||
if(!obj.find("a.agrayleft").length){
|
||||
obj.find("a.aleft").trigger("click");
|
||||
}else{
|
||||
vane="right";
|
||||
}
|
||||
}
|
||||
}
|
||||
var scrollTimmer=setInterval(autoscrolling,time);
|
||||
obj.hover(function(){
|
||||
clearInterval(scrollTimmer);
|
||||
},function(){
|
||||
scrollTimmer=setInterval(autoscrolling,time);
|
||||
});
|
||||
}
|
||||
BIN
public/assets/index/upload/newsimg.jpg
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
public/assets/index/upload/tup.jpg
Normal file
|
After Width: | Height: | Size: 23 KiB |