初始版本

This commit is contained in:
2026-04-19 01:39:41 +08:00
commit 2b4d3e9880
1272 changed files with 389959 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,760 @@
@charset "utf-8";
/* CSS Document */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin: 0; padding: 0; }
body, button, input, select, textarea { font: 12px/1.5 arial, \5b8b\4f53; color:#555; }
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; }
small { font-size: 12px; }
ul, ol { list-style: none; }
a { text-decoration: none; color:#555; cursor:pointer; }
a:hover { text-decoration: none; color:#3B87B1; }
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; }*/
.cf:after { clear: both; content: "."; display: block; height: 0; overflow: hidden; visibility: hidden; }
.cf { *zoom:1; }
.dn { display: none; }
.fl { float: left; }
.fr { float: right; }
.mr0 { margin-right: 0 !important; }
.mrb { margin-right:10px;}
.mr10 { margin-right:10px;}
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }
.tc { text-align: center; }
.tr { text-align: right; }
.es { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb { font-weight: bold !important; }
.pr { position:relative;}
.pa { position: absolute; }
.red{ color:#F00; }
.vm { vertical-align:middle; }
.f14{ font-size:14px; }
.fwn{ font-weight:normal !important; }
body{ background-color:#f5f5f5; }
a{ outline:none; }
.wrapper{ padding:15px 0 0 18px; }
.min-w{ min-width:1150px; }
/*搜索条件*/
.mod-search .con{ width: 250px; }
.ul-inline li{ float:left; margin-right:10px; }
.ul-inline li label{ padding-right:10px; }
.ul-inline li i{ padding:0 3px; font-style:normal; }
.mod-search .more{ cursor:pointer; }
/*高级条件*/
.mod-search-adv label { width: 80px; display: inline-block; }
.mod-search-adv li { margin-bottom: 20px; }
.mod-search-adv li i { font-style: normal; padding: 0 5px; }
.mod-search-adv .con{ width: 250px; }
.spinbox{ border: 1px solid #ccc; padding:1px 2px 2px; width:60px; }
.spinbox-active { background-repeat: no-repeat; background-position: right 0px; background-image: url(img/spinbox-sprite.png); }
.spinbox-active.spinbox-up-hover { background-position: right -18px; cursor: pointer; }
.spinbox-active.spinbox-down-hover { background-position: right -36px; cursor: pointer; }
.spinbox-active.spinbox-up { background-position: right -72px; cursor: pointer; }
.spinbox-active.spinbox-down { background-position: right -54px; cursor: pointer; }
/* 工具条:左右布局 */
.mod-toolbar-top{ padding:0 18px 10px 0; }
.mod-toolbar-top .tit{display:inline-block;*display:inline;zoom:1;margin-right:10px;font-size:14px;line-height:30px;vertical-align:middle;}
/* 工具条:右布局 */
.mod-toolbar-bottom{ padding:0 18px 10px 0; }
/* 公用搜索模块 */
.mod-search { padding:0 18px 10px 0; }
.mod-search .tit{display:inline-block;*display:inline;zoom:1;margin-right:10px;font-size:14px;line-height:30px;vertical-align:middle;}
.no-query{ background:#FFF url(img/no_query.png) 100px 60px no-repeat; height:402px; border:1px solid #ddd; margin-right:18px; }
/*高级搜索*/
.filter-con{width:570px;left:0;overflow:hidden;}
.filter-list{font-size:12px;}
.filter-list li{height:30px; padding:6px 0;overflow: hidden;zoom:1;}
#filter-menu{display: inline-block; *display: inline; *zoom:1;}
#filter-menu .menu-btn{background: #eaeaea; padding-right: 30px;filter:progid:DXImageTransform.Microsoft.Gradient(enabled=false);}
#filter-menu .menu-btn b{border-color: #888888 #eaeaea #eaeaea;}
#filter-menu .ui-input{width: 214px;}
#filter-menu input{font-size: 12px;vertical-align: middle;}
#filter-menu label.tit{display: inline-block;*display: inline;*zoom: 1; width: 65px; text-align: left;vertical-align: middle;line-height: 30px; font-size:12px;}
#filter-menu .con{width: 340px; }
#set-curPeriod{display: inline-block;*display: inline;*zoom: 1;margin-left:5px; width: 20px; height: 20px;overflow: hidden;vertical-align: middle;background: url('img/icon_time.png') no-repeat;}
#more-conditions{display: none;zoom:1;}
#filter-menu .mod-choose-input{position: relative;*zoom: 1;}
#filter-menu .mod-choose-input .ui-input{padding-right: 25px;width:210px;}
#filter-menu .ui-datepicker-input{width:95px;}
#filter-menu .btns{overflow: hidden;zoom:1;margin-top: 10px; height: 30px;}
#filter-submit{float: right;margin-right: 0;}
#filter-reset{float: right;display:none;margin-right: 10px;}
.conditions-trigger{color: #999;float: left;line-height: 30px;overflow:hidden;position: relative;padding-right: 16px;outline:none;*zoom:1;}
.conditions-trigger b{position: absolute;right: 0;top: 50%;margin-top: -8px;width: 16px;height: 16px;background:url('img/page_spr_icons.png') -192px -96px no-repeat;}
.conditions-expand b{background-position: -208px -96px;}
.conditions-trigger:hover{color: #999;}
.conditions-expand:hover{color: #999;}
/* 表单样式 */
.mod-form-rows{zoom:1;}
.mod-form-rows input,.mod-form-rows select{vertical-align:middle;}
.mod-form-rows .row-item{margin-bottom:15px;zoom:1;}
.mod-form-rows .row-item:after{clear: both; content: "."; display: block; height: 0; overflow: hidden; visibility: hidden; }
.mod-form-rows .label-wrap{width:70px;float:left;display:inline;margin-right:10px;_margin-right:7px;line-height:30px;font-size:14px;}
.mod-form-rows .ctn-wrap{overflow:hidden;zoom:1;line-height: 30px;}
.mod-form-rows .radio-wrap input{margin-right: 3px;margin-top: -3px;}
.mod-form-rows .radio-wrap label{margin-right:20px;line-height: 30px;}
.mod-form-rows .tips{font-size: 12px;color: #999;}
/*validator*/
label.valid-error{margin-bottom:-10px;font-size: 12px;line-height:1.2;white-space: nowrap;color: #dd4e4e;}
input.valid-error,input.valid-error:hover,input.valid-error:focus{border-color:#dd4e4e;}
/*步骤*/
.mod-steps{font-size:0;margin-bottom: 20px;}
.mod-steps li{display:inline;font-size:14px;margin-right:12px;color:#888;}
.mod-steps .current{color:#317da7;font-weight:bold;}
.mod-steps span{margin-right:12px;}
.mod-inner{padding:0 0 0 18px;margin: 3px 0 0;}
.mod-inner h3{ margin-bottom:20px; font-size:14px; }
/*导入*/
#import-wrap{font-size:14px;line-height:1.8;}
#import-wrap .step-item{}
#import-wrap .tit{font-weight:bold;}
#import-wrap a.link{color:#3a86b0; text-decoration:underline; }
#import-wrap .ctn{margin-bottom:8px;}
#import-wrap .file-import-ctn{margin-bottom:30px;}
#import-wrap .step-btns{margin:5px -10px 0 0;text-align:right;}
#import-wrap .file-import-ctn .failed-rows{margin-top:15px;font-size:12px;}
#import-wrap .file-import-ctn .total{font-size:14px;margin-bottom:5px;}
#file-path{width:200px;}
#import-btn-wrap{vertical-align:middle;display:inline-block;*display:inline;zoom:1;width:60px;height:32px;}
#upload-progress{padding-bottom:40px;}
#upload-progress h3{font-size:14px;font-weight:bold;margin-bottom:20px;}
#upload-progress .progress-bar{position:relative;width:430px;height:10px;font-size:0;border:1px solid #e2e2e2;background-color:#f8f8f8;}
#upload-progress .progress-bar span{position:absolute;top:-1px;left:-1px;display:block;width:0%;height:100%;font-size:0;overflow:hidden;border:1px solid #3279a0;background-color:#428eb8;}
/* powerFloat */
.float_ajax_box {
border: 1px solid #ccc;
background-color: #fff;
}
.float_loading {
width: 100px;
height: 100px;
background: url("img/loading.gif") no-repeat center;
}
.float_ajax_image {
padding: 5px;
}
.float_ajax_error {
width: 200px;
padding: 40px 0;
text-align: center;
}
.float_list_ul {
margin: 0;
padding: 1px;
border: 1px solid #beceeb;
background-color: #fff;
font-size: 12px;
list-style-type: none;
}
.float_list_a {
display:block;
text-decoration: none;
}
.float_list_a:hover {
background-color:#f0f3f9;
color: #333;
text-decoration: none;
}
.float_list_ul li {
line-height: 20px;
border-top: 1px solid #f0f3f9;
text-indent: 5px;
}
.float_list_ul li:first-child {
border-top: 0;
}
.float_list_null {
padding: 40px 20px;
text-align: center;
}
.float_remind_box {
border: 1px solid #F7CE39;
background: #ffffe0;
padding: 5px 10px;
}
.float_tip_box {
line-height: 18px;
padding: 0 3px;
background-color: #ffffe0;
-moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .4);
-webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .4);
box-shadow: 1px 1px 2px rgba(0, 0, 0, .4);
border: 1px solid #333;
position:absolute;
}
.float_doing_box {
border: 1px solid #F7CE39;
background: #ffffe0 url("img/loading.gif") no-repeat 5px center;
padding: 5px 10px 5px 25px;
font-size: 12px;
position: absolute;
}
.float_corner {
font-size: 18px;
font-family: '宋体';
position: absolute;
left: -6000px;
overflow: hidden;
}
.float_corner .corner {
position: absolute;
}
.float_corner .corner_1 {
/*可去除*/
color: #ccc;
}
.float_corner .corner_2 {
/*可去除*/
color: #fff;
}
.float_corner_top, .float_corner_bottom {
width: 16px;
height: 8px;
}
.float_corner_top {
line-height: 14px;
}
.float_corner_bottom {
line-height: 17px;
}
.float_corner_left, .float_corner_right {
width: 8px;
height: 16px;
}
.float_corner_top .corner, .float_corner_bottom .corner {
left: 0;
}
.float_corner_right .corner, .float_corner_left .corner{
top: -2px;
}
.float_corner_bottom .corner_1 {
}
.float_corner_bottom .corner_2 {
top: 1px;
}
.float_corner_left .corner_1 {
right: 0;
}
.float_corner_left .corner_2 {
right: 1px;
}
.float_corner_top .corner_1 {
bottom: 0;
}
.float_corner_top .corner_2 {
bottom: 1px;
}
.float_corner_right .corner_2 {
left: 1px;
}
/*grid中的操作图标样式 */
/* Icons from jquery.ui.core
----------------------------------*/
/* states and images */
.ui-icon {
display: block;
/*text-indent: -99999px;ie7下会导致图标不见使用font-size:0代替;http://www.liveme.org/text-indent-in-ie6-and-ie7.html*/
font-size:0;
overflow: hidden;
background-repeat: no-repeat;
}
/* Icons
* create by guoliang_zou
* lastUpdate by guoliang_zou 2014-03-07
----------------------------------*/
/* states and images */
.ui-icon {
width: 16px;
height: 16px;
}
.ui-icon,
.ui-widget-content .ui-icon {
background-image: url(img/ui-icons_20150410.png)/*{iconsContent}*/;
}
.ui-state-default .ui-icon {
background-image: url(img/ui-icons_20150410.png)/*{iconsDefault}*/;
}
.ui-state-hover .ui-icon,
.ui-state-focus .ui-icon {
background-image: url(img/ui-icons_20150410.png)/*{iconsHover}*/;
}
/* positioning normal*/
.ui-icon-seek-next { background-position:0 -16px; }
.ui-icon-seek-prev { background-position:-16px -16px; }
.ui-icon-seek-end { background-position:-32px -16px; }
.ui-icon-seek-first { background-position:-48px -16px; }
.ui-icon-trash { background-position:-64px -16px; }
.ui-icon-plus { background-position:-80px -16px; }
.ui-icon-search { background-position:-96px -16px; }
.ui-icon-pencil { background-position:-112px -16px; }
.ui-icon-arrowthickstop-1-s { background-position:-128px -16px; }
.ui-icon-copy { background-position:-144px -16px; }
.ui-icon-triangle-1-s { background-position:-160px -16px; }
.ui-icon-folder-open { background-position:-175px -16px; }
.ui-icon-pic { background-position:-190px -16px; }
.ui-icon-config { background-position:-304px -16px; }
/* positioning default*/
.ui-state-default .ui-icon-seek-next { background-position:0 0; }
.ui-state-default .ui-icon-seek-prev { background-position:-16px 0; }
.ui-state-default .ui-icon-seek-end { background-position:-32px 0; }
.ui-state-default .ui-icon-seek-first { background-position:-48px 0; }
.ui-state-default .ui-icon-trash { background-position:-64px 0; }
.ui-state-default .ui-icon-plus { background-position:-80px 0; }
.ui-state-default .ui-icon-search { background-position:-96px 0; }
.ui-state-default .ui-icon-pencil { background-position:-112px 0; }
.ui-state-default .ui-icon-arrowthickstop-1-s { background-position:-128px 0; }
.ui-state-default .ui-icon-copy { background-position:-144px 0; }
.ui-state-default .ui-icon-triangle-1-s { background-position:-160px 0; }
.ui-state-default .ui-icon-pic { background-position:-190px 0; }
.ui-state-default .ui-icon-config { background-position:-304px 0; }
/* positioning hover*/
.ui-state-hover .ui-icon-seek-next { background-position:0 -16px; }
.ui-state-hover .ui-icon-seek-prev { background-position:-16px -16px; }
.ui-state-hover .ui-icon-seek-end { background-position:-32px -16px; }
.ui-state-hover .ui-icon-seek-first { background-position:-48px -16px; }
.ui-state-hover .ui-icon-trash { background-position:-64px -16px; }
.ui-state-hover .ui-icon-plus { background-position:-80px -16px; }
.ui-state-hover .ui-icon-search { background-position:-96px -16px; }
.ui-state-hover .ui-icon-pencil { background-position:-112px -16px; }
.ui-state-hover .ui-icon-arrowthickstop-1-s { background-position:-128px -16px; }
.ui-state-hover .ui-icon-copy { background-position:-144px -16px; }
.ui-state-hover .ui-icon-triangle-1-s { background-position:-160px -16px; }
.ui-state-hover .ui-icon-pic { background-position:-190px -16px;}
.ui-state-hover .ui-icon-config { background-position:-304px -16px;}
/* --------------
* tree *
* ------------ */
.l-tree
{
margin:0; padding:0; list-style:none; overflow:hidden; position:relative; display:block; background:white;
}
.l-tree-loading
{
position: absolute;z-index: 91000; top:40%; left:50%; overflow:hidden;
background:url('../images/tree/loading.gif') no-repeat 0px 0px;width:24px; height:24px;
display:none;
}
.l-tree a,.l-tree span{color: #333;height: 22px;line-height: 22px; text-decoration:none;}
.l-tree .l-body span
{
display: block;
float: left;_display: inherit;_float:none;*display: inherit;*float:none;
}
.l-tree ul,.l-tree li{list-style:none; margin:0; padding:0;}
.l-tree li {clear: both;display: block;cursor: pointer;}
.l-tree li .l-body{ height:22px;line-height: 22px; overflow:hidden;width: 2000px;}
.l-tree .l-box
{
width:22px; height:22px; overflow:hidden; float:left; background:url('img/tree.gif');background-position:-22px -220px;
}
.l-tree li .l-body .l-box-loading
{
background:url('../images/tree/nodeloading4.gif') no-repeat 5px 5px; cursor:default;
}
.l-tree-noline .l-box
{
background-image:url('../images/tree/tree-noline.gif');
}
.l-tree .l-expandable-close{background-position:0px -44px;}
.l-tree .l-first .l-expandable-close{background-position:0px -22px;}
.l-tree .l-last .l-expandable-close{ background-position:0px -66px;}
.l-tree .l-onlychild .l-expandable-close{background-position:0px 0px;}
.l-tree .l-expandable-open{background-position:0px -132px;}
.l-tree .l-first .l-expandable-open{background-position:0px -110px;}
.l-tree .l-last .l-expandable-open{ background-position:0px -154px;}
.l-tree .l-onlychild .l-expandable-open{background-position:0px -88px;}
.l-tree .l-over
{
background: none;
}
.l-tree .l-over span
{
text-decoration:underline;
}
.l-tree .l-selected
{
background: none;
}
.l-tree .l-selected span{background: #D9E8FB; border:1px solid #B5CBEC; padding:0px 2px;height: 20px;
line-height: 20px;}
.l-tree .l-line{background-position:0px -176px;}
.l-tree .l-note{ background-position:0px -198px;}
.l-tree .l-note{ background-position:0px -198px;}
.l-tree .l-note-last{ background-position:0px -220px;}
.l-tree .l-checkbox-unchecked{ background-position:-22px 0px;}
.l-tree .l-checkbox-checked{ background-position:-22px -22px;}
.l-tree .l-checkbox-incomplete{ background-position:-22px -44px;}
.l-tree .l-over .l-checkbox-unchecked{ background-position:-44px 0px;}
.l-tree .l-over .l-checkbox-checked{ background-position:-44px -22px;}
.l-tree .l-over .l-checkbox-incomplete{ background-position:-44px -44px;}
.l-tree .l-tree-icon-folder{ background-position:-22px -88px;}
.l-tree .l-tree-icon-none{ background:none;}
.l-tree .l-tree-icon-none img{border: 0;height: 16px;width: 16px; top:2px; margin-top:2px; margin-left:2px;}
.l-tree .l-tree-icon-folder-open{background-position:-44px -88px;}
.l-tree .l-tree-icon-leaf{background-position:-22px -110px;}
/* Backgrounds */
.bg-navy { background-color: #001f3f; }
.bg-blue { background-color: #0074d9; }
.bg-aqua { background-color: #7fdbff; }
.bg-teal { background-color: #39cccc; }
.bg-olive { background-color: #3d9970; }
.bg-green { background-color: #2ecc40; }
.bg-lime { background-color: #01ff70; }
.bg-yellow { background-color: #ffdc00; }
.bg-orange { background-color: #ff851b; }
.bg-red { background-color: #ff4136; }
.bg-fuchsia { background-color: #f012be; }
.bg-purple { background-color: #b10dc9; }
.bg-maroon { background-color: #85144b; }
.bg-white { background-color: #ffffff; }
.bg-gray { background-color: #aaaaaa; }
.bg-silver { background-color: #dddddd; }
.bg-black { background-color: #111111; }
/* Colors */
.navy { color: #001f3f; }
.blue { color: #0074d9; }
.aqua { color: #7fdbff; }
.teal { color: #39cccc; }
.olive { color: #3d9970; }
.green { color: #2ecc40; }
.lime { color: #01ff70; }
.yellow { color: #ffdc00; }
.orange { color: #ff851b; }
.red { color: #ff4136; }
.fuchsia { color: #f012be; }
.purple { color: #b10dc9; }
.maroon { color: #85144b; }
.white { color: #ffffff; }
.silver { color: #dddddd; }
.gray { color: #aaaaaa; }
.black { color: #111111; }
/* ---------------------single CSS----------------------- */
/* display */
.dn{display:none;}
.di{display:inline;}
.db{display:block;}
.dib{display:inline-block;} /* if the element is block level(eg. div, li), using 'inline_any' instead */
/* height */
.h14{height:14px;}
.h16{height:16px;}
.h18{height:18px;}
.h20{height:20px;}
.h22{height:22px;}
.h24{height:24px;}
/* width */
/* fixed width value */
.w20{width:20px;}
.w50{width:50px;}
.w70{width:70px;}
.w100{width:100px;}
.w120{width:120px;}
.w140{width:140px;}
.w160{width:160px;}
.w180{width:180px;}
.w200{width:200px;}
.w220{width:220px;}
.w250{width:250px;}
.w280{width:280px;}
.w300{width:280px;}
.w320{width:320px;}
.w360{width:360px;}
.w400{width:400px;}
.w460{width:460px;}
.w500{width:500px;}
.w600{width:600px;}
.w640{width:640px;}
.w700{width:700px;}
/* percent width value */
.pct10{width:10%;}
.pct15{width:15%;}
.pct20{width:20%;}
.pct25{width:25%;}
.pct30{width:30%;}
.pct33{width:33.3%;}
.pct35{width:35%;}
.pct40{width:40%;}
.pct50{width:50%;}
.pct60{width:60%;}
.pct66{width:66.6%;}
.pct70{width:70%;}
.pct75{width:75%;}
.pct80{width:80%;}
.pct90{width:90%;}
.pct100{width:100%;}
/* line-height */
.lh14{line-height:14px;}
.lh16{line-height:16px;}
.lh18{line-height:18px;}
.lh20{line-height:20px;}
.lh22{line-height:22px;}
.lh24{line-height:24px;}
/* margin */
.m0{margin:0;}
.ml1{margin-left:1px;}
.ml2{margin-left:2px;}
.ml5{margin-left:5px;}
.ml10{margin-left:10px;}
.ml15{margin-left:15px;}
.ml20{margin-left:20px;}
.ml30{margin-left:30px;}
.mr1{margin-right:1px;}
.mr2{margin-right:2px;}
.mr5{margin-right:5px;}
.mr10{margin-right:10px;}
.mr15{margin-right:15px;}
.mr20{margin-right:20px;}
.mr30{margin-right:30px;}
.mt1{margin-top:1px;}
.mt2{margin-top:2px;}
.mt5{margin-top:5px;}
.mt10{margin-top:10px;}
.mt15{margin-top:15px;}
.mt20{margin-top:20px;}
.mt30{margin-top:30px;}
.mb1{margin-bottom:1px;}
.mb2{margin-bottom:2px;}
.mb5{margin-bottom:5px;}
.mb10{margin-bottom:10px;}
.mb15{margin-bottom:15px;}
.mb20{margin-bottom:20px;}
.mb30{margin-bottom:30px;}
/* margin negative */
.ml-1{margin-left:-1px;}
.mr-1{margin-right:-1px;}
.mt-1{margin-top:-1px;}
.mb-1{margin-bottom:-1px;}
.ml-3{margin-left:-3px;}
.mr-3{margin-right:-3px;}
.mt-3{margin-top:-3px;}
.mb-3{margin-bottom:-3px;}
.ml-20{margin-left:-20px;}
.mr-20{margin-right:-20px;}
.mt-20{margin-top:-20px;}
.mb-20{margin-bottom:-20px;}
/* padding */
.p0{padding:0;}
.p1{padding:1px;}
.pl1{padding-left:1px;}
.pt1{padding-top:1px;}
.pr1{padding-right:1px;}
.pb1{padding-bottom:1px;}
.p2{padding:2px;}
.pl2{padding-left:2px;}
.pt2{padding-top:2px;}
.pr2{padding-right:2px;}
.pb2{padding-bottom:2px;}
.pl5{padding-left:5px;}
.p5{padding:5px;}
.pt5{padding-top:5px;}
.pr5{padding-right:5px;}
.pb5{padding-bottom:5px;}
.p10{padding:10px;}
.pl10{padding-left:10px;}
.pt10{padding-top:10px;}
.pr10{padding-right:10px;}
.pb10{padding-bottom:10px;}
.p15{padding:15px;}
.pl15{padding-left:15px;}
.pt15{padding-top:15px;}
.pr15{padding-right:15px;}
.pb15{padding-bottom:15px;}
.p20{padding:20px;}
.pl20{padding-left:20px;}
.pt20{padding-top:20px;}
.pr20{padding-right:20px;}
.pb20{padding-bottom:20px;}
.p30{padding:30px;}
.pl30{padding-left:30px;}
.pt30{padding-top:30px;}
.pr30{padding-right:30px;}
.pb30{padding-bottom:30px;}
/* border-color name rule: border(b)-position(l/r/t/b/d)-width(null/2)-style(null/sh)-color(first one letter/first two letter) |-> All colors are safe color*/
.bdc{border:1px solid #ccc;}
.blc{border-left:1px solid #ccc;}
.brc{border-right:1px solid #ccc;}
.btc{border-top:1px solid #ccc;}
.bbc{border-bottom:1px solid #ccc;}
.bdd{border:1px solid #ddd;}
.bld{border-left:1px solid #ddd;}
.brd{border-right:1px solid #ddd;}
.btd{border-top:1px solid #ddd;}
.bbd{border-bottom:1px solid #ddd;}
.bde{border:1px solid #eee;}
.ble{border-left:1px solid #eee;}
.bre{border-right:1px solid #eee;}
.bte{border-top:1px solid #eee;}
.bbe{border-bottom:1px solid #eee;}
/* background-color name rule: bg - (key word/Hex color) |-> All colors are safe color */
.bgwh{background-color:#fff;}
.bgfb{background-color:#fbfbfb;}
.bgf5{background-color:#f5f5f5;}
.bgf0{background-color:#f0f0f0;}
.bgeb{background-color:#ebebeb;}
.bge0{background-color:#e0e0e0;}
/* safe color */
.g0{color:#000;}
.g3{color:#333;}
.g6{color:#666;}
.g9{color:#999;}
.gc{color:#ccc;}
.wh{color:white;}
/* font-size */
.f0{font-size:0;}
.f10{font-size:10px;}
.f12{font-size:12px;}
.f13{font-size:13px;}
.f14{font-size:14px;}
.f16{font-size:16px;}
.f18{font-size:18px;}
.f20{font-size:20px;}
.f24{font-size:24px;}
/* font-family */
.fa{font-family:Arial;}
.ft{font-family:Tahoma;}
.fv{font-family:Verdana;}
.fs{font-family:Simsun;}
.fl{font-family:'Lucida Console';}
.fw{font-family:'Microsoft Yahei';}
/* font-style */
.n{font-weight:normal; font-style:normal;}
.b{font-weight:bold;}
.i{font-style:italic;}
/* text-align */
.tc{text-align:center;}
.tr{text-align:right;}
.tl{text-align:left;}
.tj{text-align:justify;}
/* text-decoration */
.tdl{text-decoration:underline;}
.tdn,.tdn:hover,.tdn a:hover,a.tdl:hover{text-decoration:none;}
/* letter-spacing */
.lt-1{letter-spacing:-1px;}
.lt0{letter-spacing:0;}
.lt1{letter-spacing:1px;}
/* white-space */
.nowrap{white-space:nowrap;}
/* word-wrap */
.bk{word-wrap:break-word;}
/* vertical-align */
.vm{vertical-align:middle;}
.vtb{vertical-align:text-bottom;}
.vb{vertical-align:bottom;}
.vt{vertical-align:top;}
.vn{vertical-align:-2px;}
/* float */
.l{float:left;}
.r{float:right;}
/* clear */
.cl{clear:both;}
/* position */
.rel{position:relative;}
.abs{position:absolute;}
/*z-index*/
.zx1{z-index:1;}
.zx2{z-index:2;}
/* cursor */
.poi{cursor:pointer;}
.def{cursor:default;}
/* overflow */
.ovh{overflow:hidden;}
.ova{overflow:auto;}
/* visibility */
.vh{visibility:hidden;}
.vv{visibility:visible;}
/* zoom */
.z{*zoom:1;}
/* ------------------- multiply CSS ------------------ */
/* 块状元素水平居中 */
.auto{margin-left:auto; margin-right:auto;}
/* 清除浮 动*/
.fix{*zoom:1;}
.fix:after{display:table; content:''; clear:both;}
/* 基于display:table-cell的自适应布局 */
.cell{display:table-cell; *display:inline-block; width:2000px; *width:auto;}
/* 双栏自适应cell部分连续英文字符换行 */
.cell_bk{display:table; width:100%; table-layout:fixed; word-wrap:break-word;}
/* 单行文字溢出虚点显 示*/
.ell{text-overflow:ellipsis; white-space:nowrap; overflow:hidden;}
/* css3过渡动画效果 */
.trans{
-webkit-transition:all 0.3s;
transition:all 0.3s;
}
/* 大小不定元素垂直居中 */
.dib_vm{display:inline-block; width:0; height:100%; vertical-align:middle;}
/* 加载中背景图片 - 如果您使用该CSS小库务必修改此图片地址 */
.loading{background:url(http://www.zhangxinxu.com/study/image/loading--.gif) no-repeat center;}
/* 无框文本框文本域 */
.bd_none{border:0; outline:none;}
/* 绝对定位隐藏 */
.abs_out{position:absolute; left:-999em; top:-999em;}
.abs_clip{position:absolute; clip:rect(0 0 0 0);}
/* 按钮禁用 */
.disabled{color:#acacac!important; border-color:#acacac!important; text-shadow:1px 1px #fff!important; outline:0!important; cursor:default!important; pointer-events:none;}
.disabled:hover{text-decoration:none!important;}
/*inline-block与float等宽列表*/
.inline_box{font-size:1em; letter-spacing:-.25em; font-family:Arial;}
.inline_two, .inline_three, .inline_four, .inline_five, .inline_six, .inline_any{display:inline-block; *display:inline; letter-spacing:0; vertical-align:top; *zoom:1;}
.float_two, .float_three, .float_four, .float_five, .float_six{float:left;}
.inline_two, .float_two{width:49.9%;}
.inline_three, .float_three{width:33.3%;}
.inline_four, .float_four{width:24.9%;}
.inline_five, .float_five{width:19.9%;}
.inline_six, .float_six{width:16.6%;}
.inline_fix{display:inline-block; width:100%; height:0; overflow:hidden;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,82 @@
var addedService = [
//{
// name: '数据恢复',
// nameEn: 'aqfhgj',
// desc: '数据恢复',
// price: 1500,
// unit:'/帐套',
// btnValue:'申请',
// imgSrc: '../images/value-added-icon.png',
// imgSrcSmall: '../images/value-added-icon-48.png',
// imgOutStyle:'background-position:0 0;',
// imgOutStyleSmall:'background-position:0 0;',
// buyLink: '',
// detailsLink: '',
// productId: 21,
// info: null //产品信息,包括计算后的价格、到期时间等等
//},
{
name: '套打设计',
nameEn: 'tdsj',
desc: '套打设计',
price: 200,
unit:'/张',
btnValue:'申请',
linkType:'',
imgSrc: '../images/value-added-icon.png',
imgSrcSmall: '../images/value-added-icon-48.png',
imgOutStyle:'background-position:-64px 0;',
imgOutStyleSmall:'background-position:-48px 0;',
buyLink: 'http://www.istheme.com/i/253',
detailsLink: 'http://www.istheme.com/i/253',
productId: 101807,
info: null //产品信息,包括计算后的价格、到期时间等等
},{
name: '产品培训',
nameEn: 'cppx',
desc: '产品培训',
price: 500,
unit:'/次起',
btnValue:'申请',
linkType:'',
imgSrc: '../images/value-added-icon.png',
imgSrcSmall: '../images/value-added-icon-48.png',
imgOutStyle:'background-position:-192px 0;',
imgOutStyleSmall:'background-position:-144px 0;',
buyLink: 'http://www.istheme.com/i/253',
detailsLink: 'http://www.istheme.com/i/253',
productId: 101807,
info: null //产品信息,包括计算后的价格、到期时间等等
},{
name: '专属顾问服务',
nameEn: 'zsgwfw',
desc: '专属顾问服务',
price: 200,
unit:'/月起',
btnValue:'申请',
linkType:'',
imgSrc: '../images/value-added-icon.png',
imgSrcSmall: '../images/value-added-icon-48.png',
imgOutStyle:'background-position:-256px 0;',
buyLink: 'http://www.istheme.com/i/253',
detailsLink: 'http://www.istheme.com/i/253',
productId: 101807,
info: null //产品信息,包括计算后的价格、到期时间等等
}
//,{
// name: '初始化服务',
// nameEn: 'cshfw',
// desc: '初始化服务',
// price: 500,
// unit:'元/账套起',
// btnValue:'免费',
// linkType:'setting-advancedSetting-right',
// imgSrc: '../images/value-added-icon.png',
// imgSrcSmall: '../images/value-added-icon-48.png',
// imgOutStyle:'background-position:-320px 0;',
// buyLink: '',
// detailsLink: '',
// productId: 101807,
// info: null //产品信息,包括计算后的价格、到期时间等等
//}
];

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,335 @@
!
function() {
function f(a, c) {
function u(a) {
if (u[a] !== r) return u[a];
var b;
if ("bug-string-char-index" == a) b = "a" != "a" [0];
else if ("json" == a) b = u("json-stringify") && u("json-parse");
else {
var d, f = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
if ("json-stringify" == a) {
var h = c.stringify,
j = "function" == typeof h && s;
if (j) {
(d = function() {
return 1
}).toJSON = d;
try {
j = "0" === h(0) && "0" === h(new e) && '""' == h(new g) && h(o) === r && h(r) === r && h() === r && "1" === h(d) && "[1]" == h([d]) && "[null]" == h([r]) && "null" == h(null) && "[null,null,null]" == h([r, o, null]) && h({
a: [d, !0, !1, null, "\0\b\n\f\r "]
}) == f && "1" === h(null, d) && "[\n 1,\n 2\n]" == h([1, 2], null, 1) && '"-271821-04-20T00:00:00.000Z"' == h(new i(-864e13)) && '"+275760-09-13T00:00:00.000Z"' == h(new i(864e13)) && '"-000001-01-01T00:00:00.000Z"' == h(new i(-621987552e5)) && '"1969-12-31T23:59:59.999Z"' == h(new i(-1))
} catch (k) {
j = !1
}
}
b = j
}
if ("json-parse" == a) {
var l = c.parse;
if ("function" == typeof l) try {
if (0 === l("0") && !l(!1)) {
d = l(f);
var m = 5 == d.a.length && 1 === d.a[0];
if (m) {
try {
m = !l('" "')
} catch (k) {}
if (m) try {
m = 1 !== l("01")
} catch (k) {}
if (m) try {
m = 1 !== l("1.")
} catch (k) {}
}
}
} catch (k) {
m = !1
}
b = m
}
}
return u[a] = !! b
}
a || (a = d.Object()), c || (c = d.Object());
var p, q, r, e = a.Number || d.Number,
g = a.String || d.String,
h = a.Object || d.Object,
i = a.Date || d.Date,
j = a.SyntaxError || d.SyntaxError,
k = a.TypeError || d.TypeError,
l = a.Math || d.Math,
n = (a.JSON || d.JSON, h.prototype),
o = n.toString,
s = new i(-0xc782b5b800cec);
try {
s = -109252 == s.getUTCFullYear() && 0 === s.getUTCMonth() && 1 === s.getUTCDate() && 10 == s.getUTCHours() && 37 == s.getUTCMinutes() && 6 == s.getUTCSeconds() && 708 == s.getUTCMilliseconds()
} catch (t) {}
if (!u("json")) {
var v = "[object Function]",
w = "[object Date]",
x = "[object Number]",
y = "[object String]",
z = "[object Array]",
A = "[object Boolean]",
B = u("bug-string-char-index");
if (!s) var C = l.floor,
D = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],
E = function(a, b) {
return D[b] + 365 * (a - 1970) + C((a - 1969 + (b = +(b > 1))) / 4) - C((a - 1901 + b) / 100) + C((a - 1601 + b) / 400)
};
if ((p = n.hasOwnProperty) || (p = function(a) {
var c, b = {};
return (b.__proto__ = null, b.__proto__ = {
toString: 1
}, b).toString != o ? p = function(a) {
var b = this.__proto__,
c = (this.__proto__ = null, a in this);
return this.__proto__ = b, c
} : (c = b.constructor, p = function(a) {
var b = (this.constructor || c).prototype;
return a in this && !(a in b && this[a] === b[a])
}), b = null, p.call(this, a)
}), q = function(a, c) {
var e, f, g, d = 0;
(e = function() {
this.valueOf = 0
}).prototype.valueOf = 0, f = new e;
for (g in f) p.call(f, g) && d++;
return e = f = null, d ? q = 2 == d ?
function(a, b) {
var e, c = {},
d = o.call(a) == v;
for (e in a) d && "prototype" == e || p.call(c, e) || !(c[e] = 1) || !p.call(a, e) || b(e)
} : function(a, b) {
var d, e, c = o.call(a) == v;
for (d in a) c && "prototype" == d || !p.call(a, d) || (e = "constructor" === d) || b(d);
(e || p.call(a, d = "constructor")) && b(d)
} : (f = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], q = function(a, c) {
var e, g, d = o.call(a) == v,
h = !d && "function" != typeof a.constructor && b[typeof a.hasOwnProperty] && a.hasOwnProperty || p;
for (e in a) d && "prototype" == e || !h.call(a, e) || c(e);
for (g = f.length; e = f[--g]; h.call(a, e) && c(e));
}), q(a, c)
}, !u("json-stringify")) {
var F = {
92: "\\\\",
34: '\\"',
8: "\\b",
12: "\\f",
10: "\\n",
13: "\\r",
9: "\\t"
},
G = "000000",
H = function(a, b) {
return (G + (b || 0)).slice(-a)
},
I = "\\u00",
J = function(a) {
for (var b = '"', c = 0, d = a.length, e = !B || d > 10, f = e && (B ? a.split("") : a); d > c; c++) {
var g = a.charCodeAt(c);
switch (g) {
case 8:
case 9:
case 10:
case 12:
case 13:
case 34:
case 92:
b += F[g];
break;
default:
if (32 > g) {
b += I + H(2, g.toString(16));
break
}
b += e ? f[c] : a.charAt(c)
}
}
return b + '"'
},
K = function(a, b, c, d, e, f, g) {
var h, i, j, l, m, n, s, t, u, v, B, D, F, G, I, L;
try {
h = b[a]
} catch (M) {}
if ("object" == typeof h && h) if (i = o.call(h), i != w || p.call(h, "toJSON"))"function" == typeof h.toJSON && (i != x && i != y && i != z || p.call(h, "toJSON")) && (h = h.toJSON(a));
else if (h > -1 / 0 && 1 / 0 > h) {
if (E) {
for (m = C(h / 864e5), j = C(m / 365.2425) + 1970 - 1; E(j + 1, 0) <= m; j++);
for (l = C((m - E(j, 0)) / 30.42); E(j, l + 1) <= m; l++);
m = 1 + m - E(j, l), n = (h % 864e5 + 864e5) % 864e5, s = C(n / 36e5) % 24, t = C(n / 6e4) % 60, u = C(n / 1e3) % 60, v = n % 1e3
} else j = h.getUTCFullYear(), l = h.getUTCMonth(), m = h.getUTCDate(), s = h.getUTCHours(), t = h.getUTCMinutes(), u = h.getUTCSeconds(), v = h.getUTCMilliseconds();
h = (0 >= j || j >= 1e4 ? (0 > j ? "-" : "+") + H(6, 0 > j ? -j : j) : H(4, j)) + "-" + H(2, l + 1) + "-" + H(2, m) + "T" + H(2, s) + ":" + H(2, t) + ":" + H(2, u) + "." + H(3, v) + "Z"
} else h = null;
if (c && (h = c.call(b, a, h)), null === h) return "null";
if (i = o.call(h), i == A) return "" + h;
if (i == x) return h > -1 / 0 && 1 / 0 > h ? "" + h : "null";
if (i == y) return J("" + h);
if ("object" == typeof h) {
for (G = g.length; G--;) if (g[G] === h) throw k();
if (g.push(h), B = [], I = f, f += e, i == z) {
for (F = 0, G = h.length; G > F; F++) D = K(F, h, c, d, e, f, g), B.push(D === r ? "null" : D);
L = B.length ? e ? "[\n" + f + B.join(",\n" + f) + "\n" + I + "]" : "[" + B.join(",") + "]" : "[]"
} else q(d || h, function(a) {
var b = K(a, h, c, d, e, f, g);
b !== r && B.push(J(a) + ":" + (e ? " " : "") + b)
}), L = B.length ? e ? "{\n" + f + B.join(",\n" + f) + "\n" + I + "}" : "{" + B.join(",") + "}" : "{}";
return g.pop(), L
}
};
c.stringify = function(a, c, d) {
var e, f, g, h;
if (b[typeof c] && c) if ((h = o.call(c)) == v) f = c;
else if (h == z) {
g = {};
for (var k, i = 0, j = c.length; j > i; k = c[i++], h = o.call(k), (h == y || h == x) && (g[k] = 1));
}
if (d) if ((h = o.call(d)) == x) {
if ((d -= d % 1) > 0) for (e = "", d > 10 && (d = 10); e.length < d; e += " ");
} else h == y && (e = d.length <= 10 ? d : d.slice(0, 10));
return K("", (k = {}, k[""] = a, k), f, g, e, "", [])
}
}
if (!u("json-parse")) {
var N, O, L = g.fromCharCode,
M = {
92: "\\",
34: '"',
47: "/",
98: "\b",
116: " ",
110: "\n",
102: "\f",
114: "\r"
},
P = function() {
throw N = O = null, j()
},
Q = function() {
for (var c, d, e, f, g, a = O, b = a.length; b > N;) switch (g = a.charCodeAt(N)) {
case 9:
case 10:
case 13:
case 32:
N++;
break;
case 123:
case 125:
case 91:
case 93:
case 58:
case 44:
return c = B ? a.charAt(N) : a[N], N++, c;
case 34:
for (c = "@", N++; b > N;) if (g = a.charCodeAt(N), 32 > g) P();
else if (92 == g) switch (g = a.charCodeAt(++N)) {
case 92:
case 34:
case 47:
case 98:
case 116:
case 110:
case 102:
case 114:
c += M[g], N++;
break;
case 117:
for (d = ++N, e = N + 4; e > N; N++) g = a.charCodeAt(N), g >= 48 && 57 >= g || g >= 97 && 102 >= g || g >= 65 && 70 >= g || P();
c += L("0x" + a.slice(d, N));
break;
default:
P()
} else {
if (34 == g) break;
for (g = a.charCodeAt(N), d = N; g >= 32 && 92 != g && 34 != g;) g = a.charCodeAt(++N);
c += a.slice(d, N)
}
if (34 == a.charCodeAt(N)) return N++, c;
P();
default:
if (d = N, 45 == g && (f = !0, g = a.charCodeAt(++N)), g >= 48 && 57 >= g) {
for (48 == g && (g = a.charCodeAt(N + 1), g >= 48 && 57 >= g) && P(), f = !1; b > N && (g = a.charCodeAt(N), g >= 48 && 57 >= g); N++);
if (46 == a.charCodeAt(N)) {
for (e = ++N; b > e && (g = a.charCodeAt(e), g >= 48 && 57 >= g); e++);
e == N && P(), N = e
}
if (g = a.charCodeAt(N), 101 == g || 69 == g) {
for (g = a.charCodeAt(++N), (43 == g || 45 == g) && N++, e = N; b > e && (g = a.charCodeAt(e), g >= 48 && 57 >= g); e++);
e == N && P(), N = e
}
var h = a.slice(d, N),
i = +h;
return h !== i + "" ? "@" + h : i
}
if (f && P(), "true" == a.slice(N, N + 4)) return N += 4, !0;
if ("false" == a.slice(N, N + 5)) return N += 5, !1;
if ("null" == a.slice(N, N + 4)) return N += 4, null;
P()
}
return "$"
},
R = function(a) {
var b, c;
if ("$" == a && P(), "string" == typeof a) {
if ("@" == (B ? a.charAt(0) : a[0])) return a.slice(1);
if ("[" == a) {
for (b = []; a = Q(), "]" != a; c || (c = !0)) c && ("," == a ? (a = Q(), "]" == a && P()) : P()), "," == a && P(), b.push(R(a));
return b
}
if ("{" == a) {
for (b = {}; a = Q(), "}" != a; c || (c = !0)) c && ("," == a ? (a = Q(), "}" == a && P()) : P()), ("," == a || "string" != typeof a || "@" != (B ? a.charAt(0) : a[0]) || ":" != Q()) && P(), b[a.slice(1)] = R(Q());
return b
}
P()
}
return a
},
S = function(a, b, c) {
var d = T(a, b, c);
d === r ? delete a[b] : a[b] = d
},
T = function(a, b, c) {
var e, d = a[b];
if ("object" == typeof d && d) if (o.call(d) == z) for (e = d.length; e--;) S(d, e, c);
else q(d, function(a) {
S(d, a, c)
});
return c.call(a, b, d)
};
c.parse = function(a, b) {
var c, d;
return N = 0, O = "" + a, c = R(Q()), "$" != Q() && P(), N = O = null, b && o.call(b) == v ? T((d = {}, d[""] = c, d), "", b) : c
}
}
}
return c.runInContext = f, c
}
var a = "function" == typeof define && define.amd,
b = {
"function": !0,
object: !0
},
c = b[typeof exports] && exports && !exports.nodeType && exports,
d = b[typeof window] && window || this,
e = c && b[typeof module] && module && !module.nodeType && "object" == typeof global && global;
if (!e || e.global !== e && e.window !== e && e.self !== e || (d = e), c && !a) f(d, c);
else {
var g = d.JSON,
h = d.JSON3,
i = !1,
j = f(d, d.JSON3 = {
noConflict: function() {
return i || (i = !0, d.JSON = g, d.JSON3 = h, g = h = null), j
}
});
d.JSON = {
parse: j.parse,
stringify: j.stringify
}
}
a && define(function() {
return j
})
}.call(this);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,225 @@
/*
* jQuery Iframe Transport Plugin 1.8.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global define, window, document */
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define(['jquery'], factory);
} else {
// Browser globals:
factory(window.jQuery);
}
}(function ($) {
'use strict';
// Helper variable to create unique names for the transport iframes:
var counter = 0;
// The iframe transport accepts four additional options:
// options.fileInput: a jQuery collection of file input fields
// options.paramName: the parameter name for the file form data,
// overrides the name property of the file input field(s),
// can be a string or an array of strings.
// options.formData: an array of objects with name and value properties,
// equivalent to the return data of .serializeArray(), e.g.:
// [{name: 'a', value: 1}, {name: 'b', value: 2}]
// options.initialIframeSrc: the URL of the initial iframe src,
// by default set to "javascript:false;"
$.ajaxTransport('iframe', function (options) {
if (options.async) {
// javascript:false as initial iframe src
// prevents warning popups on HTTPS in IE6:
/*jshint scripturl: true */
var initialIframeSrc = options.initialIframeSrc || 'javascript:false;',
/*jshint scripturl: false */
form,
iframe,
addParamChar;
return {
send: function (_, completeCallback) {
form = $('<form style="display:none;"></form>');
form.attr('accept-charset', options.formAcceptCharset);
addParamChar = /\?/.test(options.url) ? '&' : '?';
// XDomainRequest only supports GET and POST:
if (options.type === 'DELETE') {
options.url = options.url + addParamChar + '_method=DELETE';
options.type = 'POST';
} else if (options.type === 'PUT') {
options.url = options.url + addParamChar + '_method=PUT';
options.type = 'POST';
} else if (options.type === 'PATCH') {
options.url = options.url + addParamChar + '_method=PATCH';
options.type = 'POST';
}
// IE versions below IE8 cannot set the name property of
// elements that have already been added to the DOM,
// so we set the name along with the iframe HTML markup:
counter += 1;
iframe = $(
'<iframe src="' + initialIframeSrc +
'" name="iframe-transport-' + counter + '"></iframe>'
).bind('load', function () {
var fileInputClones,
paramNames = $.isArray(options.paramName) ?
options.paramName : [options.paramName];
iframe
.unbind('load')
.bind('load', function () {
var response;
// Wrap in a try/catch block to catch exceptions thrown
// when trying to access cross-domain iframe contents:
try {
response = iframe.contents();
// Google Chrome and Firefox do not throw an
// exception when calling iframe.contents() on
// cross-domain requests, so we unify the response:
if (!response.length || !response[0].firstChild) {
throw new Error();
}
} catch (e) {
try {
response = $(iframe[0].document);
// Google Chrome and Firefox do not throw an
// exception when calling iframe.contents() on
// cross-domain requests, so we unify the response:
if (!response.length || !response[0].firstChild) {
throw new Error();
}
}catch(x){
throw new Error(x);
response = undefined;
}
}
// The complete callback returns the
// iframe content document as response object:
completeCallback(
200,
'success',
{'iframe': response}
);
// Fix for IE endless progress bar activity bug
// (happens on form submits to iframe targets):
$('<iframe src="' + initialIframeSrc + '"></iframe>')
.appendTo(form);
window.setTimeout(function () {
// Removing the form in a setTimeout call
// allows Chrome's developer tools to display
// the response result
form.remove();
}, 0);
});
form
.prop('target', iframe.prop('name'))
.prop('action', options.url)
.prop('method', options.type);
if (options.formData) {
$.each(options.formData, function (index, field) {
$('<input type="hidden"/>')
.prop('name', field.name)
.val(field.value)
.appendTo(form);
});
}
if (options.fileInput && options.fileInput.length &&
options.type === 'POST') {
fileInputClones = options.fileInput.clone();
// Insert a clone for each file input field:
options.fileInput.after(function (index) {
return fileInputClones[index];
});
if (options.paramName) {
options.fileInput.each(function (index) {
$(this).prop(
'name',
paramNames[index] || options.paramName
);
});
}
// Appending the file input fields to the hidden form
// removes them from their original location:
form
.append(options.fileInput)
.prop('enctype', 'multipart/form-data')
// enctype must be set as encoding for IE:
.prop('encoding', 'multipart/form-data');
// Remove the HTML5 form attribute from the input(s):
options.fileInput.removeAttr('form');
}
form.submit();
// Insert the file input fields at their original location
// by replacing the clones with the originals:
if (fileInputClones && fileInputClones.length) {
options.fileInput.each(function (index, input) {
var clone = $(fileInputClones[index]);
// Restore the original name and form properties:
$(input)
.prop('name', clone.prop('name'))
.attr('form', clone.attr('form'));
clone.replaceWith(input);
});
}
});
form.append(iframe).appendTo(document.body);
},
abort: function () {
if (iframe) {
// javascript:false as iframe src aborts the request
// and prevents warning popups on HTTPS in IE6.
// concat is used to avoid the "Script URL" JSLint error:
iframe
.unbind('load')
.prop('src', initialIframeSrc);
}
if (form) {
form.remove();
}
}
};
}
});
// The iframe transport returns the iframe content document as response.
// The following adds converters from iframe to text, json, html, xml
// and script.
// Please note that the Content-Type for JSON responses has to be text/plain
// or text/html, if the browser doesn't include application/json in the
// Accept header, else IE will show a download dialog.
// The Content-Type for XML responses on the other hand has to be always
// application/xml or text/xml, so IE properly parses the XML response.
// See also
// https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#content-type-negotiation
$.ajaxSetup({
converters: {
'iframe text': function (iframe) {
return iframe && $(iframe[0].body).text();
},
'iframe json': function (iframe) {
return iframe && $.parseJSON($(iframe[0].body).text());
},
'iframe html': function (iframe) {
return iframe && $(iframe[0].body).html();
},
'iframe xml': function (iframe) {
var xmlDoc = iframe && iframe[0];
return xmlDoc && $.isXMLDoc(xmlDoc) ? xmlDoc :
$.parseXML((xmlDoc.XMLDocument && xmlDoc.XMLDocument.xml) ||
$(xmlDoc.body).html());
},
'iframe script': function (iframe) {
return iframe && $.globalEval($(iframe[0].body).text());
}
}
});
}));

View File

@@ -0,0 +1,530 @@
/*!
* jQuery UI Widget 1.10.4+amd
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/jQuery.widget/
*/
(function (factory) {
if (typeof define === "function" && define.amd) {
// Register as an anonymous AMD module:
define(["jquery"], factory);
} else {
// Browser globals:
factory(jQuery);
}
}(function( $, undefined ) {
var uuid = 0,
slice = Array.prototype.slice,
_cleanData = $.cleanData;
$.cleanData = function( elems ) {
for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
try {
$( elem ).triggerHandler( "remove" );
// http://bugs.jquery.com/ticket/8235
} catch( e ) {}
}
_cleanData( elems );
};
$.widget = function( name, base, prototype ) {
var fullName, existingConstructor, constructor, basePrototype,
// proxiedPrototype allows the provided prototype to remain unmodified
// so that it can be used as a mixin for multiple widgets (#8876)
proxiedPrototype = {},
namespace = name.split( "." )[ 0 ];
name = name.split( "." )[ 1 ];
fullName = namespace + "-" + name;
if ( !prototype ) {
prototype = base;
base = $.Widget;
}
// create selector for plugin
$.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
return !!$.data( elem, fullName );
};
$[ namespace ] = $[ namespace ] || {};
existingConstructor = $[ namespace ][ name ];
constructor = $[ namespace ][ name ] = function( options, element ) {
// allow instantiation without "new" keyword
if ( !this._createWidget ) {
return new constructor( options, element );
}
// allow instantiation without initializing for simple inheritance
// must use "new" keyword (the code above always passes args)
if ( arguments.length ) {
this._createWidget( options, element );
}
};
// extend with the existing constructor to carry over any static properties
$.extend( constructor, existingConstructor, {
version: prototype.version,
// copy the object used to create the prototype in case we need to
// redefine the widget later
_proto: $.extend( {}, prototype ),
// track widgets that inherit from this widget in case this widget is
// redefined after a widget inherits from it
_childConstructors: []
});
basePrototype = new base();
// we need to make the options hash a property directly on the new instance
// otherwise we'll modify the options hash on the prototype that we're
// inheriting from
basePrototype.options = $.widget.extend( {}, basePrototype.options );
$.each( prototype, function( prop, value ) {
if ( !$.isFunction( value ) ) {
proxiedPrototype[ prop ] = value;
return;
}
proxiedPrototype[ prop ] = (function() {
var _super = function() {
return base.prototype[ prop ].apply( this, arguments );
},
_superApply = function( args ) {
return base.prototype[ prop ].apply( this, args );
};
return function() {
var __super = this._super,
__superApply = this._superApply,
returnValue;
this._super = _super;
this._superApply = _superApply;
returnValue = value.apply( this, arguments );
this._super = __super;
this._superApply = __superApply;
return returnValue;
};
})();
});
constructor.prototype = $.widget.extend( basePrototype, {
// TODO: remove support for widgetEventPrefix
// always use the name + a colon as the prefix, e.g., draggable:start
// don't prefix for widgets that aren't DOM-based
widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
}, proxiedPrototype, {
constructor: constructor,
namespace: namespace,
widgetName: name,
widgetFullName: fullName
});
// If this widget is being redefined then we need to find all widgets that
// are inheriting from it and redefine all of them so that they inherit from
// the new version of this widget. We're essentially trying to replace one
// level in the prototype chain.
if ( existingConstructor ) {
$.each( existingConstructor._childConstructors, function( i, child ) {
var childPrototype = child.prototype;
// redefine the child widget using the same prototype that was
// originally used, but inherit from the new version of the base
$.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
});
// remove the list of existing child constructors from the old constructor
// so the old child constructors can be garbage collected
delete existingConstructor._childConstructors;
} else {
base._childConstructors.push( constructor );
}
$.widget.bridge( name, constructor );
};
$.widget.extend = function( target ) {
var input = slice.call( arguments, 1 ),
inputIndex = 0,
inputLength = input.length,
key,
value;
for ( ; inputIndex < inputLength; inputIndex++ ) {
for ( key in input[ inputIndex ] ) {
value = input[ inputIndex ][ key ];
if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
// Clone objects
if ( $.isPlainObject( value ) ) {
target[ key ] = $.isPlainObject( target[ key ] ) ?
$.widget.extend( {}, target[ key ], value ) :
// Don't extend strings, arrays, etc. with objects
$.widget.extend( {}, value );
// Copy everything else by reference
} else {
target[ key ] = value;
}
}
}
}
return target;
};
$.widget.bridge = function( name, object ) {
var fullName = object.prototype.widgetFullName || name;
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = slice.call( arguments, 1 ),
returnValue = this;
// allow multiple hashes to be passed on init
options = !isMethodCall && args.length ?
$.widget.extend.apply( null, [ options ].concat(args) ) :
options;
if ( isMethodCall ) {
this.each(function() {
var methodValue,
instance = $.data( this, fullName );
if ( !instance ) {
return $.error( "cannot call methods on " + name + " prior to initialization; " +
"attempted to call method '" + options + "'" );
}
if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
return $.error( "no such method '" + options + "' for " + name + " widget instance" );
}
methodValue = instance[ options ].apply( instance, args );
if ( methodValue !== instance && methodValue !== undefined ) {
returnValue = methodValue && methodValue.jquery ?
returnValue.pushStack( methodValue.get() ) :
methodValue;
return false;
}
});
} else {
this.each(function() {
var instance = $.data( this, fullName );
if ( instance ) {
instance.option( options || {} )._init();
} else {
$.data( this, fullName, new object( options, this ) );
}
});
}
return returnValue;
};
};
$.Widget = function( /* options, element */ ) {};
$.Widget._childConstructors = [];
$.Widget.prototype = {
widgetName: "widget",
widgetEventPrefix: "",
defaultElement: "<div>",
options: {
disabled: false,
// callbacks
create: null
},
_createWidget: function( options, element ) {
element = $( element || this.defaultElement || this )[ 0 ];
this.element = $( element );
this.uuid = uuid++;
this.eventNamespace = "." + this.widgetName + this.uuid;
this.options = $.widget.extend( {},
this.options,
this._getCreateOptions(),
options );
this.bindings = $();
this.hoverable = $();
this.focusable = $();
if ( element !== this ) {
$.data( element, this.widgetFullName, this );
this._on( true, this.element, {
remove: function( event ) {
if ( event.target === element ) {
this.destroy();
}
}
});
this.document = $( element.style ?
// element within the document
element.ownerDocument :
// element is window or document
element.document || element );
this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
}
this._create();
this._trigger( "create", null, this._getCreateEventData() );
this._init();
},
_getCreateOptions: $.noop,
_getCreateEventData: $.noop,
_create: $.noop,
_init: $.noop,
destroy: function() {
this._destroy();
// we can probably remove the unbind calls in 2.0
// all event bindings should go through this._on()
this.element
.unbind( this.eventNamespace )
// 1.9 BC for #7810
// TODO remove dual storage
.removeData( this.widgetName )
.removeData( this.widgetFullName )
// support: jquery <1.6.3
// http://bugs.jquery.com/ticket/9413
.removeData( $.camelCase( this.widgetFullName ) );
this.widget()
.unbind( this.eventNamespace )
.removeAttr( "aria-disabled" )
.removeClass(
this.widgetFullName + "-disabled " +
"ui-state-disabled" );
// clean up events and states
this.bindings.unbind( this.eventNamespace );
this.hoverable.removeClass( "ui-state-hover" );
this.focusable.removeClass( "ui-state-focus" );
},
_destroy: $.noop,
widget: function() {
return this.element;
},
option: function( key, value ) {
var options = key,
parts,
curOption,
i;
if ( arguments.length === 0 ) {
// don't return a reference to the internal hash
return $.widget.extend( {}, this.options );
}
if ( typeof key === "string" ) {
// handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
options = {};
parts = key.split( "." );
key = parts.shift();
if ( parts.length ) {
curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
for ( i = 0; i < parts.length - 1; i++ ) {
curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
curOption = curOption[ parts[ i ] ];
}
key = parts.pop();
if ( arguments.length === 1 ) {
return curOption[ key ] === undefined ? null : curOption[ key ];
}
curOption[ key ] = value;
} else {
if ( arguments.length === 1 ) {
return this.options[ key ] === undefined ? null : this.options[ key ];
}
options[ key ] = value;
}
}
this._setOptions( options );
return this;
},
_setOptions: function( options ) {
var key;
for ( key in options ) {
this._setOption( key, options[ key ] );
}
return this;
},
_setOption: function( key, value ) {
this.options[ key ] = value;
if ( key === "disabled" ) {
this.widget()
.toggleClass( this.widgetFullName + "-disabled ui-state-disabled", !!value )
.attr( "aria-disabled", value );
this.hoverable.removeClass( "ui-state-hover" );
this.focusable.removeClass( "ui-state-focus" );
}
return this;
},
enable: function() {
return this._setOption( "disabled", false );
},
disable: function() {
return this._setOption( "disabled", true );
},
_on: function( suppressDisabledCheck, element, handlers ) {
var delegateElement,
instance = this;
// no suppressDisabledCheck flag, shuffle arguments
if ( typeof suppressDisabledCheck !== "boolean" ) {
handlers = element;
element = suppressDisabledCheck;
suppressDisabledCheck = false;
}
// no element argument, shuffle and use this.element
if ( !handlers ) {
handlers = element;
element = this.element;
delegateElement = this.widget();
} else {
// accept selectors, DOM elements
element = delegateElement = $( element );
this.bindings = this.bindings.add( element );
}
$.each( handlers, function( event, handler ) {
function handlerProxy() {
// allow widgets to customize the disabled handling
// - disabled as an array instead of boolean
// - disabled class as method for disabling individual parts
if ( !suppressDisabledCheck &&
( instance.options.disabled === true ||
$( this ).hasClass( "ui-state-disabled" ) ) ) {
return;
}
return ( typeof handler === "string" ? instance[ handler ] : handler )
.apply( instance, arguments );
}
// copy the guid so direct unbinding works
if ( typeof handler !== "string" ) {
handlerProxy.guid = handler.guid =
handler.guid || handlerProxy.guid || $.guid++;
}
var match = event.match( /^(\w+)\s*(.*)$/ ),
eventName = match[1] + instance.eventNamespace,
selector = match[2];
if ( selector ) {
delegateElement.delegate( selector, eventName, handlerProxy );
} else {
element.bind( eventName, handlerProxy );
}
});
},
_off: function( element, eventName ) {
eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) + this.eventNamespace;
element.unbind( eventName ).undelegate( eventName );
},
_delay: function( handler, delay ) {
function handlerProxy() {
return ( typeof handler === "string" ? instance[ handler ] : handler )
.apply( instance, arguments );
}
var instance = this;
return setTimeout( handlerProxy, delay || 0 );
},
_hoverable: function( element ) {
this.hoverable = this.hoverable.add( element );
this._on( element, {
mouseenter: function( event ) {
$( event.currentTarget ).addClass( "ui-state-hover" );
},
mouseleave: function( event ) {
$( event.currentTarget ).removeClass( "ui-state-hover" );
}
});
},
_focusable: function( element ) {
this.focusable = this.focusable.add( element );
this._on( element, {
focusin: function( event ) {
$( event.currentTarget ).addClass( "ui-state-focus" );
},
focusout: function( event ) {
$( event.currentTarget ).removeClass( "ui-state-focus" );
}
});
},
_trigger: function( type, event, data ) {
var prop, orig,
callback = this.options[ type ];
data = data || {};
event = $.Event( event );
event.type = ( type === this.widgetEventPrefix ?
type :
this.widgetEventPrefix + type ).toLowerCase();
// the original event may come from any element
// so we need to reset the target on the new event
event.target = this.element[ 0 ];
// copy original event properties over to the new event
orig = event.originalEvent;
if ( orig ) {
for ( prop in orig ) {
if ( !( prop in event ) ) {
event[ prop ] = orig[ prop ];
}
}
}
this.element.trigger( event, data );
return !( $.isFunction( callback ) &&
callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
event.isDefaultPrevented() );
}
};
$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
$.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
if ( typeof options === "string" ) {
options = { effect: options };
}
var hasOptions,
effectName = !options ?
method :
options === true || typeof options === "number" ?
defaultEffect :
options.effect || defaultEffect;
options = options || {};
if ( typeof options === "number" ) {
options = { duration: options };
}
hasOptions = !$.isEmptyObject( options );
options.complete = callback;
if ( options.delay ) {
element.delay( options.delay );
}
if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
element[ method ]( options );
} else if ( effectName !== method && element[ effectName ] ) {
element[ effectName ]( options.duration, options.easing, callback );
} else {
element.queue(function( next ) {
$( this )[ method ]();
if ( callback ) {
callback.call( element[ 0 ] );
}
next();
});
}
};
});
}));

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,512 @@
(function($){
$.fn.numberField = function(opts){
return $(this).each(function(){
if(this.tagName.toLowerCase() != 'input'){return ;}
if( typeof(opts) == 'string' ){
var instance = $(this).data('_numberField');
if( !instance ){return ;}
var args = Array.prototype.slice.call( arguments, 1 );
if( typeof(instance[opts]) === 'function' ){
instance[opts].apply(instance, args);
}
}
else {
var instance = $(this).data('_numberField');
if( instance ){return ;}
instance = new $.NumberField($(this),opts);
$(this).data('_numberField', instance);
}
});
}
$.NumberField = function(obj, opts){
this.input = obj;
this.opts = $.extend(true, {}, $.NumberField.defaults, opts);
this._init();
}
$.fn.getNumberField = function(){
return $.NumberField.getNumberField(this);
}
$.NumberField.getNumberField = function(obj){
obj = $(obj)
if(obj.length == 0) {
return ;
} else if (obj.length == 1){
return obj.data('_numberField');
} else if ( obj.length > 1) {
var array = [];
obj.each(function(idx){
array.push(this.data('_numberField'));
})
return array;
}
}
$.NumberField.prototype = {
constructor: $.NumberField,
_init: function(){
var opts = this.opts, min = parseFloat(opts.min), max = parseFloat(opts.max),
step = parseFloat(opts.step), precision = parseInt(opts.precision);
this.min = !isNaN(min) ? min : Number.NEGATIVE_INFINITY;
this.max = !isNaN(max) ? max : Number.MAX_VALUE;
this.step = !isNaN(step) ? step : 1;
this.precision = isNaN(precision) || !opts.decimal || precision < 0 ? 0 : precision;
this.allowedReg = this._getAllowedReg();
this.input.css('ime-mode', 'disabled');
this._initVal();
this._initDisabled();
this._bindEvent();
},
_getAllowedReg: function(){
var opts = this.opts, allowed = '0123456789', reg;
if(opts.decimal){
allowed += '.';
}
if(this.min < 0){
allowed += '-';
}
allowed = allowed.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
reg = new RegExp('[' + allowed + ']');
return reg;
},
_initVal: function(){
var val = this._getProcessedVal(this.opts.value);
if(val === false){
val = this._getProcessedVal(this.input.val());
if(val === false){
val = '';
}
}
this._val = this.originVal = val;
this.input.val(val);
},
_initDisabled: function(){
var opts = this.opts;
this._disabled = opts.disabled === true ? true : opts.disabled === false ? false : !!this.input.attr('disabled');
this.originDisabled = this._disabled;
this._handleDisabled(this._disabled);
},
_bindEvent: function(){
var self = this, opts = self.opts;
var KEYS = {
'up': 38,
'down': 40
}
//var mouseWheel = $.browser.mozilla ? 'DOMMouseScroll' : 'mousewheel';
var mouseWheel = 'mousewheel';
this.input.on('keydown', function(e){
var which = e.which;
if( which == KEYS.up || which == KEYS.down ){
if( !opts.keyEnable ){ return ;}
var operator = which == KEYS.up ? 'plus' : 'minus';
self._handleAdjusting(operator);
e.preventDefault();
}
})
.on('keypress', function(e){
var charCode = typeof e.charCode != 'undefined' ? e.charCode : e.keyCode;
var keyChar = $.trim(String.fromCharCode(charCode));
if(charCode != 0 && !self.allowedReg.test(keyChar)){
e.preventDefault();
}
})
.on('keyup', function(e){
self._clearAutoRepeat();
})
.on('focus', function(e){
self.focus = true;
//self.wrap.addClass(opts.activeCls);
})
.on('blur', function(e){
self.focus = false;
//self.wrap.removeClass(opts.activeCls);
var val = $.trim(self.input.val());
//alert('blur')
//self._clearAutoRepeat();
if(val === self._val){return ;}
if(!self.setValue(val)){
self.input.val(self._val);
}
})
.on(mouseWheel,function(e){
e.preventDefault();
if (!self.focus || !opts.wheelEnable) {return ;}
e = e.originalEvent;
var delta = e.wheelDelta ? (e.wheelDelta / 120) : (- e.detail / 3);
var operator = delta == 1 ? 'plus' : 'minus';
var val = self.input.val();
if(val !== self._val && !self.setValue(val)){
self.input.val(this._val);
}
self._adjustVal(operator);
});
},
/**
*对原始值进行处理
*@return {false || string || number} 原始值为空返回''为NaN返回false为number返回处理好的数字
*/
_getProcessedVal: function(val){
if(typeof val == 'string' && $.trim(val) === '') {return '';}
val = parseFloat(val);
if(isNaN(val)){return false;}
val = val > this.max ? this.max : val < this.min ? this.min : val;
val = val.toFixed(this.precision);
if (!this.opts.forceDecimal) {
val = parseFloat(val);
}
return val;
},
enable: function(){
this._handleDisabled(false);
},
disable: function(){
this._handleDisabled(true);
},
_handleDisabled: function(disabled){
var opts = this.opts;
disabled === true ? this.input.addClass(opts.inputDisabledCls) : this.input.removeClass(opts.inputDisabledCls);
this._disabled = disabled;
this.input.attr('disabled', disabled);
},
/**
*有微调发生时,对微调进行处理
*/
_handleAdjusting: function(operator){
var val = this.input.val();
if(val !== this._val && !this.setValue(val)){
this.input.val(this._val);
}
//已经到达最大值,最小值时
if( (this._val === this.max && operator == 'plus') || (this._val === this.min && operator == 'minus') ){
return ;
}
if(this.opts.autoRepeat){
this._clearAutoRepeat();
this._setAutoRepeat(operator);
}
this._adjustVal(operator);
},
/**
*微调值
*/
_adjustVal: function(operator){
//已经到达最大值,最小值时
if( (this._val === this.max && operator == 'plus') || (this._val === this.min && operator == 'minus') ){
this._clearAutoRepeat();
return ;
}
var baseVal = this._val !== '' ? this._val : this.min < 0 && this.min > Number.NEGATIVE_INFINITY ? this.min : 0;
var val = operator == 'plus' ? baseVal + this.step : baseVal - this.step;
this.setValue(val);
},
_setAutoRepeat: function(operator){
var opts = this.opts, self = this;
self.autoTimer = window.setTimeout(function(){
self.autoRepeater = window.setInterval(function(){
self._adjustVal(operator);
}, opts.interval);
},opts.delay);
},
_clearAutoRepeat: function(){
if(this.autoTimer){
window.clearTimeout(this.autoTimer);
}
if(this.autoRepeater){
window.clearTimeout(this.autoRepeater);
}
},
setValue: function(val){
var opts = this.opts;
if(this._disabled){return ;}
val = this._getProcessedVal(val);
if(val === false){return ;}
this.input.val(val);
this._val = val;
return true;
}
}
$.NumberField.defaults = {
value: undefined,
max: undefined,
min: undefined,
step: 1,
decimal: false,
precision: 2,
disabled: undefined,
keyEnable: false,
wheelEnable: false,
autoRepeat: true,
delay: 400,
interval: 80,
inputCls: 'ui-input',
inputDisabledCls: 'ui-input-disabled'
}
})(jQuery);
/**
*Spinbox插件 扩展自 NumberField
*带微调按钮的数字输入框
*/
(function($){
$.fn.spinbox = function(opts){
return $(this).each(function(){
if( typeof(opts) == 'string' ){
var instance = $(this).data('_spinbox');
if( !instance ){return ;}
var args = Array.prototype.slice.call( arguments, 1 );
if( typeof(instance[opts]) === 'function' ){
instance[opts].apply(instance, args);
}
}
else {
var instance = $(this).data('_spinbox');
if( instance ){return ;}
instance = new $.Spinbox($(this),opts);
$(this).data('_spinbox', instance);
}
});
}
$.fn.getSpinbox = function(){
return $.Spinbox.getSpinbox(this);
}
$.Spinbox = function(obj, opts){
this.obj = obj;
this.opts = $.extend(true, {}, $.Spinbox.defaults, opts);
this._init();
}
$.Spinbox.getSpinbox = function(obj){
obj = $(obj)
if(obj.length == 0) {
return ;
} else if (obj.length == 1){
return obj.data('_spinbox');
} else if ( obj.length > 1) {
var array = [];
obj.each(function(idx){
array.push(this.data('_spinbox'));
})
return array;
}
}
$.Spinbox.prototype = {
constructor: $.Spinbox,
_init: function(){
this._createStruture();
this._initDisabled();
this._bindEvent();
},
_createStruture: function(){
var opts = this.opts, nextSibling, w = parseInt(opts.width), inputW;
if( this.obj[0].tagName.toLowerCase() == 'input' ) {
this.input = this.obj;
this.obj = this.obj.parent();
nextSibling = this.input.next().length == 0 ? null : this.input.next();
} else {
this.input = $('<input type="text" />');
}
this.input.attr('autocomplete', 'off').addClass(opts.inputCls).numberField(opts);
this.numberField = this.input.data('_numberField');
this.downBtn = $('<a />').addClass(opts.downBtnCls);
this.upBtn = $('<a />').addClass(opts.upBtnCls);
this.btnWrap = $('<span />').addClass(opts.btnWrapCls).append(this.upBtn,this.downBtn);
this.btns = this.btnWrap.children();
this.wrap = $('<span />').addClass(opts.wrapCls).append(this.input, this.btnWrap);
if(nextSibling){
this.wrap.insertBefore(nextSibling);
} else {
this.wrap.appendTo(this.obj);
}
if(w){
this.wrap.width(w);
inputW = w - this.btnWrap.outerWidth() - (this.input.outerWidth() - this.input.width());
this.input.width(inputW);
}
},
_initDisabled: function(){
var opts = this.opts;
this._disabled = opts.disabled === true ? true : opts.disabled === false ? false : undefined;
if(this._disabled === undefined){
this._disabled = !!this.input.attr('disabled');
}
this.defaultDisabled = this._disabled;
if(this._disabled === true){
this.disable();
}
},
_bindEvent: function(){
var self = this, opts = this.opts;
this.wrap.on('mouseover', function(e){
if(self._disabled){return ;}
self.wrap.addClass(opts.hoverCls);
}).on('mouseleave', function(e){
if(self._disabled){return ;}
self.wrap.removeClass(opts.hoverCls);
});
this.btnWrap.on('mouseover', function(e){
if(self._disabled){return ;}
$(this).addClass(opts.btnWrapHoverCls);
}).on('mouseleave', function(e){
if(self._disabled){return ;}
$(this).removeClass(opts.btnWrapHoverCls);
});
//IE下需处理dblClick事件,IE9以下dblClick只执行一次click事件
//var clickEvent = $.browser.msie && parseInt($.browser.version) < 9 ? 'mousedown dblclick' : 'mousedown';
var clickEvent = 'mousedown';
this.btns.on(clickEvent, function(e){
if(self._disabled){ return ;}
var operator = $(this)[0] == self.upBtn[0] ? 'plus' : 'minus';
self.input.focus();
if(e.type == 'mousedown'){
self.numberField._handleAdjusting(operator);
} else if(e.type == 'dblclick'){
self.numberField._adjustVal(operator);
}
e.preventDefault();
}).on('mouseup mouseleave', function(e){
self.numberField._clearAutoRepeat();
});
this.input.on('focus',function(e){
self.wrap.addClass(opts.activeCls);
}).on('blur', function(){
self.wrap.removeClass(opts.activeCls);
});
$(document).on('mousedown', function(e){
var target = e.target || e.srcElement;
if( $(target).closest(self.wrap).length == 0){
self.wrap.removeClass(opts.activeCls);
}
});
},
enable: function(){
this._handleDisabled(false);
},
disable: function(disabled){
disabled = typeof disabled == 'undefined' ? true : !!disabled;
this._handleDisabled(disabled);
},
_handleDisabled: function(disabled){
var opts = this.opts;
disabled === true ? this.wrap.addClass(opts.disabledCls) : this.wrap.removeClass(opts.disabledCls);
this._disabled = disabled;
this.numberField._handleDisabled(disabled);
},
getDisabled: function(){
return this._disabled;
},
getValue: function(){
this.numberField.getValue();
},
setValue: function(val){
return this.numberField.setValue(val);
}
}
$.Spinbox.defaults = $.extend(true, $.NumberField.defaults, {
/*min: undefined,
max: undefined,
step: 1, //每次增加的值
value: undefined,
width: undefined, //spinbox总宽
disabled: undefined,
keyEnable: true,
wheelEnable: true,
autoRepeat: true,
delay: 400,
interval: 50,*/
width: undefined,
wrapCls: 'ui-spinbox-wrap',
activeCls: 'ui-spinbox-active',
disabledCls: 'ui-spinbox-disabled',
hoverCls: 'ui-spinbox-hover',
inputCls: 'input-txt',
btnWrapCls: 'btn-wrap',
btnWrapHoverCls: 'btn-wrap-hover',
btnCls: 'btn',
downBtnCls: 'btn-down',
upBtnCls: 'btn-up'
})
})(jQuery);

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long