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.

# 西安市一张图实施监督信息系统前端
\ No newline at end of file
div .div-attachment-name {
width:255px;
white-space:nowrap;
text-overflow:ellipsis;
-o-text-overflow:ellipsis;
overflow: hidden;
}
div .div-attachment-name1 {
width:50px;
white-space:nowrap;
text-overflow:ellipsis;
-o-text-overflow:ellipsis;
overflow: hidden;
}
.div-attachment-size1 {
color:#acacac;
font-size:12px;
margin-right:10px;
width:100px;
white-space:nowrap;
text-overflow:ellipsis;
-o-text-overflow:ellipsis;
overflow: hidden;
}
.div-attachment {
/*margin-right:40px;*/
/* border:1px solid #dadada; */
/* border-radius:2px; */
}
.div-attachment-son {
width: 500px;
height: 390px;
overflow: auto;
}
.div-attachment-item {
/*padding: 0px 0px 10px 39px;*/
padding: 0;
clear:both;
display:block;
cursor:pointer;
height:45px;
position: relative;
}
.div-attachment-item:hover {
background-color:#f2f6fc;
color:#009dda;
}
.div-attachment-item img {
width:32px;
float:left;
margin-top:4px;
}
.div-attachment-file{
float:left;
margin-left:8px;
}
.div-attachment-control {
line-height:44px;
float:right;
display:none;
cursor:pointer;
position: absolute;
right: 5px;
}
.div-attachment-control span {
margin-right:10px;
margin-top:10px;
color:#58bdf7;
}
.div-attachment-control span:hover {
color:#009dda;
}
.div-attachment1 {
/*display:block;*/
width:auto;
cursor: pointer;
}
.div-attachment-name1 {
/*display:block;*/
cursor: pointer;
}
.div-attachment-size {
color:#acacac;
font-size:12px;
margin-right:10px;
}
.div-title button {
float:right;
}
.div-attachment-divpath {
margin: 0 !important;
}
.div-attachment-divpath .glyphicon{
color:#acacac;
margin-right:4px;
font-size:12px;
margin-right:6px;
}
.div-attachment-path label {
line-height:30px;
height:30px;
margin-right:4px;
}
.div-attachment-path .link {
cursor:pointer;
color:#3ca6e3;
}.div-attachment-path .link:hover {
color:#1386c9;
text-decoration:underline;
}
.div-attachment-divpath div {
height:30px;
line-height:30px;
padding-left:0px !important;
padding: 0 0 0 2px;
}
.div-attachment-path-history .glyphicon{
font-size:14px;
cursor:pointer;
margin-top:3px;
}
.div-attachment-path-history .glyphicon:hover {
color:#009dda;
}
.div-no-attachment{
padding:40px 0;
width: 359px;
text-align: center;
border: 1px solid #dadada;
/* border-left: 1px solid #dadada; */
/* border-right: 1px solid #dadada; */
}
.div-no-attachment a{
color:#009dda;
text-decoration: underline;
margin:0 10px;
}
.div-attachment-hint{
margin-top: 2px;
font-size: 16px;
color: #009dda;
margin-bottom: 2px;
}
ul{
list-style:none;
padding: 0px;
white-space:nowrap;
overflow:hidden;
text-overflow: ellipsis;
}
ul li
{
float:left;
}
a:hover{
cursor:pointer;
}
#sendTextarea{
margin-left:18px;
margin-top:10px;
border:1px solid #268de8;
resize:none;
}
#htyjTextarea{
width:565px;
height:150px;
margin-left:18px;
margin-top:10px;
border:1px solid #268de8;
resize:none;
}
#menu{
z-index: 110009;
overflow: hidden;
width: 210px;
height: auto;
position:absolute;
border-color: #ddd;
color: #444;
margin: 0;
padding: 2px;
font-size: 12px;
border-width: 1px;
border-style: solid;
background-color: #fafafa;
padding-top: 3px;
border-radius: 4px;
font-size: 16px;
font-weight: 500;
line-height: 1.6;
font-family: -apple-system-font,Helvetica Neue,sans-serif;
}
.attachmentHint{
margin-left: 40px;
color: red;
}
\ No newline at end of file
@CHARSET "UTF-8";
/*共公样式*/
* {
/* font-family: Arial, Verdana, Helvetica, sans-serif; */
/* font-family: "雅黑宋体", "微软雅黑", "新宋体", "宋体"; */
/* font-weight: 500; */
/* font-size:14px; */
}
/* html { overflow-x:hidden; } */
#nav{width:100%;z-index:999;position: fixed;}
.button-fix{margin-left:15px !important;padding:16px !important;background: white !important;}
.padd-top-150{padding-top:150px !important;}
.padd-top-80{padding-top:40px !important;}
.padd-top-88{padding-top:120px !important;}
.m-b-0{margin-bottom:0 !important;}
.btn-info[disabled]
{
cursor: inherit !important;
}
.glyphicon{
font-family:'Glyphicons Halflings'
}
body {
color:#555555;
margin:0;
padding:0;
}
label {
font-weight:500;
font-size: 16px;
}
.clearboth {
clear: both;
}
input[type="text"]:focus{
outline: none;
}
/*阴影*/
.shadow-z-1 {
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 6px 0 rgba(0, 0, 0, 0.12);
}
/*链接样式*/
a {
/* color:#555555; */
/* text-decoration:none; */
}
a:hover {
color:#1386c9;
}
/*字体颜色*/
.font-key {
cursor:pointer;
color:#e44545;
}
/*第三级页面头部和版权样式*/
.headbg {
top:0;
/* height:100px; */
/* height:55px; */
/* height:42px; !* hyh 修改 高度自适应*!*/
height:54px; /* yw 0616*/
/* background:url(../../image/index/headbg01.png) repeat-x #0894e5; */
/*background:url(../../image/index/title_bg3.png) no-repeat #0894e5; !* hyh 修改 将 repeat-x改为no-repeat2017、9、26 *!*/
background:url(../../image/index/title_bg_0616.png) no-repeat #0894e5; /* yw 0616 */
margin-bottom:16px;
/* background-color: #179bf0; *//*hyh 修改 将背景换成图片 2017、9、19*/
background-size: 100% 100%;/* hyh 新增 将背景图铺满 2017、9、26 */
}
/*查询头部*/
.seachheadbg {
top:0;
height:100px;
/* background:url(../images/index/headbg.png) repeat-x #0894e5; */
margin-bottom:1px;
background-color: #179bf0;
}
.headbg-logo {
/*background:url(../images/index/headbg-logo.png) no-repeat ;*/
/* height:100px; hyh 将100px改成55px*/
height:42px;
padding:0;
}
.head-logo {
float:left;
margin-top:22.5px;
margin-bottom:12px;
margin-left:12px;
}
.div-head-title{
float:left;
/* margin-top:31px;
margin-bottom:17px;
margin-left:13px; */
}
.div-copyright {
margin:0px 8px;
text-align: center;
font-size: 16px;
color: #a1a1a1;
background-color:white;
}
.copyright-margintop{
margin-top:280px;
}
.btn-search{
height: 32px;
}
#searchInput{
width: 370px;
height: 27px;
/*margin-top: 2px;*/
margin-left: 2px;
}
.div-search{
/* width: 280px; */
height: 30px;
/* margin-left: 10px; */
}
/*单选按钮样式*/
input[type='radio'] {
opacity:0;
display:inline-block;
height:16px;
}
input[type="radio"]+label {
background:url(../../image/officedocument/icon/radio_check.png) no-repeat;
height:16px;
line-height:16px;
padding-left:25px;
cursor: pointer;
}
input[type="radio"]:disabled+label{
cursor: auto;
background:url(../../image/officedocument/icon/radio_check_disabled.png) no-repeat;
}
input[type="radio"]:checked + label {
background:url(../../image/officedocument/icon/radio_checked.png) no-repeat;
}
input[type="radio"]:checked:disabled + label {
cursor: auto;
background:url(../../image/officedocument/icon/radio_checked_disabled.png) no-repeat;
}
/* .highlight{ */
/* color: red; */
/* } */
input::-webkit-input-placeholder { /* WebKit browsers */
/*font-style:italic;*/
color: rgb(204, 204, 204); /* hyh 谢文洲要求修改公文里面的未填写的颜色 2017/11/1 */
}
/*input内的提示内容颜色*/
.hoderclass::-webkit-input-placeholder {
color: #ccc;
}
#timeInterval{
color:#ffcc00;
font-size:50px;
}
.div-relate-document-attachment{
margin-top:10px;
/* border-bottom:1px solid #d3d3d5;*/
}
.div-relate-document-attachment label{
color: #337ab7;
}
.div-remind-legend{
cursor:pointer;
}
.div-remind-legend:HOVER {
/* background-color: #66d2fe; */
color: #1386c9;
}
.gw-list{
table-layout: fixed;
}
/*公文打印的时候超出内容添加滚动条*/
.gw-print{
overflow-y: scroll;
}
input[type=checkbox]{
/* zoom:150%; *//* hyh 注释,150的勾选框太大了 2017、9、13 */
}
.submenuitem {
width: 100%;
height: 50px;
line-height: 50px;
padding-left: 40px;
cursor: pointer;
font-size: 15px;
}
.submenuitem:hover {
color: #1998e1;
background-color: #cfe1fc;
}
.submenuitem img {
height: 32px;
margin-right: 16px;
}
.submenuitem-selected {
background-color: #d5e4fa;
}
/* hyh 新增 2017、9、8 图文一体化管理系统样式*/
.ghjbz{
float:left;
height:auto;
/* font-size: 30px; */
font-size: 24px;
color: white;
margin-left: 10px;
/* margin-top: 5px; */
margin-top: 10px;
}
/* hyh 新增 2017、9、8 图文一体化管理系统样式*/
.headbg-logo img{
margin-top: 5px;
/* height: 40px;
width: 40px; *//* hyh 因更换图标而注释掉 2017、9、19 */
}
#searchbtn img{
margin-top: 0px;
height: 19px;
width: 19px;
margin-left: 5px;
}
.documentFormDetail{
margin-left: 15px;
}
/* .layui-table-view .layui-table{
width: 100% !important;
} */
/* 文件tree*/
.dtree-container{
width: 380px;
}
.dtree-container .custom-tree-node{
width: 400px;
}
.treespan{
line-height: 30px;
}
.dtree-container>.dtree{
width: 100% !important;
}
.dtree-container>.dtree .dtree-nav-item {
float: none;
}
.top-icon::before{
content: '';
display: inline-block;
width: 14px ;
height: 13px ;
margin-right: 3px;
background: url('/frontweb/image/reviewmanage/icon_file_list.png') ;
background-size: cover;
}
.dtree-icon-weibiaoti5::before {
content: '';
display: inline-block;
width: 14px ;
height: 13px ;
margin-right: 3px;
background: url('/frontweb/image/reviewmanage/file_package.png') ;
background-size: cover;
}
.top-icon-bottom::before{
content: '';
display: inline-block;
width: 13px ;
height: 13px ;
margin-right: 3px;
background: url('/frontweb/image/reviewmanage/icon_page.png') ;
background-size: 100% 100%;
}
.dtree-zdy-item-this{background-color:rgba(24,144,255,0.10)!important;} /* 当前选中行样式*/
.dtree-zdy-item:hover{background-color:rgba(24,144,255,0.10)!important;} /* 行悬停样式*/
.dtree-zdy-item:hover cite{color:black} /* 行悬停文字样式*/
/*.over-hiddle-san {*/
/* display: -webkit-box; !** 将对象作为伸缩盒子模型显示 **!*/
/* -webkit-box-orient: vertical; !** 设置或检索伸缩盒对象的子元素的排列方式 **!*/
/* -webkit-line-clamp: 1; !** 显示的行数,显示高度设置成行高,多余部分隐藏 **!*/
/* overflow: hidden; !**超出部分隐藏 **!*/
/*}*/
.div-search {
border: 1px solid #0096eb;
border-right: none;
float: left;
}
.div-search img {
margin-left: 10px;
/* margin-top:10px; */
margin-right: 4px;
}
.div-search input[type="text"] {
border: none;
width: 475px;
height: 36px;
padding: 4px;
}
.search{
float: left;
margin-top: 5px;
}
.search input[type="text"] {
width: 200px;
height: 30px;
padding-left: 8px;
border: 1px solid #0096eb;
border-radius: 2px;
}
.search .btn-group>.btn:first-child{
border:1px solid #0096eb;
border-radius:2px;
width: 250px;
height: 30px;
}
.search .dropdown-menu open{
width: 200px;
}
.search input[type="text"]{
border:1px solid #0096eb;
width: 200px;
}
\ No newline at end of file
//附件操作
function addAttachmentEvent() {
$(".div-attachment-control").css("display","block");
$('.div-document-content-right div[name="removerbtn"]').attr("onclick","morelist()");
return;
// $(".div-attachment-item").mouseover(function () {
// $(this).find(".div-attachment-control").css("display","block");
// });
// $(".div-attachment-item").mouseleave(function (evt) {
// $(this).find(".div-attachment-control").css("display","none");
// });
// $('.div-document-content-right div[name="removerbtn"]').attr("onclick","morelist()");
}
function removerMouseover(){
$(".div-attachment-item").unbind("mouseover");
$('.div-document-content-right div[name="removerbtn"]').removeAttr("onclick");
$(".div-attachment-item").removeAttr("onclick");
$(".div-attachment-item .div-attachment-name").removeAttr("onclick");
}
\ No newline at end of file
(function($,contextPath){
window.authentication=true;
var logoutEvent=function(){
layer.open({
type:1,
title:false,
content:'\
<div style="padding:50px;width:100%;height:100%;">\
<p style="text-align:center;">\
<span class="glyphicon glyphicon-exclamation-sign" style="font-size:40px;color:gray;"></span>\
</p>\
<p style="text-align:center;margin-top:30px;">\
由于刚刚的操作,您的登录帐号已发生变化,请注意使用!\
</p>\
</div>',
area:['400px','250px'],
btn:'我知道了',
btnAlign:'c',
yes:function(index,layero){
window.location.assign(contextPath)
layer.close(index);
},
cancel: function(index){
window.location.assign(contextPath)
},
success: function(layero, index){
$(layero).find('.layui-layer-btn').css('text-align','center');
}
});
}
var connection=function(){
if(window.authentication===false)return;
var xmlhttp=new XMLHttpRequest();
xmlhttp.open('GET',contextPath+'/authentication?t=' + Math.random(),true);
xmlhttp.send();
xmlhttp.onreadystatechange=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
if(xmlhttp.responseText&&xmlhttp.responseText.indexOf('data:reconnection')!=-1){
connection();
}else{
window.authentication=false;
if(window._isOwner)return;
logoutEvent();
}
}
}
};
connection();
})(jQuery,_contextPath)
\ No newline at end of file
$(function(){
var autoHeight = 0;
var autoWidth = 0;
$('textarea').focus(function(){
autoHeight=$(this).prop("scrollHeight");
autoWidth=$(this).width();
});
$('textarea').bind('input propertychange', function() {
$(this).after('<textarea class="autoHeight" style="height:'+autoHeight+'px;width:'+autoWidth+'px;visibility:hidden;"></textarea>');
$('.autoHeight').val($(this).val());
if($(this).next().attr('class') == "autoHeight"){
$(".autoHeight").not(":first").remove();
}
var height = $('.autoHeight').prop("scrollHeight");
$(this).css('height',height+'px');
});
});
\ No newline at end of file
today = new Date();
function initArray() {
this.length = initArray.arguments.length
for (var i = 0; i < this.length; i++)
this[i + 1] = initArray.arguments[i]
}
var d = new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
/*
function getFestival() {
month = today.getMonth();
date = today.getDate();
var festival = "";
if ((month == 0) && (date == 1)) { festival= "元旦";}
if ((month == 2) && (date == 12)) { festival = "植树节"; }
if ((month == 3) && (date == 5)) { festival = "清明节"; }
if ((month == 4) && (date == 1)) { festival = "劳动节"; }
if ((month == 4) && (date == 4)) { festival = "青年节"; }
if ((month == 5) && (date == 1)) { festival = "儿童节"; }
if ((month == 7) && (date == 1)) { festival = "建军节"; };
//if ((month == 7) && (date == 16)) { festival = "七夕情人节"; }
if ((month == 9) && (date == 1)) { festival = "国庆节"; }
if ((month == 11) && (date == 24)) { festival = "平安夜"; }
if ((month == 11) && (date == 25)) { festival = "圣诞节"; }
if (festival != "") {
return "(" + festival + ")";
}
return "";
}*/
/*农历部分*/
var CalendarData = new Array(100);
var madd = new Array(12);
//var tgString = "甲乙丙丁戊己庚辛壬癸";
//var dzString = "子丑寅卯辰巳午未申酉戌亥";
var numString = "一二三四五六七八九十";
var monString = "正二三四五六七八九十冬腊";
var weekString = "日一二三四五六";
//var sx = "鼠牛虎兔龙蛇马羊猴鸡狗猪";
var cYear, cMonth, cDay, TheDate;
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);
madd[0] = 0;
madd[1] = 31;
madd[2] = 59;
madd[3] = 90;
madd[4] = 120;
madd[5] = 151;
madd[6] = 181;
madd[7] = 212;
madd[8] = 243;
madd[9] = 273;
madd[10] = 304;
madd[11] = 334;
function GetBit(m, n) {
return (m >> n) & 1;
}
function e2c() {
TheDate = (arguments.length != 3) ? new Date() : new Date(arguments[0], arguments[1], arguments[2]);
var total, m, n, k;
var isEnd = false;
var tmp = TheDate.getYear();
if (tmp < 1900) {
tmp += 1900;
}
total = (tmp - 1921) * 365 + Math.floor((tmp - 1921) / 4) + madd[TheDate.getMonth()] + TheDate.getDate() - 38;
if (TheDate.getYear() % 4 == 0 && TheDate.getMonth() > 1) {
total++;
}
for (m = 0; ; m++) {
k = (CalendarData[m] < 0xfff) ? 11 : 12;
for (n = k; n >= 0; n--) {
if (total <= 29 + GetBit(CalendarData[m], n)) {
isEnd = true; break;
}
total = total - 29 - GetBit(CalendarData[m], n);
}
if (isEnd) break;
}
cYear = 1921 + m;
cMonth = k - n + 1;
cDay = total;
if (k == 12) {
if (cMonth == Math.floor(CalendarData[m] / 0x10000) + 1) {
cMonth = 1 - cMonth;
}
if (cMonth > Math.floor(CalendarData[m] / 0x10000) + 1) {
cMonth--;
}
}
}
function GetcDateString() {
var tmp = "";
//tmp += tgString.charAt((cYear - 4) % 10);
//tmp += dzString.charAt((cYear - 4) % 12);
//tmp += "(";
//tmp += sx.charAt((cYear - 4) % 12);
//tmp += ")年 ";
if (cMonth < 1) {
tmp += "(闰)";
tmp += monString.charAt(-cMonth - 1);
} else {
tmp += monString.charAt(cMonth - 1);
}
tmp += "月";
tmp += (cDay < 11) ? "初" : ((cDay < 20) ? "十" : ((cDay < 30) ? "廿" : "三十"));
if (cDay % 10 != 0 || cDay == 10) {
tmp += numString.charAt((cDay - 1) % 10);
}
return tmp;
}
function GetLunarDay(solarYear, solarMonth, solarDay) {
//solarYear = solarYear<1900?(1900+solarYear):solarYear;  
if (solarYear < 1921 || solarYear > 2020) {
return "";
} else {
solarMonth = (parseInt(solarMonth) > 0) ? (solarMonth - 1) : 11;
e2c(solarYear, solarMonth, solarDay);
return GetcDateString();
}
}
//var D = new Date();
//var yy = today.getFullYear();
//var mm = today.getMonth() + 1;
//var dd = today.getDate();
//var ww = today.getDay();
//var ss = parseInt(today.getTime() / 1000);
//if (yy < 100) yy = "19" + yy;
//function getLunarCalendar() {
// return GetLunarDay(yy, mm, dd);
//}
//function getSolarCalendar() {
// return yy + "年" + mm + "月" + dd + "日";
//}
//function getWeek() {
// return d[ww + 1];
//}
function getLunarCalendar(AddDayCount) {
var date = new Date();
date.setDate(date.getDate() + AddDayCount);
return GetLunarDay(date.getFullYear(), date.getMonth() + 1, date.getDate());
}
function getSolarCalendar(AddDayCount) {
var date = new Date();
date.setDate(date.getDate() + AddDayCount);
return date.getFullYear() + "年" + (date.getMonth() + 1) + "月" + date.getDate() + "日";
}
/**
* What day?
* @param AddDayCount
* @returns {String}
*/
function getWeekCalendar(AddDayCount) {
var weekDay = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
var date = new Date();
date.setDate(date.getDate() + AddDayCount);
return weekDay[date.getDay()];
}
function getWeek(AddDayCount) {
var date = new Date();
date.setDate(date.getDate() + AddDayCount);
return d[date.getDay() + 1];
}
\ No newline at end of file
function checktoken(){
var token = $.cookie('ftoken');
if(token==undefined){
checktokenFlag=false;//hyh 新增 用全局变量作为标识。
window.location.href = "login.jsp";
}
}
\ No newline at end of file
var dMCustomScrollbar=function(dw){
var wwidth=$(window).width();
if(wwidth>dw){
$('#bodyContent').width('100%');
}else{
$('#bodyContent').width(dw);
}
}
$(function(){
dMCustomScrollbar(1366);
$(window).resize(function(){
dMCustomScrollbar(1366);
});
});
\ No newline at end of file
Date.prototype.format = function(format){
var o = {
"M+" : this.getMonth()+1, //month
"d+" : this.getDate(), //day
"h+" : this.getHours(), //hour
"m+" : this.getMinutes(), //minute
"s+" : this.getSeconds(), //second
"q+" : Math.floor((this.getMonth()+3)/3), //quarter
"S" : this.getMilliseconds() //millisecond
}
if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(format)) format = format.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return format;
}
//初始化日期控件
function loadDate(id){
jeDate({
dateCell:"#"+id,
format:"YYYY-MM-DD ",
isinitVal:true,
isTime:true,
festival: true, //显示节日
isClear:true,
})
}
/*
* 改变字体大小 document.body.style.zoom = 1.50;
*/
function nomal() {
document.body.style.zoom = 1.0;
$("#fontBut").html("<span class='glyphicon glyphicon-font'></span>字体(正常) <span class='caret'></span>");
}
function middle() {
document.body.style.zoom = 1.25;
$("#fontBut").html("<span class='glyphicon glyphicon-font'></span>字体(中) <span class='caret'></span>");
}
function big() {
document.body.style.zoom = 1.5;
$("#fontBut").html("<span class='glyphicon glyphicon-font'></span>字体(大) <span class='caret'></span>");
}
function fontFunction(docType){
var fontStr = '<div class="btn-group">' +
'<button type="button" id="fontBut" class="btn btn-info dropdown-toggle" data-toggle="dropdown"> ' +
'字体(正常) <span class="caret"></span>' +
'</button>' +
'<ul id="fontSize" class="dropdown-menu" role="menu">' +
'<li><a href="javascript:void(0)" onclick="nomal()">正常</a></li>' +
'<li><a href="javascript:void(0)" onclick="middle()">中</a></li>' +
'<li><a href="javascript:void(0)" onclick="big()">大</a></li>' +
'</ul>' +
'</div>';
$("#button_load").append(fontStr);
}
/**
* JSUtil General JS scripting tools
*/
( function( window ) {
var noop=function(){};
var log=function(msg){
if ( window.console ) {
console.log(msg);
}
}
var recursion=function(items,options){
var config={
'isRoot':function(item){
return !item['parentId'];
},
'isChild':function(itemA,itemB){
return itemA['id']==itemB['parentId'];
},
'generateResult':function(item,children){
item['children']=children;
return item;
}
};
jQuery.extend(config, options);
var innerFN=function(item,items){
var children=[];
for(var i=0;i<items.length;i++){
if(config.isChild(item,items[i])){
var temp=innerFN(items[i],items);
if(temp){
children.push(temp);
}
}
}
return config.generateResult(item,children);
}
var results=[];
for(var i=0;i<items.length;i++){
if(config.isRoot(items[i])){
var result=innerFN(items[i],items);
if(result){
results.push(result);
}
}
}
return results;
}
var strfmt=function(str){
if(!str)return null;
for(var i=1;i<arguments.length;i++){
str = str.replace(new RegExp("\\{" + i + "\\}", "g"), arguments[i]);
}
return str;
}
var uuid=function(delSeparator) {
var s = [];
var hexDigits = "0123456789abcdef";
for (var i = 0; i < 36; i++) {
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
}
s[14] = "4";
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
if(delSeparator){
s[8] = s[13] = s[18] = s[23] = "";
}else{
s[8] = s[13] = s[18] = s[23] = "-";
}
var uuid = s.join("");
return uuid;
}
var formatSize=function( size, pointLength, units ) {
var unit;
units = units || [ 'B', 'K', 'M', 'G', 'TB' ];
while ( (unit = units.shift()) && size > 1024 ) {
size = size / 1024;
}
return (unit === 'B' ? size : size.toFixed( pointLength || 2 )) + unit;
}
var get=function(){
$.ajaxSetup({async:false})
$.get.apply(this,arguments);
$.ajaxSetup({async:true})
}
var post=function(){
$.ajaxSetup({async:false})
$.post.apply(this,arguments);
$.ajaxSetup({async:true})
}
var getJSON=function(){
$.ajaxSetup({async:false})
$.getJSON.apply(this,arguments);
$.ajaxSetup({async:true})
}
var JSUtil={
'noop':noop,
'log':log,
'recursion':recursion,
'strfmt':strfmt,
'uuid':uuid,
'formatSize':formatSize,
'get':get,
'post':post,
'getJSON':getJSON,
};
window.JSUtil = JSUtil;
} )( window );
\ No newline at end of file
var global = global || { basePath: '', contextPath: '' };
global.enums = global.enums || {};
global.enums = {
all: { id: 0, text: '所有' },
nolimit: { id: 0, text: '不限' },
yesno: [{ id: 1, name: 'true', text: '是' }, { id: 0, name: 'false', text: '否' }],
truefalse: [{ id: 'true', text: '是' }, { id: 'false', text: '否' }],
dictype: [{ id: 1, name: 'dic_1', text: '静态' }, { id: 2, name: 'dic_2', text: '动态' }],
sextype: [{ id: 1, name: 'sex_1', text: '保密' }, { id: 2, name: 'sex_2', text: '男' }, { id: 3, name: 'sex_3', text: '女' }],
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: '流程角色' }],
unittype: [{ id: 1, name: 'rtype_1', text: '局' }, { id: 2, name: 'rtype_2', text: '科室' }],
userfields: [{ name: 'loginname', text: '帐户' }, { name: 'realname', text: '真名' }, { name: 'nickname', text: '昵称' },{ name: 'wxname', text: '微信号' }, { name: 'mobile', text: '手机' }, { name: 'email', text: '邮箱' }],
processfields: [{ name: 'name', text: '名称' }, { name: 'alias', text: '别名' }]
};
global.prefixs = {
sextype: 'sex_',
roletype: 'rtype_',
unittype: 'utype_',
dictype: 'dic_'
};
global.enums.datatype = [
{ id: 1, name: 'integer', text: '整数' },
{ id: 2, name: 'string', text: '字符串' },
{ id: 3, name: 'decimal', text: '浮点' },
{ id: 4, name: 'clob', text: '大文本' },
{ id: 5, name: 'blob', text: '二进制' },
{ id: 6, name: 'boolean', text: '布尔' },
{ id: 7, name: 'long', text: '长整数' },
{ id: 8, name: 'date', text: '日期' }
];
global.enums.idtype = [
{ id: 1, name: 'common', text: '一般字段' },
{ id: 2, name: 'grow', text: '自增主键' },
{ id: 3, name: 'global', text: '全局主键' }
];
global.enums.formtype = [
{ id: 1, name: 'builtin', text: '内置' },
{ id: 2, name: 'classic', text: '经典' },
{ id: 3, name: 'custom', text: '自定义' }
];
global.enums.reporttype = [
/* { id: 1, name: 'raq', text: '润乾报表' },*/
{ id: 2, name: 'fine', text: '帆软报表' }
];
global.enums.apptemplatetype = [
{ id: 1, name: 'approve', text: '审批' },
];
global.enums.kvtreetype = [
{ id: 1, name: 'static', text: '静态' },
{ id: 2, name: 'dynamic', text: '动态' }
];
global.enums.restestrategy = [
{ id: 0, name: 'A', text: '永不重置' },
{ id: 1, name: 'Y', text: '按年重置' },
{ id: 2, name: 'M', text: '按月重置' },
{ id: 3, name: 'D', text: '按天重置' }
];
global.enums.numberAttributeType = [
{ id: 'T1', name: 'textStatic', text: '静态文本' },
{ id: 'T2', name: 'textKey', text: '参数文本' },
{ id: 'T3', name: 'textField', text: '属性文本' },
{ id: 'T4', name: 'textKeyDic', text: '参数字典文本' },
{ id: 'T5', name: 'textFieldDic', text: '属性字典文本' },
{ id: 'D1', name: 'dateSys', text: '系统日期' },
{ id: 'D2', name: 'dateKey', text: '参数日期' },
{ id: 'D3', name: 'dateField', text: '属性日期' },
{ id: 'N1', name: 'numberStatic', text: '静态计数器' },
{ id: 'N2', name: 'numberKey', text: '参数计数器' },
{ id: 'N3', name: 'numberField', text: '属性计数器' },
{ id: 'N4', name: 'numberKeyDic', text: '参数字典计数器' },
{ id: 'N5', name: 'numberFieldDic', text: '属性字典计数器' }
];
global.enums.sendType = {
SendDefault: 'SendDefault',
SActivitySUser: 'Send2SActivitySUser',
SActivityMUser: 'Send2SActivityMUser',
MActivitySUser: 'Send2MActivitySUser',
MActivityMUser: 'Send2MActivityMUser',
};
global.enums.openMode = {
normal: 'normal',
readonly: 'readonly',
manage: 'manage'
};
\ No newline at end of file
String.prototype.padLeft = function (padChar, width) {
var ret = this;
while (ret.length < width) {
if (ret.length + padChar.length < width) {
ret = padChar + ret;
}
else {
ret = padChar.substring(0, width - ret.length) + ret;
}
}
return ret;
};
String.prototype.padRight = function (padChar, width) {
var ret = this;
while (ret.length < width) {
if (ret.length + padChar.length < width) {
ret += padChar;
}
else {
ret += padChar.substring(0, width - ret.length);
}
}
return ret;
};
String.prototype.trim = function () {
return this.replace(/^\s+/, '').replace(/\s+$/, '');
};
String.prototype.trimLeft = function () {
return this.replace(/^\s+/, '');
};
String.prototype.trimRight = function () {
return this.replace(/\s+$/, '');
};
String.prototype.caption = function () {
if (this) {
return this.charAt(0).toUpperCase() + this.substr(1);
}
return this;
};
String.prototype.reverse = function () {
var ret = '';
for (var i = this.length - 1; i >= 0; i--) {
ret += this.charAt(i);
}
return ret;
};
String.prototype.startWith = function (compareValue, ignoreCase) {
if (ignoreCase) {
return this.toLowerCase().indexOf(compareValue.toLowerCase()) == 0;
}
return this.indexOf(compareValue) == 0
};
String.prototype.endWith = function (compareValue, ignoreCase) {
if (ignoreCase) {
return this.toLowerCase().lastIndexOf(compareValue.toLowerCase()) == this.length - compareValue.length;
}
return this.lastIndexOf(compareValue) == this.length - compareValue.length;
};
\ No newline at end of file
/**
* 20180304 yxt 添加本地缓存机制
*/
/*
* 定义一个缓存类
* modelctls URL
* param 参数
* result 结果
* */
function CacehKey(url,data,type,result)
{
this.url = url;
this.data = data;
this.type = type;
this.KeyString = function()
{
var keyString = JSON.stringify(this.url) + ";" + JSON.stringify(this.data) + ";" + JSON.stringify(this.type) ;
return keyString;
}
}
//系统级请求本地缓存
function GlobalLocalCache()
{
this.flag = true;
//添加缓存
this.AddCache = function(url,data,type,result)
{
if(!window.localStorage){
console.log("浏览器不支持localstorage");
return ;
}else{
var key = new CacehKey(url,data,type);
var keyString = key.KeyString();
var valueString = JSON.stringify(result);
if(this.flag){
keyString = encodeURI(keyString);
valueString = encodeURI(valueString);
}
window.localStorage.setItem(keyString,valueString);
}
}
//获取缓存
this.GetCacheResult = function (url,data,type,result)
{
if(!window.localStorage){
console.log("浏览器不支持localstorage");
result = null;
return null;
}else{
var key = new CacehKey(url,data,type);
var keyString = key.KeyString();
if(this.flag){
keyString = encodeURI(keyString);
}
var value = window.localStorage.getItem(keyString);
if(this.flag){
value = decodeURI(value);
}
result = JSON.parse(value);
return result;
}
}
//单个清除缓存
this.removeLocalCache = function(url,data,type,result)
{
if(!window.localStorage){
console.log("浏览器不支持localstorage");
return ;
}else{
var key = new CacehKey(url,data,type);
var keyString = key.KeyString();
if(this.flag){
keyString = encodeURI(keyString);
}
window.localStorage.removeItem(keyString);
}
}
//清理缓存
this.clearLocalCache = function ()
{
if(!window.localStorage){
console.log("浏览器不支持localstorage");
}else{
window.localStorage.clear();
}
}
//检查缓存版本
this.checkCacheVersion=function()
{
var pdata = {name : "后台配置版本"};
var localCache = this;
var curVersion = this.GetCacheResult(CONF_BACK_SERVERURL + global.modelctls.kvtree.all,
pdata,"");
$.ajax({
type : "POST",
url : CONF_BACK_SERVERURL + global.modelctls.kvtree.all,
headers : {
"token" : $.cookie('ftoken')
},
dataType : "json",
async : true,
data : pdata,
success : function(data) {
var curVersionStr = JSON.stringify(curVersion);
var dataStr = JSON.stringify(data);
if(dataStr != curVersionStr)
{
localCache.clearLocalCache();
localCache.AddCache(CONF_BACK_SERVERURL + global.modelctls.kvtree.all,
pdata,"",data);
}
},
error : function(data, textStatus, errorThrown) {
}
});
}
}
var globalLocalCache = null;
$(function(){
globalLocalCache = new GlobalLocalCache();
});
global.msg = global.msg || {};
global.msg.processing = '正在处理,请稍后...';
global.msg.httpfail = 'Http请求失败';
\ No newline at end of file
function socketconnect(userid){
var socket = io.connect(SOCKETIOSERVER+"?userid="+userid);
socket.on('connect', function (data) {
console.log("开启socket连接");
});
socket.on('disconnect', function (data) {
console.log("断开socket连接");
});
socket.on('connect_error', function (data) {
console.log("socket连接出错");
});
socket.on('connect_timeout', function (data) {
console.log("socket连接超时");
});
socket.on('event_browser_client', function (data) {
showJumpMessage(data);
});
}
var index = 0;
$(document).ready(function(){
var urlname=getQueryString("url");
NProgress.configure({ showSpinner: false });//禁止进度环
NProgress.start();
var imghtml = "";
var title = $('#titele').val();
var Arrsrc = parent.imgArrSrc;
if(Arrsrc==null){
Arrsrc = window.opener.imgArrSrc;
}
if(Arrsrc==undefined){
imghtml = "<img src='"+encodeURI(urlname).replace(/\#/g,'%23').replace(/\;/g,'%3b')+"' alt='"+title+"' hidden=\"hidden\">"
}else{
for(var i=0;i<Arrsrc.length;i++){
imghtml +="<img src='"+CONF_DOC_FILEADDRESURL+encodeURI(Arrsrc[i].path).replace(/\#/g,'%23').replace(/\;/g,'%3b')+"' alt='"+decodeURI(Arrsrc[i].name)+"' hidden=\"hidden\">"
if(urlname==CONF_DOC_FILEADDRESURL+Arrsrc[i].path){index =i};
}
}
$('#viewerid').append(imghtml);
});
$(window).load(function() {
setTimeout(function(){NProgress.done()}, 1000);
$.fn.viewer.setDet();
$('#viewerid').viewer();
$('#viewerid').children("img:eq("+index+")").click();
});
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURIComponent(r[2]); return null;
}
\ No newline at end of file
<%@ page isELIgnored="false" language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
/* String url = java.net.URLDecoder.decode(request.getParameter("url"), "UTF-8");
String title = "";
if(url!=""){
title = url.substring(url.lastIndexOf("/")+1);
} */
%>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title id="titleImgName"></title>
<link href="viewer.css" rel="stylesheet" />
<link href="../../../libs/nprogress/nprogress.css" rel="stylesheet" />
<script src="jquery-1.11.1.min.js"></script>
<script src="../../../common/js/config.js"></script>
<script type="text/javascript" src="../../../libs/nprogress/nprogress.js"></script>
<script src="viewer.js"></script>
<style type="text/css">
#nprogress .bar {
background:#87CEFA;
position: fixed;
z-index: 1031;
top: 0;
left: 0;
width: 100%;
height: 4px;
}
</style>
</head>
<body>
<%-- <input id="urlname" type="text" value="<%=url%>" hidden="hidden">
<input id="titele" type="text" value="<%=title%>" hidden="hidden"> --%>
<div id="viewerid">
<%-- <img src="<%=url%>" alt="<%=title%>" hidden="hidden"> --%>
</div>
</body>
<script type="text/javascript" src="openjpg.js">
</script>
</html>
/*!
* Viewer v0.6.0
* https://github.com/fengyuanchen/viewer
*
* Copyright (c) 2014-2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-10-07T09:53:32.834Z
*/
.viewer-zoom-in::before,
.viewer-zoom-out::before,
.viewer-one-to-one::before,
.viewer-reset::before,
.viewer-prev::before,
.viewer-play::before,
.viewer-next::before,
.viewer-rotate-left::before,
.viewer-rotate-right::before,
.viewer-flip-horizontal::before,
.viewer-flip-vertical::before,
.viewer-fullscreen::before,
.viewer-fullscreen-exit::before,
.viewer-close::before {
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');
background-repeat: no-repeat;
color: transparent;
display: block;
font-size: 0;
height: 20px;
line-height: 0;
width: 20px;
}
.viewer-zoom-in::before {
background-position: 0 0;
content: 'Zoom In';
}
.viewer-zoom-out::before {
background-position: -20px 0;
content: 'Zoom Out';
}
.viewer-one-to-one::before {
background-position: -40px 0;
content: 'One to One';
}
.viewer-reset::before {
background-position: -60px 0;
content: 'Reset';
}
.viewer-prev::before {
background-position: -80px 0;
content: 'Previous';
}
.viewer-play::before {
background-position: -100px 0;
content: 'Play';
}
.viewer-next::before {
background-position: -120px 0;
content: 'Next';
}
.viewer-rotate-left::before {
background-position: -140px 0;
content: 'Rotate Left';
}
.viewer-rotate-right::before {
background-position: -160px 0;
content: 'Rotate Right';
}
.viewer-flip-horizontal::before {
background-position: -180px 0;
content: 'Flip Horizontal';
}
.viewer-flip-vertical::before {
background-position: -200px 0;
content: 'Flip Vertical';
}
.viewer-fullscreen::before {
background-position: -220px 0;
content: 'Enter Full Screen';
}
.viewer-fullscreen-exit::before {
background-position: -240px 0;
content: 'Exit Full Screen';
}
.viewer-close::before {
background-position: -260px 0;
content: 'Close';
}
.viewer-container {
background-color: rgba(200, 200, 200, 0.2);;
bottom: 0;
direction: ltr;
font-size: 0;
left: 0;
line-height: 0;
overflow: hidden;
position: absolute;
right: 0;
-webkit-tap-highlight-color: transparent;
top: 0;
-webkit-touch-callout: none;
-ms-touch-action: none;
touch-action: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.viewer-container::-moz-selection,
.viewer-container *::-moz-selection {
background-color: transparent;
}
.viewer-container::selection,
.viewer-container *::selection {
background-color: transparent;
}
.viewer-container img {
display: block;
height: auto;
max-height: none !important;
max-width: none !important;
min-height: 0 !important;
min-width: 0 !important;
width: 100%;
}
.viewer-canvas {
bottom: 0;
left: 0;
overflow: hidden;
position: absolute;
right: 0;
top: 0;
}
.viewer-canvas > img {
height: auto;
margin: 15px auto;
max-width: 90% !important;
width: auto;
}
.viewer-footer {
bottom: 0;
left: 0;
overflow: hidden;
position: absolute;
right: 0;
text-align: center;
}
.viewer-navbar {
background-color: rgba(0, 0, 0, .5);
overflow: hidden;
}
.viewer-list {
-webkit-box-sizing: content-box;
box-sizing: content-box;
height: 50px;
margin: 0;
overflow: hidden;
padding: 1px 0;
}
.viewer-list > li {
color: transparent;
cursor: pointer;
float: left;
font-size: 0;
height: 50px;
line-height: 0;
opacity: .5;
overflow: hidden;
width: 30px;
}
.viewer-list > li + li {
margin-left: 1px;
}
.viewer-list > .viewer-active {
opacity: 1;
}
.viewer-player {
background-color: #000;
bottom: 0;
cursor: none;
display: none;
left: 0;
position: absolute;
right: 0;
top: 0;
}
.viewer-player > img {
left: 0;
position: absolute;
top: 0;
}
.viewer-toolbar {
margin: 0 auto 5px;
overflow: hidden;
padding: 3px 0;
width: 280px;
}
.viewer-toolbar > li {
background-color: rgba(0, 0, 0, .5);
border-radius: 50%;
cursor: pointer;
float: left;
height: 24px;
overflow: hidden;
width: 24px;
}
.viewer-toolbar > li:hover {
background-color: rgba(0, 0, 0, .8);
}
.viewer-toolbar > li::before {
margin: 2px;
}
.viewer-toolbar > li + li {
margin-left: 1px;
}
.viewer-toolbar > .viewer-play {
height: 30px;
margin-bottom: -3px;
margin-top: -3px;
width: 30px;
}
.viewer-toolbar > .viewer-play::before {
margin: 5px;
}
.viewer-tooltip {
background-color: rgba(0, 0, 0, .8);
border-radius: 10px;
color: #fff;
display: none;
font-size: 12px;
height: 20px;
left: 50%;
line-height: 20px;
margin-left: -25px;
margin-top: -10px;
position: absolute;
text-align: center;
top: 50%;
width: 50px;
}
.viewer-title {
color: #ccc;
display: inline-block;
font-size: 12px;
line-height: 1;
margin: 0 5% 5px;
max-width: 90%;
opacity: .8;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.viewer-title:hover {
opacity: 1;
}
.viewer-button {
background-color: rgba(0, 0, 0, .5);
border-radius: 50%;
cursor: pointer;
height: 80px;
overflow: hidden;
position: absolute;
right: -40px;
top: -40px;
width: 80px;
}
.viewer-button::before {
bottom: 15px;
left: 15px;
position: absolute;
}
.viewer-fixed {
position: fixed;
}
.viewer-open {
overflow: hidden;
}
.viewer-show {
display: block;
}
.viewer-hide {
display: none;
}
.viewer-invisible {
visibility: hidden;
}
.viewer-move {
cursor: move;
cursor: -webkit-grab;
cursor: grab;
}
.viewer-fade {
opacity: 0;
}
.viewer-in {
opacity: 1;
}
.viewer-transition {
-webkit-transition: all .3s;
transition: all .3s;
}
@media (max-width: 767px) {
.viewer-hide-xs-down {
display: none;
}
}
@media (max-width: 991px) {
.viewer-hide-sm-down {
display: none;
}
}
@media (max-width: 1199px) {
.viewer-hide-md-down {
display: none;
}
}
var pagging={
'config':{},
'modifyPagging':function(totalre, totalpa,currentPage){
if(totalpa<2){
$('#xiangbudao').remove();
$('.pagination').empty();
}else{
$('#xiangbudao').remove();
$('.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);">页\
<button onclick="pagging.goToPage('+totalpa+')" class="btn btn-default" type="button">确定</button></span>');
}
if(currentPage==1){
$('.nav-page a[aria-label="Previous"]')
.removeAttr('onclick')
.css({'background-color':'#e6e6e6','border-color':'#adadad','color':'#333','cursor':'default'});
}
if(currentPage==totalpa){
$('.nav-page a[aria-label="Next"]')
.removeAttr('onclick')
.css({'background-color':'#e6e6e6','border-color':'#adadad','color':'#333','cursor':'default'});
}
if(totalpa>5){
if(currentPage>3){
if(currentPage==4){
$('.nav-page .pagination li').first().next().empty().append('<a onclick="pagging.goToPage('+totalpa+',1)">1</a>');
}else{
$('.nav-page .pagination li').first().next().empty().append('<a onclick="pagging.goToPage('+totalpa+',1)">1</a>');
$('.nav-page .pagination li').first().next().after('<li><a href="javascript:void(0);">...</a></li>');
}
}
if(currentPage<(totalpa-2)){
$('.nav-page .pagination li').last().before('<li><a href="javascript:void(0);">...</a></li>');
}
}
},
'goToPage':function(totalpa,targetPage){
if(!targetPage){
targetPage=parseInt($('#targetPage').val());
}
if(isNaN(targetPage)){
layer.msg("目标页不是有效数字!");
}else{
if(targetPage>totalpa||targetPage<1){
layer.msg("目标页超出页码范围!");
}else if(pagging.config.list){
pagging.config.list(targetPage)
}
}
}
}
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