479ac152 by caiyongsong

提交

0 parents
Showing 1000 changed files with 1839 additions and 0 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

1 # 西安市一张图实施监督信息系统前端
...\ No newline at end of file ...\ No newline at end of file
1 div .div-attachment-name {
2 width:255px;
3 white-space:nowrap;
4 text-overflow:ellipsis;
5 -o-text-overflow:ellipsis;
6 overflow: hidden;
7 }
8
9 div .div-attachment-name1 {
10 width:50px;
11 white-space:nowrap;
12 text-overflow:ellipsis;
13 -o-text-overflow:ellipsis;
14 overflow: hidden;
15 }
16
17 .div-attachment-size1 {
18 color:#acacac;
19 font-size:12px;
20 margin-right:10px;
21 width:100px;
22 white-space:nowrap;
23 text-overflow:ellipsis;
24 -o-text-overflow:ellipsis;
25 overflow: hidden;
26 }
27 .div-attachment {
28 /*margin-right:40px;*/
29 /* border:1px solid #dadada; */
30 /* border-radius:2px; */
31 }
32 .div-attachment-son {
33 width: 500px;
34 height: 390px;
35 overflow: auto;
36 }
37 .div-attachment-item {
38 /*padding: 0px 0px 10px 39px;*/
39 padding: 0;
40 clear:both;
41 display:block;
42 cursor:pointer;
43 height:45px;
44 position: relative;
45 }
46 .div-attachment-item:hover {
47 background-color:#f2f6fc;
48 color:#009dda;
49 }
50 .div-attachment-item img {
51 width:32px;
52 float:left;
53 margin-top:4px;
54 }
55 .div-attachment-file{
56 float:left;
57 margin-left:8px;
58 }
59 .div-attachment-control {
60 line-height:44px;
61 float:right;
62 display:none;
63 cursor:pointer;
64 position: absolute;
65 right: 5px;
66 }
67 .div-attachment-control span {
68 margin-right:10px;
69 margin-top:10px;
70 color:#58bdf7;
71 }
72 .div-attachment-control span:hover {
73 color:#009dda;
74 }
75 .div-attachment1 {
76 /*display:block;*/
77 width:auto;
78 cursor: pointer;
79 }
80
81 .div-attachment-name1 {
82 /*display:block;*/
83 cursor: pointer;
84 }
85
86
87
88 .div-attachment-size {
89 color:#acacac;
90 font-size:12px;
91 margin-right:10px;
92 }
93 .div-title button {
94 float:right;
95 }
96 .div-attachment-divpath {
97 margin: 0 !important;
98 }
99 .div-attachment-divpath .glyphicon{
100 color:#acacac;
101 margin-right:4px;
102 font-size:12px;
103 margin-right:6px;
104 }
105
106 .div-attachment-path label {
107 line-height:30px;
108 height:30px;
109 margin-right:4px;
110 }
111 .div-attachment-path .link {
112 cursor:pointer;
113 color:#3ca6e3;
114 }.div-attachment-path .link:hover {
115 color:#1386c9;
116 text-decoration:underline;
117 }
118 .div-attachment-divpath div {
119
120 height:30px;
121 line-height:30px;
122 padding-left:0px !important;
123 padding: 0 0 0 2px;
124 }
125 .div-attachment-path-history .glyphicon{
126 font-size:14px;
127 cursor:pointer;
128 margin-top:3px;
129 }
130 .div-attachment-path-history .glyphicon:hover {
131 color:#009dda;
132 }
133 .div-no-attachment{
134 padding:40px 0;
135 width: 359px;
136 text-align: center;
137 border: 1px solid #dadada;
138 /* border-left: 1px solid #dadada; */
139 /* border-right: 1px solid #dadada; */
140 }
141 .div-no-attachment a{
142 color:#009dda;
143 text-decoration: underline;
144 margin:0 10px;
145 }
146
147 .div-attachment-hint{
148 margin-top: 2px;
149 font-size: 16px;
150 color: #009dda;
151 margin-bottom: 2px;
152 }
153
154 ul{
155 list-style:none;
156 padding: 0px;
157 white-space:nowrap;
158 overflow:hidden;
159 text-overflow: ellipsis;
160 }
161 ul li
162 {
163 float:left;
164 }
165 a:hover{
166 cursor:pointer;
167 }
168
169 #sendTextarea{
170 margin-left:18px;
171 margin-top:10px;
172 border:1px solid #268de8;
173 resize:none;
174 }
175 #htyjTextarea{
176 width:565px;
177 height:150px;
178 margin-left:18px;
179 margin-top:10px;
180 border:1px solid #268de8;
181 resize:none;
182 }
183 #menu{
184 z-index: 110009;
185 overflow: hidden;
186 width: 210px;
187 height: auto;
188 position:absolute;
189 border-color: #ddd;
190 color: #444;
191 margin: 0;
192 padding: 2px;
193 font-size: 12px;
194 border-width: 1px;
195 border-style: solid;
196 background-color: #fafafa;
197 padding-top: 3px;
198 border-radius: 4px;
199 font-size: 16px;
200 font-weight: 500;
201 line-height: 1.6;
202 font-family: -apple-system-font,Helvetica Neue,sans-serif;
203 }
204 .attachmentHint{
205 margin-left: 40px;
206 color: red;
207 }
...\ No newline at end of file ...\ No newline at end of file
1 @CHARSET "UTF-8";
2 /*共公样式*/
3 * {
4 /* font-family: Arial, Verdana, Helvetica, sans-serif; */
5 /* font-family: "雅黑宋体", "微软雅黑", "新宋体", "宋体"; */
6 /* font-weight: 500; */
7 /* font-size:14px; */
8 }
9 /* html { overflow-x:hidden; } */
10 #nav{width:100%;z-index:999;position: fixed;}
11 .button-fix{margin-left:15px !important;padding:16px !important;background: white !important;}
12 .padd-top-150{padding-top:150px !important;}
13 .padd-top-80{padding-top:40px !important;}
14 .padd-top-88{padding-top:120px !important;}
15 .m-b-0{margin-bottom:0 !important;}
16 .btn-info[disabled]
17 {
18 cursor: inherit !important;
19 }
20
21 .glyphicon{
22 font-family:'Glyphicons Halflings'
23 }
24 body {
25 color:#555555;
26 margin:0;
27 padding:0;
28 }
29 label {
30 font-weight:500;
31 font-size: 16px;
32 }
33 .clearboth {
34 clear: both;
35 }
36 input[type="text"]:focus{
37 outline: none;
38 }
39
40
41 /*阴影*/
42 .shadow-z-1 {
43 box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 6px 0 rgba(0, 0, 0, 0.12);
44 }
45 /*链接样式*/
46 a {
47 /* color:#555555; */
48 /* text-decoration:none; */
49 }
50 a:hover {
51 color:#1386c9;
52 }
53 /*字体颜色*/
54 .font-key {
55 cursor:pointer;
56 color:#e44545;
57 }
58 /*第三级页面头部和版权样式*/
59 .headbg {
60 top:0;
61 /* height:100px; */
62 /* height:55px; */
63 /* height:42px; !* hyh 修改 高度自适应*!*/
64
65 height:54px; /* yw 0616*/
66
67 /* background:url(../../image/index/headbg01.png) repeat-x #0894e5; */
68 /*background:url(../../image/index/title_bg3.png) no-repeat #0894e5; !* hyh 修改 将 repeat-x改为no-repeat2017、9、26 *!*/
69
70 background:url(../../image/index/title_bg_0616.png) no-repeat #0894e5; /* yw 0616 */
71 margin-bottom:16px;
72 /* background-color: #179bf0; *//*hyh 修改 将背景换成图片 2017、9、19*/
73 background-size: 100% 100%;/* hyh 新增 将背景图铺满 2017、9、26 */
74 }
75 /*查询头部*/
76 .seachheadbg {
77 top:0;
78 height:100px;
79 /* background:url(../images/index/headbg.png) repeat-x #0894e5; */
80 margin-bottom:1px;
81 background-color: #179bf0;
82 }
83
84 .headbg-logo {
85 /*background:url(../images/index/headbg-logo.png) no-repeat ;*/
86 /* height:100px; hyh 将100px改成55px*/
87 height:42px;
88 padding:0;
89
90 }
91 .head-logo {
92 float:left;
93 margin-top:22.5px;
94 margin-bottom:12px;
95 margin-left:12px;
96 }
97 .div-head-title{
98 float:left;
99 /* margin-top:31px;
100 margin-bottom:17px;
101 margin-left:13px; */
102 }
103 .div-copyright {
104 margin:0px 8px;
105 text-align: center;
106 font-size: 16px;
107 color: #a1a1a1;
108 background-color:white;
109 }
110 .copyright-margintop{
111 margin-top:280px;
112 }
113 .btn-search{
114 height: 32px;
115 }
116 #searchInput{
117 width: 370px;
118 height: 27px;
119 /*margin-top: 2px;*/
120 margin-left: 2px;
121 }
122 .div-search{
123 /* width: 280px; */
124 height: 30px;
125 /* margin-left: 10px; */
126 }
127 /*单选按钮样式*/
128 input[type='radio'] {
129 opacity:0;
130 display:inline-block;
131 height:16px;
132 }
133 input[type="radio"]+label {
134 background:url(../../image/officedocument/icon/radio_check.png) no-repeat;
135 height:16px;
136 line-height:16px;
137 padding-left:25px;
138 cursor: pointer;
139 }
140 input[type="radio"]:disabled+label{
141 cursor: auto;
142 background:url(../../image/officedocument/icon/radio_check_disabled.png) no-repeat;
143 }
144 input[type="radio"]:checked + label {
145 background:url(../../image/officedocument/icon/radio_checked.png) no-repeat;
146 }
147 input[type="radio"]:checked:disabled + label {
148 cursor: auto;
149 background:url(../../image/officedocument/icon/radio_checked_disabled.png) no-repeat;
150 }
151
152 /* .highlight{ */
153 /* color: red; */
154 /* } */
155
156 input::-webkit-input-placeholder { /* WebKit browsers */
157 /*font-style:italic;*/
158 color: rgb(204, 204, 204); /* hyh 谢文洲要求修改公文里面的未填写的颜色 2017/11/1 */
159 }
160 /*input内的提示内容颜色*/
161 .hoderclass::-webkit-input-placeholder {
162 color: #ccc;
163 }
164 #timeInterval{
165 color:#ffcc00;
166 font-size:50px;
167 }
168
169 .div-relate-document-attachment{
170 margin-top:10px;
171 /* border-bottom:1px solid #d3d3d5;*/
172 }
173 .div-relate-document-attachment label{
174 color: #337ab7;
175 }
176
177 .div-remind-legend{
178 cursor:pointer;
179 }
180
181 .div-remind-legend:HOVER {
182 /* background-color: #66d2fe; */
183 color: #1386c9;
184 }
185
186 .gw-list{
187 table-layout: fixed;
188
189 }
190 /*公文打印的时候超出内容添加滚动条*/
191 .gw-print{
192 overflow-y: scroll;
193 }
194
195 input[type=checkbox]{
196 /* zoom:150%; *//* hyh 注释,150的勾选框太大了 2017、9、13 */
197 }
198
199 .submenuitem {
200 width: 100%;
201 height: 50px;
202 line-height: 50px;
203 padding-left: 40px;
204 cursor: pointer;
205 font-size: 15px;
206 }
207
208 .submenuitem:hover {
209 color: #1998e1;
210 background-color: #cfe1fc;
211 }
212
213 .submenuitem img {
214 height: 32px;
215 margin-right: 16px;
216 }
217
218 .submenuitem-selected {
219 background-color: #d5e4fa;
220 }
221 /* hyh 新增 2017、9、8 图文一体化管理系统样式*/
222 .ghjbz{
223 float:left;
224 height:auto;
225 /* font-size: 30px; */
226 font-size: 24px;
227 color: white;
228 margin-left: 10px;
229 /* margin-top: 5px; */
230 margin-top: 10px;
231 }
232
233 /* hyh 新增 2017、9、8 图文一体化管理系统样式*/
234 .headbg-logo img{
235 margin-top: 5px;
236 /* height: 40px;
237 width: 40px; *//* hyh 因更换图标而注释掉 2017、9、19 */
238 }
239 #searchbtn img{
240 margin-top: 0px;
241 height: 19px;
242 width: 19px;
243 margin-left: 5px;
244 }
245
246 .documentFormDetail{
247 margin-left: 15px;
248 }
249 /* .layui-table-view .layui-table{
250 width: 100% !important;
251 } */
252
253 /* 文件tree*/
254 .dtree-container{
255 width: 380px;
256 }
257 .dtree-container .custom-tree-node{
258 width: 400px;
259 }
260 .treespan{
261 line-height: 30px;
262 }
263 .dtree-container>.dtree{
264 width: 100% !important;
265 }
266 .dtree-container>.dtree .dtree-nav-item {
267 float: none;
268 }
269 .top-icon::before{
270 content: '';
271 display: inline-block;
272 width: 14px ;
273 height: 13px ;
274 margin-right: 3px;
275 background: url('/frontweb/image/reviewmanage/icon_file_list.png') ;
276 background-size: cover;
277 }
278 .dtree-icon-weibiaoti5::before {
279 content: '';
280 display: inline-block;
281 width: 14px ;
282 height: 13px ;
283 margin-right: 3px;
284 background: url('/frontweb/image/reviewmanage/file_package.png') ;
285 background-size: cover;
286 }
287 .top-icon-bottom::before{
288 content: '';
289 display: inline-block;
290 width: 13px ;
291 height: 13px ;
292 margin-right: 3px;
293 background: url('/frontweb/image/reviewmanage/icon_page.png') ;
294 background-size: 100% 100%;
295 }
296 .dtree-zdy-item-this{background-color:rgba(24,144,255,0.10)!important;} /* 当前选中行样式*/
297 .dtree-zdy-item:hover{background-color:rgba(24,144,255,0.10)!important;} /* 行悬停样式*/
298 .dtree-zdy-item:hover cite{color:black} /* 行悬停文字样式*/
299
300
301 /*.over-hiddle-san {*/
302 /* display: -webkit-box; !** 将对象作为伸缩盒子模型显示 **!*/
303 /* -webkit-box-orient: vertical; !** 设置或检索伸缩盒对象的子元素的排列方式 **!*/
304 /* -webkit-line-clamp: 1; !** 显示的行数,显示高度设置成行高,多余部分隐藏 **!*/
305 /* overflow: hidden; !**超出部分隐藏 **!*/
306 /*}*/
1 .div-search {
2 border: 1px solid #0096eb;
3 border-right: none;
4 float: left;
5 }
6
7 .div-search img {
8 margin-left: 10px;
9 /* margin-top:10px; */
10 margin-right: 4px;
11 }
12
13 .div-search input[type="text"] {
14 border: none;
15 width: 475px;
16 height: 36px;
17 padding: 4px;
18 }
19 .search{
20 float: left;
21 margin-top: 5px;
22 }
23 .search input[type="text"] {
24 width: 200px;
25 height: 30px;
26 padding-left: 8px;
27 border: 1px solid #0096eb;
28 border-radius: 2px;
29 }
30 .search .btn-group>.btn:first-child{
31 border:1px solid #0096eb;
32 border-radius:2px;
33 width: 250px;
34 height: 30px;
35 }
36 .search .dropdown-menu open{
37 width: 200px;
38 }
39 .search input[type="text"]{
40 border:1px solid #0096eb;
41 width: 200px;
42 }
...\ No newline at end of file ...\ No newline at end of file
1 //附件操作
2 function addAttachmentEvent() {
3 $(".div-attachment-control").css("display","block");
4 $('.div-document-content-right div[name="removerbtn"]').attr("onclick","morelist()");
5 return;
6 // $(".div-attachment-item").mouseover(function () {
7 // $(this).find(".div-attachment-control").css("display","block");
8 // });
9 // $(".div-attachment-item").mouseleave(function (evt) {
10 // $(this).find(".div-attachment-control").css("display","none");
11 // });
12 // $('.div-document-content-right div[name="removerbtn"]').attr("onclick","morelist()");
13 }
14
15 function removerMouseover(){
16 $(".div-attachment-item").unbind("mouseover");
17 $('.div-document-content-right div[name="removerbtn"]').removeAttr("onclick");
18 $(".div-attachment-item").removeAttr("onclick");
19 $(".div-attachment-item .div-attachment-name").removeAttr("onclick");
20 }
...\ No newline at end of file ...\ No newline at end of file
1 (function($,contextPath){
2 window.authentication=true;
3 var logoutEvent=function(){
4 layer.open({
5 type:1,
6 title:false,
7 content:'\
8 <div style="padding:50px;width:100%;height:100%;">\
9 <p style="text-align:center;">\
10 <span class="glyphicon glyphicon-exclamation-sign" style="font-size:40px;color:gray;"></span>\
11 </p>\
12 <p style="text-align:center;margin-top:30px;">\
13 由于刚刚的操作,您的登录帐号已发生变化,请注意使用!\
14 </p>\
15 </div>',
16 area:['400px','250px'],
17 btn:'我知道了',
18 btnAlign:'c',
19 yes:function(index,layero){
20 window.location.assign(contextPath)
21 layer.close(index);
22 },
23 cancel: function(index){
24 window.location.assign(contextPath)
25 },
26 success: function(layero, index){
27 $(layero).find('.layui-layer-btn').css('text-align','center');
28 }
29 });
30 }
31 var connection=function(){
32 if(window.authentication===false)return;
33 var xmlhttp=new XMLHttpRequest();
34 xmlhttp.open('GET',contextPath+'/authentication?t=' + Math.random(),true);
35 xmlhttp.send();
36 xmlhttp.onreadystatechange=function(){
37 if (xmlhttp.readyState==4 && xmlhttp.status==200){
38 if(xmlhttp.responseText&&xmlhttp.responseText.indexOf('data:reconnection')!=-1){
39 connection();
40 }else{
41 window.authentication=false;
42 if(window._isOwner)return;
43 logoutEvent();
44 }
45 }
46 }
47 };
48 connection();
49 })(jQuery,_contextPath)
...\ No newline at end of file ...\ No newline at end of file
1 $(function(){
2 var autoHeight = 0;
3 var autoWidth = 0;
4 $('textarea').focus(function(){
5 autoHeight=$(this).prop("scrollHeight");
6 autoWidth=$(this).width();
7 });
8 $('textarea').bind('input propertychange', function() {
9 $(this).after('<textarea class="autoHeight" style="height:'+autoHeight+'px;width:'+autoWidth+'px;visibility:hidden;"></textarea>');
10 $('.autoHeight').val($(this).val());
11 if($(this).next().attr('class') == "autoHeight"){
12 $(".autoHeight").not(":first").remove();
13 }
14 var height = $('.autoHeight').prop("scrollHeight");
15 $(this).css('height',height+'px');
16 });
17 });
...\ No newline at end of file ...\ No newline at end of file
1 today = new Date();
2 function initArray() {
3 this.length = initArray.arguments.length
4 for (var i = 0; i < this.length; i++)
5 this[i + 1] = initArray.arguments[i]
6 }
7 var d = new initArray(
8 "星期日",
9 "星期一",
10 "星期二",
11 "星期三",
12 "星期四",
13 "星期五",
14 "星期六");
15 /*
16 function getFestival() {
17 month = today.getMonth();
18 date = today.getDate();
19 var festival = "";
20 if ((month == 0) && (date == 1)) { festival= "元旦";}
21
22 if ((month == 2) && (date == 12)) { festival = "植树节"; }
23
24 if ((month == 3) && (date == 5)) { festival = "清明节"; }
25
26 if ((month == 4) && (date == 1)) { festival = "劳动节"; }
27
28 if ((month == 4) && (date == 4)) { festival = "青年节"; }
29
30 if ((month == 5) && (date == 1)) { festival = "儿童节"; }
31
32 if ((month == 7) && (date == 1)) { festival = "建军节"; };
33
34 //if ((month == 7) && (date == 16)) { festival = "七夕情人节"; }
35
36 if ((month == 9) && (date == 1)) { festival = "国庆节"; }
37
38 if ((month == 11) && (date == 24)) { festival = "平安夜"; }
39 if ((month == 11) && (date == 25)) { festival = "圣诞节"; }
40 if (festival != "") {
41 return "(" + festival + ")";
42 }
43 return "";
44 }*/
45 /*农历部分*/
46
47 var CalendarData = new Array(100);
48 var madd = new Array(12);
49 //var tgString = "甲乙丙丁戊己庚辛壬癸";
50 //var dzString = "子丑寅卯辰巳午未申酉戌亥";
51 var numString = "一二三四五六七八九十";
52 var monString = "正二三四五六七八九十冬腊";
53 var weekString = "日一二三四五六";
54 //var sx = "鼠牛虎兔龙蛇马羊猴鸡狗猪";
55 var cYear, cMonth, cDay, TheDate;
56 CalendarData = new Array(0xA4B, 0x5164B, 0x6A5, 0x6D4, 0x415B5, 0x2B6, 0x957, 0x2092F, 0x497, 0x60C96, 0xD4A, 0xEA5, 0x50DA9, 0x5AD, 0x2B6, 0x3126E, 0x92E, 0x7192D, 0xC95, 0xD4A, 0x61B4A, 0xB55, 0x56A, 0x4155B, 0x25D, 0x92D, 0x2192B, 0xA95, 0x71695, 0x6CA, 0xB55, 0x50AB5, 0x4DA, 0xA5B, 0x30A57, 0x52B, 0x8152A, 0xE95, 0x6AA, 0x615AA, 0xAB5, 0x4B6, 0x414AE, 0xA57, 0x526, 0x31D26, 0xD95, 0x70B55, 0x56A, 0x96D, 0x5095D, 0x4AD, 0xA4D, 0x41A4D, 0xD25, 0x81AA5, 0xB54, 0xB6A, 0x612DA, 0x95B, 0x49B, 0x41497, 0xA4B, 0xA164B, 0x6A5, 0x6D4, 0x615B4, 0xAB6, 0x957, 0x5092F, 0x497, 0x64B, 0x30D4A, 0xEA5, 0x80D65, 0x5AC, 0xAB6, 0x5126D, 0x92E, 0xC96, 0x41A95, 0xD4A, 0xDA5, 0x20B55, 0x56A, 0x7155B, 0x25D, 0x92D, 0x5192B, 0xA95, 0xB4A, 0x416AA, 0xAD5, 0x90AB5, 0x4BA, 0xA5B, 0x60A57, 0x52B, 0xA93, 0x40E95);
57 madd[0] = 0;
58 madd[1] = 31;
59 madd[2] = 59;
60 madd[3] = 90;
61 madd[4] = 120;
62 madd[5] = 151;
63 madd[6] = 181;
64 madd[7] = 212;
65 madd[8] = 243;
66 madd[9] = 273;
67 madd[10] = 304;
68 madd[11] = 334;
69
70 function GetBit(m, n) {
71 return (m >> n) & 1;
72 }
73 function e2c() {
74 TheDate = (arguments.length != 3) ? new Date() : new Date(arguments[0], arguments[1], arguments[2]);
75 var total, m, n, k;
76 var isEnd = false;
77 var tmp = TheDate.getYear();
78 if (tmp < 1900) {
79 tmp += 1900;
80 }
81 total = (tmp - 1921) * 365 + Math.floor((tmp - 1921) / 4) + madd[TheDate.getMonth()] + TheDate.getDate() - 38;
82
83 if (TheDate.getYear() % 4 == 0 && TheDate.getMonth() > 1) {
84 total++;
85 }
86 for (m = 0; ; m++) {
87 k = (CalendarData[m] < 0xfff) ? 11 : 12;
88 for (n = k; n >= 0; n--) {
89 if (total <= 29 + GetBit(CalendarData[m], n)) {
90 isEnd = true; break;
91 }
92 total = total - 29 - GetBit(CalendarData[m], n);
93 }
94 if (isEnd) break;
95 }
96 cYear = 1921 + m;
97 cMonth = k - n + 1;
98 cDay = total;
99 if (k == 12) {
100 if (cMonth == Math.floor(CalendarData[m] / 0x10000) + 1) {
101 cMonth = 1 - cMonth;
102 }
103 if (cMonth > Math.floor(CalendarData[m] / 0x10000) + 1) {
104 cMonth--;
105 }
106 }
107 }
108
109 function GetcDateString() {
110 var tmp = "";
111 //tmp += tgString.charAt((cYear - 4) % 10);
112 //tmp += dzString.charAt((cYear - 4) % 12);
113 //tmp += "(";
114 //tmp += sx.charAt((cYear - 4) % 12);
115 //tmp += ")年 ";
116 if (cMonth < 1) {
117 tmp += "(闰)";
118 tmp += monString.charAt(-cMonth - 1);
119 } else {
120 tmp += monString.charAt(cMonth - 1);
121 }
122 tmp += "月";
123 tmp += (cDay < 11) ? "初" : ((cDay < 20) ? "十" : ((cDay < 30) ? "廿" : "三十"));
124 if (cDay % 10 != 0 || cDay == 10) {
125 tmp += numString.charAt((cDay - 1) % 10);
126 }
127 return tmp;
128 }
129
130 function GetLunarDay(solarYear, solarMonth, solarDay) {
131 //solarYear = solarYear<1900?(1900+solarYear):solarYear;  
132 if (solarYear < 1921 || solarYear > 2020) {
133 return "";
134 } else {
135 solarMonth = (parseInt(solarMonth) > 0) ? (solarMonth - 1) : 11;
136 e2c(solarYear, solarMonth, solarDay);
137 return GetcDateString();
138 }
139 }
140
141 //var D = new Date();
142 //var yy = today.getFullYear();
143 //var mm = today.getMonth() + 1;
144 //var dd = today.getDate();
145 //var ww = today.getDay();
146 //var ss = parseInt(today.getTime() / 1000);
147 //if (yy < 100) yy = "19" + yy;
148 //function getLunarCalendar() {
149 // return GetLunarDay(yy, mm, dd);
150 //}
151 //function getSolarCalendar() {
152 // return yy + "年" + mm + "月" + dd + "日";
153 //}
154 //function getWeek() {
155 // return d[ww + 1];
156 //}
157 function getLunarCalendar(AddDayCount) {
158 var date = new Date();
159 date.setDate(date.getDate() + AddDayCount);
160 return GetLunarDay(date.getFullYear(), date.getMonth() + 1, date.getDate());
161 }
162 function getSolarCalendar(AddDayCount) {
163 var date = new Date();
164 date.setDate(date.getDate() + AddDayCount);
165 return date.getFullYear() + "年" + (date.getMonth() + 1) + "月" + date.getDate() + "日";
166 }
167 /**
168 * What day?
169 * @param AddDayCount
170 * @returns {String}
171 */
172 function getWeekCalendar(AddDayCount) {
173 var weekDay = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
174 var date = new Date();
175 date.setDate(date.getDate() + AddDayCount);
176 return weekDay[date.getDay()];
177 }
178 function getWeek(AddDayCount) {
179 var date = new Date();
180 date.setDate(date.getDate() + AddDayCount);
181 return d[date.getDay() + 1];
182 }
...\ No newline at end of file ...\ No newline at end of file
1 function checktoken(){
2 var token = $.cookie('ftoken');
3 if(token==undefined){
4 checktokenFlag=false;//hyh 新增 用全局变量作为标识。
5 window.location.href = "login.jsp";
6 }
7 }
...\ No newline at end of file ...\ No newline at end of file
1 var dMCustomScrollbar=function(dw){
2 var wwidth=$(window).width();
3 if(wwidth>dw){
4 $('#bodyContent').width('100%');
5 }else{
6 $('#bodyContent').width(dw);
7 }
8 }
9
10 $(function(){
11 dMCustomScrollbar(1366);
12 $(window).resize(function(){
13 dMCustomScrollbar(1366);
14 });
15 });
...\ No newline at end of file ...\ No newline at end of file
1 Date.prototype.format = function(format){
2 var o = {
3 "M+" : this.getMonth()+1, //month
4 "d+" : this.getDate(), //day
5 "h+" : this.getHours(), //hour
6 "m+" : this.getMinutes(), //minute
7 "s+" : this.getSeconds(), //second
8 "q+" : Math.floor((this.getMonth()+3)/3), //quarter
9 "S" : this.getMilliseconds() //millisecond
10 }
11 if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
12 for (var k in o)
13 if (new RegExp("(" + k + ")").test(format)) format = format.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
14 return format;
15 }
16
17
18 //初始化日期控件
19 function loadDate(id){
20 jeDate({
21 dateCell:"#"+id,
22 format:"YYYY-MM-DD ",
23 isinitVal:true,
24 isTime:true,
25 festival: true, //显示节日
26 isClear:true,
27 })
28 }
29
30
1 /*
2 * 改变字体大小 document.body.style.zoom = 1.50;
3 */
4 function nomal() {
5 document.body.style.zoom = 1.0;
6 $("#fontBut").html("<span class='glyphicon glyphicon-font'></span>字体(正常) <span class='caret'></span>");
7 }
8
9 function middle() {
10 document.body.style.zoom = 1.25;
11 $("#fontBut").html("<span class='glyphicon glyphicon-font'></span>字体(中) <span class='caret'></span>");
12 }
13
14 function big() {
15 document.body.style.zoom = 1.5;
16 $("#fontBut").html("<span class='glyphicon glyphicon-font'></span>字体(大) <span class='caret'></span>");
17 }
18
19 function fontFunction(docType){
20 var fontStr = '<div class="btn-group">' +
21 '<button type="button" id="fontBut" class="btn btn-info dropdown-toggle" data-toggle="dropdown"> ' +
22 '字体(正常) <span class="caret"></span>' +
23 '</button>' +
24 '<ul id="fontSize" class="dropdown-menu" role="menu">' +
25 '<li><a href="javascript:void(0)" onclick="nomal()">正常</a></li>' +
26 '<li><a href="javascript:void(0)" onclick="middle()">中</a></li>' +
27 '<li><a href="javascript:void(0)" onclick="big()">大</a></li>' +
28 '</ul>' +
29 '</div>';
30
31 $("#button_load").append(fontStr);
32
33
34 }
1 /**
2 * JSUtil General JS scripting tools
3 */
4 ( function( window ) {
5 var noop=function(){};
6 var log=function(msg){
7 if ( window.console ) {
8 console.log(msg);
9 }
10 }
11 var recursion=function(items,options){
12 var config={
13 'isRoot':function(item){
14 return !item['parentId'];
15 },
16 'isChild':function(itemA,itemB){
17 return itemA['id']==itemB['parentId'];
18 },
19 'generateResult':function(item,children){
20 item['children']=children;
21 return item;
22 }
23 };
24 jQuery.extend(config, options);
25 var innerFN=function(item,items){
26 var children=[];
27 for(var i=0;i<items.length;i++){
28 if(config.isChild(item,items[i])){
29 var temp=innerFN(items[i],items);
30 if(temp){
31 children.push(temp);
32 }
33 }
34 }
35 return config.generateResult(item,children);
36 }
37 var results=[];
38 for(var i=0;i<items.length;i++){
39 if(config.isRoot(items[i])){
40 var result=innerFN(items[i],items);
41 if(result){
42 results.push(result);
43 }
44 }
45 }
46 return results;
47 }
48 var strfmt=function(str){
49 if(!str)return null;
50 for(var i=1;i<arguments.length;i++){
51 str = str.replace(new RegExp("\\{" + i + "\\}", "g"), arguments[i]);
52 }
53 return str;
54 }
55 var uuid=function(delSeparator) {
56 var s = [];
57 var hexDigits = "0123456789abcdef";
58 for (var i = 0; i < 36; i++) {
59 s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
60 }
61 s[14] = "4";
62 s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
63 if(delSeparator){
64 s[8] = s[13] = s[18] = s[23] = "";
65 }else{
66 s[8] = s[13] = s[18] = s[23] = "-";
67 }
68 var uuid = s.join("");
69 return uuid;
70 }
71 var formatSize=function( size, pointLength, units ) {
72 var unit;
73 units = units || [ 'B', 'K', 'M', 'G', 'TB' ];
74 while ( (unit = units.shift()) && size > 1024 ) {
75 size = size / 1024;
76 }
77 return (unit === 'B' ? size : size.toFixed( pointLength || 2 )) + unit;
78 }
79 var get=function(){
80 $.ajaxSetup({async:false})
81 $.get.apply(this,arguments);
82 $.ajaxSetup({async:true})
83 }
84 var post=function(){
85 $.ajaxSetup({async:false})
86 $.post.apply(this,arguments);
87 $.ajaxSetup({async:true})
88 }
89 var getJSON=function(){
90 $.ajaxSetup({async:false})
91 $.getJSON.apply(this,arguments);
92 $.ajaxSetup({async:true})
93 }
94 var JSUtil={
95 'noop':noop,
96 'log':log,
97 'recursion':recursion,
98 'strfmt':strfmt,
99 'uuid':uuid,
100 'formatSize':formatSize,
101 'get':get,
102 'post':post,
103 'getJSON':getJSON,
104 };
105 window.JSUtil = JSUtil;
106 } )( window );
...\ No newline at end of file ...\ No newline at end of file
1 var global = global || { basePath: '', contextPath: '' };
2 global.enums = global.enums || {};
3
4 global.enums = {
5 all: { id: 0, text: '所有' },
6 nolimit: { id: 0, text: '不限' },
7 yesno: [{ id: 1, name: 'true', text: '是' }, { id: 0, name: 'false', text: '否' }],
8 truefalse: [{ id: 'true', text: '是' }, { id: 'false', text: '否' }],
9 dictype: [{ id: 1, name: 'dic_1', text: '静态' }, { id: 2, name: 'dic_2', text: '动态' }],
10 sextype: [{ id: 1, name: 'sex_1', text: '保密' }, { id: 2, name: 'sex_2', text: '男' }, { id: 3, name: 'sex_3', text: '女' }],
11 roletype: [{ id: 1, name: 'rtype_1', text: '系统角色' }, { id: 2, name: 'rtype_2', text: '业务角色' },{ id: 4, name: 'rtype_4', text: '会议角色' },{ id: 3, name: 'rtype_3', text: '流程角色' }],
12 unittype: [{ id: 1, name: 'rtype_1', text: '局' }, { id: 2, name: 'rtype_2', text: '科室' }],
13 userfields: [{ name: 'loginname', text: '帐户' }, { name: 'realname', text: '真名' }, { name: 'nickname', text: '昵称' },{ name: 'wxname', text: '微信号' }, { name: 'mobile', text: '手机' }, { name: 'email', text: '邮箱' }],
14 processfields: [{ name: 'name', text: '名称' }, { name: 'alias', text: '别名' }]
15 };
16
17 global.prefixs = {
18 sextype: 'sex_',
19 roletype: 'rtype_',
20 unittype: 'utype_',
21 dictype: 'dic_'
22 };
23
24 global.enums.datatype = [
25 { id: 1, name: 'integer', text: '整数' },
26 { id: 2, name: 'string', text: '字符串' },
27 { id: 3, name: 'decimal', text: '浮点' },
28 { id: 4, name: 'clob', text: '大文本' },
29 { id: 5, name: 'blob', text: '二进制' },
30 { id: 6, name: 'boolean', text: '布尔' },
31 { id: 7, name: 'long', text: '长整数' },
32 { id: 8, name: 'date', text: '日期' }
33 ];
34 global.enums.idtype = [
35 { id: 1, name: 'common', text: '一般字段' },
36 { id: 2, name: 'grow', text: '自增主键' },
37 { id: 3, name: 'global', text: '全局主键' }
38 ];
39
40 global.enums.formtype = [
41 { id: 1, name: 'builtin', text: '内置' },
42 { id: 2, name: 'classic', text: '经典' },
43 { id: 3, name: 'custom', text: '自定义' }
44 ];
45
46 global.enums.reporttype = [
47 /* { id: 1, name: 'raq', text: '润乾报表' },*/
48 { id: 2, name: 'fine', text: '帆软报表' }
49 ];
50
51 global.enums.apptemplatetype = [
52 { id: 1, name: 'approve', text: '审批' },
53 ];
54
55 global.enums.kvtreetype = [
56 { id: 1, name: 'static', text: '静态' },
57 { id: 2, name: 'dynamic', text: '动态' }
58 ];
59
60 global.enums.restestrategy = [
61 { id: 0, name: 'A', text: '永不重置' },
62 { id: 1, name: 'Y', text: '按年重置' },
63 { id: 2, name: 'M', text: '按月重置' },
64 { id: 3, name: 'D', text: '按天重置' }
65 ];
66
67 global.enums.numberAttributeType = [
68 { id: 'T1', name: 'textStatic', text: '静态文本' },
69 { id: 'T2', name: 'textKey', text: '参数文本' },
70 { id: 'T3', name: 'textField', text: '属性文本' },
71 { id: 'T4', name: 'textKeyDic', text: '参数字典文本' },
72 { id: 'T5', name: 'textFieldDic', text: '属性字典文本' },
73 { id: 'D1', name: 'dateSys', text: '系统日期' },
74 { id: 'D2', name: 'dateKey', text: '参数日期' },
75 { id: 'D3', name: 'dateField', text: '属性日期' },
76 { id: 'N1', name: 'numberStatic', text: '静态计数器' },
77 { id: 'N2', name: 'numberKey', text: '参数计数器' },
78 { id: 'N3', name: 'numberField', text: '属性计数器' },
79 { id: 'N4', name: 'numberKeyDic', text: '参数字典计数器' },
80 { id: 'N5', name: 'numberFieldDic', text: '属性字典计数器' }
81 ];
82
83 global.enums.sendType = {
84 SendDefault: 'SendDefault',
85 SActivitySUser: 'Send2SActivitySUser',
86 SActivityMUser: 'Send2SActivityMUser',
87 MActivitySUser: 'Send2MActivitySUser',
88 MActivityMUser: 'Send2MActivityMUser',
89 };
90
91 global.enums.openMode = {
92 normal: 'normal',
93 readonly: 'readonly',
94 manage: 'manage'
95 };
...\ No newline at end of file ...\ No newline at end of file
1 String.prototype.padLeft = function (padChar, width) {
2 var ret = this;
3 while (ret.length < width) {
4 if (ret.length + padChar.length < width) {
5 ret = padChar + ret;
6 }
7 else {
8 ret = padChar.substring(0, width - ret.length) + ret;
9 }
10 }
11 return ret;
12 };
13 String.prototype.padRight = function (padChar, width) {
14 var ret = this;
15 while (ret.length < width) {
16 if (ret.length + padChar.length < width) {
17 ret += padChar;
18 }
19 else {
20 ret += padChar.substring(0, width - ret.length);
21 }
22 }
23 return ret;
24 };
25 String.prototype.trim = function () {
26 return this.replace(/^\s+/, '').replace(/\s+$/, '');
27 };
28 String.prototype.trimLeft = function () {
29 return this.replace(/^\s+/, '');
30 };
31 String.prototype.trimRight = function () {
32 return this.replace(/\s+$/, '');
33 };
34 String.prototype.caption = function () {
35 if (this) {
36 return this.charAt(0).toUpperCase() + this.substr(1);
37 }
38 return this;
39 };
40 String.prototype.reverse = function () {
41 var ret = '';
42 for (var i = this.length - 1; i >= 0; i--) {
43 ret += this.charAt(i);
44 }
45 return ret;
46 };
47 String.prototype.startWith = function (compareValue, ignoreCase) {
48 if (ignoreCase) {
49 return this.toLowerCase().indexOf(compareValue.toLowerCase()) == 0;
50 }
51 return this.indexOf(compareValue) == 0
52 };
53 String.prototype.endWith = function (compareValue, ignoreCase) {
54 if (ignoreCase) {
55 return this.toLowerCase().lastIndexOf(compareValue.toLowerCase()) == this.length - compareValue.length;
56 }
57 return this.lastIndexOf(compareValue) == this.length - compareValue.length;
58 };
...\ No newline at end of file ...\ No newline at end of file
1 /**
2 * 20180304 yxt 添加本地缓存机制
3 */
4
5 /*
6 * 定义一个缓存类
7 * modelctls URL
8 * param 参数
9 * result 结果
10 * */
11 function CacehKey(url,data,type,result)
12 {
13 this.url = url;
14 this.data = data;
15 this.type = type;
16
17 this.KeyString = function()
18 {
19 var keyString = JSON.stringify(this.url) + ";" + JSON.stringify(this.data) + ";" + JSON.stringify(this.type) ;
20 return keyString;
21 }
22 }
23 //系统级请求本地缓存
24 function GlobalLocalCache()
25 {
26 this.flag = true;
27 //添加缓存
28 this.AddCache = function(url,data,type,result)
29 {
30 if(!window.localStorage){
31 console.log("浏览器不支持localstorage");
32 return ;
33 }else{
34 var key = new CacehKey(url,data,type);
35 var keyString = key.KeyString();
36 var valueString = JSON.stringify(result);
37 if(this.flag){
38 keyString = encodeURI(keyString);
39 valueString = encodeURI(valueString);
40 }
41 window.localStorage.setItem(keyString,valueString);
42
43 }
44 }
45
46 //获取缓存
47 this.GetCacheResult = function (url,data,type,result)
48 {
49 if(!window.localStorage){
50 console.log("浏览器不支持localstorage");
51 result = null;
52 return null;
53 }else{
54 var key = new CacehKey(url,data,type);
55 var keyString = key.KeyString();
56 if(this.flag){
57 keyString = encodeURI(keyString);
58 }
59 var value = window.localStorage.getItem(keyString);
60 if(this.flag){
61 value = decodeURI(value);
62 }
63 result = JSON.parse(value);
64 return result;
65 }
66 }
67
68 //单个清除缓存
69 this.removeLocalCache = function(url,data,type,result)
70 {
71 if(!window.localStorage){
72 console.log("浏览器不支持localstorage");
73 return ;
74 }else{
75 var key = new CacehKey(url,data,type);
76 var keyString = key.KeyString();
77 if(this.flag){
78 keyString = encodeURI(keyString);
79 }
80 window.localStorage.removeItem(keyString);
81 }
82 }
83
84 //清理缓存
85 this.clearLocalCache = function ()
86 {
87 if(!window.localStorage){
88 console.log("浏览器不支持localstorage");
89 }else{
90
91 window.localStorage.clear();
92 }
93 }
94
95 //检查缓存版本
96 this.checkCacheVersion=function()
97 {
98 var pdata = {name : "后台配置版本"};
99 var localCache = this;
100 var curVersion = this.GetCacheResult(CONF_BACK_SERVERURL + global.modelctls.kvtree.all,
101 pdata,"");
102 $.ajax({
103 type : "POST",
104 url : CONF_BACK_SERVERURL + global.modelctls.kvtree.all,
105 headers : {
106 "token" : $.cookie('ftoken')
107 },
108 dataType : "json",
109 async : true,
110 data : pdata,
111 success : function(data) {
112 var curVersionStr = JSON.stringify(curVersion);
113 var dataStr = JSON.stringify(data);
114
115 if(dataStr != curVersionStr)
116 {
117 localCache.clearLocalCache();
118 localCache.AddCache(CONF_BACK_SERVERURL + global.modelctls.kvtree.all,
119 pdata,"",data);
120 }
121 },
122 error : function(data, textStatus, errorThrown) {
123
124 }
125 });
126 }
127 }
128 var globalLocalCache = null;
129
130 $(function(){
131 globalLocalCache = new GlobalLocalCache();
132 });
133
1 global.msg = global.msg || {};
2
3 global.msg.processing = '正在处理,请稍后...';
4 global.msg.httpfail = 'Http请求失败';
...\ No newline at end of file ...\ No newline at end of file
1 function socketconnect(userid){
2 var socket = io.connect(SOCKETIOSERVER+"?userid="+userid);
3
4 socket.on('connect', function (data) {
5 console.log("开启socket连接");
6 });
7 socket.on('disconnect', function (data) {
8 console.log("断开socket连接");
9 });
10 socket.on('connect_error', function (data) {
11 console.log("socket连接出错");
12 });
13 socket.on('connect_timeout', function (data) {
14 console.log("socket连接超时");
15 });
16 socket.on('event_browser_client', function (data) {
17 showJumpMessage(data);
18 });
19 }
20
21
22
23
24
1 var index = 0;
2 $(document).ready(function(){
3 var urlname=getQueryString("url");
4 NProgress.configure({ showSpinner: false });//禁止进度环
5 NProgress.start();
6 var imghtml = "";
7
8 var title = $('#titele').val();
9 var Arrsrc = parent.imgArrSrc;
10 if(Arrsrc==null){
11 Arrsrc = window.opener.imgArrSrc;
12 }
13 if(Arrsrc==undefined){
14 imghtml = "<img src='"+encodeURI(urlname).replace(/\#/g,'%23').replace(/\;/g,'%3b')+"' alt='"+title+"' hidden=\"hidden\">"
15 }else{
16 for(var i=0;i<Arrsrc.length;i++){
17 imghtml +="<img src='"+CONF_DOC_FILEADDRESURL+encodeURI(Arrsrc[i].path).replace(/\#/g,'%23').replace(/\;/g,'%3b')+"' alt='"+decodeURI(Arrsrc[i].name)+"' hidden=\"hidden\">"
18 if(urlname==CONF_DOC_FILEADDRESURL+Arrsrc[i].path){index =i};
19 }
20 }
21 $('#viewerid').append(imghtml);
22
23 });
24 $(window).load(function() {
25 setTimeout(function(){NProgress.done()}, 1000);
26 $.fn.viewer.setDet();
27 $('#viewerid').viewer();
28 $('#viewerid').children("img:eq("+index+")").click();
29 });
30 function getQueryString(name) {
31 var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
32 var r = window.location.search.substr(1).match(reg);
33 if (r != null) return decodeURIComponent(r[2]); return null;
34 }
...\ No newline at end of file ...\ No newline at end of file
1 <%@ page isELIgnored="false" language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
2 <%
3 String contextPath = request.getContextPath();
4 String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
5 /* String url = java.net.URLDecoder.decode(request.getParameter("url"), "UTF-8");
6 String title = "";
7 if(url!=""){
8 title = url.substring(url.lastIndexOf("/")+1);
9 } */
10
11 %>
12 <!DOCTYPE html>
13 <html>
14 <head lang="en">
15 <meta charset="UTF-8">
16 <title id="titleImgName"></title>
17 <link href="viewer.css" rel="stylesheet" />
18 <link href="../../../libs/nprogress/nprogress.css" rel="stylesheet" />
19 <script src="jquery-1.11.1.min.js"></script>
20 <script src="../../../common/js/config.js"></script>
21 <script type="text/javascript" src="../../../libs/nprogress/nprogress.js"></script>
22 <script src="viewer.js"></script>
23 <style type="text/css">
24 #nprogress .bar {
25 background:#87CEFA;
26 position: fixed;
27 z-index: 1031;
28 top: 0;
29 left: 0;
30 width: 100%;
31 height: 4px;
32 }
33
34
35 </style>
36
37 </head>
38 <body>
39 <%-- <input id="urlname" type="text" value="<%=url%>" hidden="hidden">
40 <input id="titele" type="text" value="<%=title%>" hidden="hidden"> --%>
41 <div id="viewerid">
42 <%-- <img src="<%=url%>" alt="<%=title%>" hidden="hidden"> --%>
43 </div>
44 </body>
45
46 <script type="text/javascript" src="openjpg.js">
47
48 </script>
49 </html>
1 /*!
2 * Viewer v0.6.0
3 * https://github.com/fengyuanchen/viewer
4 *
5 * Copyright (c) 2014-2017 Fengyuan Chen
6 * Released under the MIT license
7 *
8 * Date: 2017-10-07T09:53:32.834Z
9 */
10
11 .viewer-zoom-in::before,
12 .viewer-zoom-out::before,
13 .viewer-one-to-one::before,
14 .viewer-reset::before,
15 .viewer-prev::before,
16 .viewer-play::before,
17 .viewer-next::before,
18 .viewer-rotate-left::before,
19 .viewer-rotate-right::before,
20 .viewer-flip-horizontal::before,
21 .viewer-flip-vertical::before,
22 .viewer-fullscreen::before,
23 .viewer-fullscreen-exit::before,
24 .viewer-close::before {
25 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC');
26 background-repeat: no-repeat;
27 color: transparent;
28 display: block;
29 font-size: 0;
30 height: 20px;
31 line-height: 0;
32 width: 20px;
33 }
34
35 .viewer-zoom-in::before {
36 background-position: 0 0;
37 content: 'Zoom In';
38 }
39
40 .viewer-zoom-out::before {
41 background-position: -20px 0;
42 content: 'Zoom Out';
43 }
44
45 .viewer-one-to-one::before {
46 background-position: -40px 0;
47 content: 'One to One';
48 }
49
50 .viewer-reset::before {
51 background-position: -60px 0;
52 content: 'Reset';
53 }
54
55 .viewer-prev::before {
56 background-position: -80px 0;
57 content: 'Previous';
58 }
59
60 .viewer-play::before {
61 background-position: -100px 0;
62 content: 'Play';
63 }
64
65 .viewer-next::before {
66 background-position: -120px 0;
67 content: 'Next';
68 }
69
70 .viewer-rotate-left::before {
71 background-position: -140px 0;
72 content: 'Rotate Left';
73 }
74
75 .viewer-rotate-right::before {
76 background-position: -160px 0;
77 content: 'Rotate Right';
78 }
79
80 .viewer-flip-horizontal::before {
81 background-position: -180px 0;
82 content: 'Flip Horizontal';
83 }
84
85 .viewer-flip-vertical::before {
86 background-position: -200px 0;
87 content: 'Flip Vertical';
88 }
89
90 .viewer-fullscreen::before {
91 background-position: -220px 0;
92 content: 'Enter Full Screen';
93 }
94
95 .viewer-fullscreen-exit::before {
96 background-position: -240px 0;
97 content: 'Exit Full Screen';
98 }
99
100 .viewer-close::before {
101 background-position: -260px 0;
102 content: 'Close';
103 }
104
105 .viewer-container {
106 background-color: rgba(200, 200, 200, 0.2);;
107 bottom: 0;
108 direction: ltr;
109 font-size: 0;
110 left: 0;
111 line-height: 0;
112 overflow: hidden;
113 position: absolute;
114 right: 0;
115 -webkit-tap-highlight-color: transparent;
116 top: 0;
117 -webkit-touch-callout: none;
118 -ms-touch-action: none;
119 touch-action: none;
120 -webkit-user-select: none;
121 -moz-user-select: none;
122 -ms-user-select: none;
123 user-select: none;
124 }
125
126 .viewer-container::-moz-selection,
127 .viewer-container *::-moz-selection {
128 background-color: transparent;
129 }
130
131 .viewer-container::selection,
132 .viewer-container *::selection {
133 background-color: transparent;
134 }
135
136 .viewer-container img {
137 display: block;
138 height: auto;
139 max-height: none !important;
140 max-width: none !important;
141 min-height: 0 !important;
142 min-width: 0 !important;
143 width: 100%;
144 }
145
146 .viewer-canvas {
147 bottom: 0;
148 left: 0;
149 overflow: hidden;
150 position: absolute;
151 right: 0;
152 top: 0;
153 }
154
155 .viewer-canvas > img {
156 height: auto;
157 margin: 15px auto;
158 max-width: 90% !important;
159 width: auto;
160 }
161
162 .viewer-footer {
163 bottom: 0;
164 left: 0;
165 overflow: hidden;
166 position: absolute;
167 right: 0;
168 text-align: center;
169 }
170
171 .viewer-navbar {
172 background-color: rgba(0, 0, 0, .5);
173 overflow: hidden;
174 }
175
176 .viewer-list {
177 -webkit-box-sizing: content-box;
178 box-sizing: content-box;
179 height: 50px;
180 margin: 0;
181 overflow: hidden;
182 padding: 1px 0;
183 }
184
185 .viewer-list > li {
186 color: transparent;
187 cursor: pointer;
188 float: left;
189 font-size: 0;
190 height: 50px;
191 line-height: 0;
192 opacity: .5;
193 overflow: hidden;
194 width: 30px;
195 }
196
197 .viewer-list > li + li {
198 margin-left: 1px;
199 }
200
201 .viewer-list > .viewer-active {
202 opacity: 1;
203 }
204
205 .viewer-player {
206 background-color: #000;
207 bottom: 0;
208 cursor: none;
209 display: none;
210 left: 0;
211 position: absolute;
212 right: 0;
213 top: 0;
214 }
215
216 .viewer-player > img {
217 left: 0;
218 position: absolute;
219 top: 0;
220 }
221
222 .viewer-toolbar {
223 margin: 0 auto 5px;
224 overflow: hidden;
225 padding: 3px 0;
226 width: 280px;
227 }
228
229 .viewer-toolbar > li {
230 background-color: rgba(0, 0, 0, .5);
231 border-radius: 50%;
232 cursor: pointer;
233 float: left;
234 height: 24px;
235 overflow: hidden;
236 width: 24px;
237 }
238
239 .viewer-toolbar > li:hover {
240 background-color: rgba(0, 0, 0, .8);
241 }
242
243 .viewer-toolbar > li::before {
244 margin: 2px;
245 }
246
247 .viewer-toolbar > li + li {
248 margin-left: 1px;
249 }
250
251 .viewer-toolbar > .viewer-play {
252 height: 30px;
253 margin-bottom: -3px;
254 margin-top: -3px;
255 width: 30px;
256 }
257
258 .viewer-toolbar > .viewer-play::before {
259 margin: 5px;
260 }
261
262 .viewer-tooltip {
263 background-color: rgba(0, 0, 0, .8);
264 border-radius: 10px;
265 color: #fff;
266 display: none;
267 font-size: 12px;
268 height: 20px;
269 left: 50%;
270 line-height: 20px;
271 margin-left: -25px;
272 margin-top: -10px;
273 position: absolute;
274 text-align: center;
275 top: 50%;
276 width: 50px;
277 }
278
279 .viewer-title {
280 color: #ccc;
281 display: inline-block;
282 font-size: 12px;
283 line-height: 1;
284 margin: 0 5% 5px;
285 max-width: 90%;
286 opacity: .8;
287 overflow: hidden;
288 text-overflow: ellipsis;
289 white-space: nowrap;
290 }
291
292 .viewer-title:hover {
293 opacity: 1;
294 }
295
296 .viewer-button {
297 background-color: rgba(0, 0, 0, .5);
298 border-radius: 50%;
299 cursor: pointer;
300 height: 80px;
301 overflow: hidden;
302 position: absolute;
303 right: -40px;
304 top: -40px;
305 width: 80px;
306 }
307
308 .viewer-button::before {
309 bottom: 15px;
310 left: 15px;
311 position: absolute;
312 }
313
314 .viewer-fixed {
315 position: fixed;
316 }
317
318 .viewer-open {
319 overflow: hidden;
320 }
321
322 .viewer-show {
323 display: block;
324 }
325
326 .viewer-hide {
327 display: none;
328 }
329
330 .viewer-invisible {
331 visibility: hidden;
332 }
333
334 .viewer-move {
335 cursor: move;
336 cursor: -webkit-grab;
337 cursor: grab;
338 }
339
340 .viewer-fade {
341 opacity: 0;
342 }
343
344 .viewer-in {
345 opacity: 1;
346 }
347
348 .viewer-transition {
349 -webkit-transition: all .3s;
350 transition: all .3s;
351 }
352
353 @media (max-width: 767px) {
354 .viewer-hide-xs-down {
355 display: none;
356 }
357 }
358
359 @media (max-width: 991px) {
360 .viewer-hide-sm-down {
361 display: none;
362 }
363 }
364
365 @media (max-width: 1199px) {
366 .viewer-hide-md-down {
367 display: none;
368 }
369 }
1 var pagging={
2 'config':{},
3 'modifyPagging':function(totalre, totalpa,currentPage){
4 if(totalpa<2){
5 $('#xiangbudao').remove();
6 $('.pagination').empty();
7 }else{
8 $('#xiangbudao').remove();
9 $('.nav-page').append('<span id="xiangbudao" style="position:relative;top:-3px;">第<input id="targetPage" type="text" style="width:40px;height:30px;margin-left:4px;margin-right: 4px;border-radius: 4px;border: 1px solid rgba(0,0,0,.2);">页\
10 <button onclick="pagging.goToPage('+totalpa+')" class="btn btn-default" type="button">确定</button></span>');
11 }
12 if(currentPage==1){
13 $('.nav-page a[aria-label="Previous"]')
14 .removeAttr('onclick')
15 .css({'background-color':'#e6e6e6','border-color':'#adadad','color':'#333','cursor':'default'});
16 }
17 if(currentPage==totalpa){
18 $('.nav-page a[aria-label="Next"]')
19 .removeAttr('onclick')
20 .css({'background-color':'#e6e6e6','border-color':'#adadad','color':'#333','cursor':'default'});
21 }
22 if(totalpa>5){
23 if(currentPage>3){
24 if(currentPage==4){
25 $('.nav-page .pagination li').first().next().empty().append('<a onclick="pagging.goToPage('+totalpa+',1)">1</a>');
26 }else{
27 $('.nav-page .pagination li').first().next().empty().append('<a onclick="pagging.goToPage('+totalpa+',1)">1</a>');
28 $('.nav-page .pagination li').first().next().after('<li><a href="javascript:void(0);">...</a></li>');
29 }
30 }
31 if(currentPage<(totalpa-2)){
32 $('.nav-page .pagination li').last().before('<li><a href="javascript:void(0);">...</a></li>');
33 }
34 }
35 },
36 'goToPage':function(totalpa,targetPage){
37 if(!targetPage){
38 targetPage=parseInt($('#targetPage').val());
39 }
40 if(isNaN(targetPage)){
41 layer.msg("目标页不是有效数字!");
42 }else{
43 if(targetPage>totalpa||targetPage<1){
44 layer.msg("目标页超出页码范围!");
45 }else if(pagging.config.list){
46 pagging.config.list(targetPage)
47 }
48 }
49 }
50 }
51
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This file is too large to display.
No preview for this file type