| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413 | <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><title>湖北智慧水运</title><link href="../css/mui.min.css" rel="stylesheet"><link href="../css/base.min.css" rel="stylesheet">		   <link rel="stylesheet" type="text/css" href="../css/shenpi.css" /><script type="text/javascript" src="../js/zepto.min.js"></script><script type="text/javascript" src="../js/iscroll.js" charset="utf-8"></script><script type="text/javascript">var page_no =0; var page_count =10; function aaa(){		$.ajax({	         type: 'post',	         url: '../../whsqbpcontroller/getZysqbpPageListByJyr.do',	         data:{page_no:page_no,page_count:page_count,code:getQueryString("code")},	         dataType: 'json',	         success: function(data){	        	 console.log(data) 	        	 if(data.length==0)	        	 {	        		 layer.open({		      			    shade:false,		 					    content: '没有相关数据',		 					    style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',		 					    time:1		 					});	        		 $('.lists').html('');	        		 return;	        	 }	        	 	        	 for(var i=0;i<data.length;i++){	        		 	        		 var aa = data[i];	        		 var color = "";	        		 var json = {	        				 "1":"(未提交)",	        				 "4":"",	        				 "9":"",	        				 "2":"(已完成)",	        				 "3":"(审核中)",	        				 "8":"(已作废)",	        				 "5":"(取消作业)",	        				 "6":"(取消完成)",	        				 "7":"(变更作业)",	        				 "10":"(变更已完成)"	        		 }	        		 	        		 var jsoncolor = {"3":"red","5":"red","7":"red",}	        		 	        		 	        		 var kwcolor ="";	        		 if((data[i].recordStatus=="2"||data[i].recordStatus=="10")&&!(data[i].kgzt=="Y"&&data[i].wgzt=="Y")){	        			 	        			 kwcolor="blue";	        		 }       		 	        		 	        		 $(".lists").append('<tr class="'+jsoncolor[data[i].recordStatus]+' '+kwcolor+'" value="'+data[i].id+'" onclick="tiaohzuan('+data[i].id+')" ><td class="titlered2" >'+datetoyue(data[i].bgsj)+','+data[i].wxhwmcbh+'('+data[i].cm+')('+data[i].zydw.aqbmfzr+')'+json[data[i].recordStatus]+'</td></tr>');	        	 }	        	 	        	 	        	  if(data.length>=page_count){	         			 showJZ();	         			}else{	         			 hideJZ();	         			}	        	 	        	  myScroll.refresh();	         }})	}$(function(){			$("#wanchengyijian").live("click",function(){						location.href="whzysbtx.html"; 					})		$("#chaxun").live("click",function(){						location.href="whzycx.html"; 					})		 										$.ajax({         type: 'post',         url: '../../aqusercontroller/getByCode.do',         data:{count:"10",code:getQueryString("code")},         dataType: 'json',         success: function(data){        	         	         	if(data.sfjyr=="Y"){        		$("#jingyingren").show()        	}else if(data.sfjyr=="N"){        		$("#xingzhengren").show()        	}         }});				aaa();                                    $(".tiaozhuan").live("click",function(){        	 var value = $(this).attr("value");        	 location.href = "dcttl3.html?value="+value;         })	})	 function tiaohzuan(value){			location.href = "dcttl3.html?value="+value;	}var     myScroll,pullDownEl, pullDownOffset,pullUpEl, pullUpOffset,generatedCount = 0;/*** 下拉刷新 (自定义实现此方法)* myScroll.refresh(); 数据加载完成后,调用界面更新方法*/function pullDownAction () {	 hideJZ();	$(".lists").html("");	page_no=0;	aaa();}/*** 滚动翻页 (自定义实现此方法)* myScroll.refresh();      // 数据加载完成后,调用界面更新方法*/function pullUpAction () {	page_no+=1;	aaa();}/*** 初始化iScroll控件*/function loaded() {pullDownEl = document.getElementById('pullDown');pullDownOffset = pullDownEl.offsetHeight;pullUpEl = document.getElementById('pullUp');  pullUpOffset = pullUpEl.offsetHeight; myScroll = new iScroll('wrapper', {    scrollbarClass: 'myScrollbar',    useTransition: false,    topOffset: pullDownOffset,    onRefresh: function () {        if (pullDownEl.className.match('loading')) {            pullDownEl.className = '';            pullDownEl.querySelector('.pullDownLabel').innerHTML = '下拉刷新...';        } else if (pullUpEl.className.match('loading')) {            pullUpEl.className = '';            pullUpEl.querySelector('.pullUpLabel').innerHTML = '上拉加载更多...';        }    },    onScrollMove: function () {        if (this.y > 5 && !pullDownEl.className.match('flip')) {            pullDownEl.className = 'flip';            pullDownEl.querySelector('.pullDownLabel').innerHTML = '松手开始更新...';            this.minScrollY = 0;        } else if (this.y < 5 && pullDownEl.className.match('flip')) {            pullDownEl.className = '';            pullDownEl.querySelector('.pullDownLabel').innerHTML = '下拉刷新...';            this.minScrollY = -pullDownOffset;        } else if (this.y < (this.maxScrollY - 5) && !pullUpEl.className.match('flip')) {            pullUpEl.className = 'flip';            pullUpEl.querySelector('.pullUpLabel').innerHTML = '松手开始更新...';            this.maxScrollY = this.maxScrollY;        } else if (this.y > (this.maxScrollY + 5) && pullUpEl.className.match('flip')) {            pullUpEl.className = '';            pullUpEl.querySelector('.pullUpLabel').innerHTML = '上拉加载更多...';            this.maxScrollY = pullUpOffset;        }    },    onScrollEnd: function () {        if (pullDownEl.className.match('flip')) {            pullDownEl.className = 'loading';            pullDownEl.querySelector('.pullDownLabel').innerHTML = '加载中...';                           pullDownAction();   // ajax call        } else if (pullUpEl.className.match('flip')) {            pullUpEl.className = 'loading';            pullUpEl.querySelector('.pullUpLabel').innerHTML = '加载中...';                           pullUpAction(); // ajax call        }    }}); setTimeout(function () { document.getElementById('wrapper').style.left = '0'; }, 800);}//初始化绑定iScroll控件document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);document.addEventListener('DOMContentLoaded', loaded, false);</script><style type="text/css" media="all">#header {	position:absolute; z-index:2;	top:0; left:0;	width:100%;	height:45px;	line-height:45px;	padding:0;	color:#eee;	font-size:22px;	text-align:center;	  color:white;    background: #2196f3;}#header a {	color:white;	text-decoration:none;}#wrapper {	position:absolute; z-index:1;	top:30px; bottom:0px; left:-9999px;	width:100%;	overflow:auto;}.sousuotiaojian{	position: absolute;	left:0px;	margin:0px;	top:45px;    height:48px;    line-height:48px;    text-align: center    ;padding-left: 5px;    padding-right: 5px;    position: relative;    border: 1px solid gray;    border-radius:5px;}#scroller {	position:absolute; z-index:1;/*	-webkit-touch-callout:none;*/	-webkit-tap-highlight-color:rgba(0,0,0,0);	width:100%;	padding:0;}#myFrame {	position:absolute;	top:0; left:0;}/** * * Pull down styles * */#pullDown, #pullUp {	background:#fff;	height:45px;	line-height:45px;	font-weight:bold;	font-size:14px;	color:#888;	padding-left: 50%;	margin-left:-54.5px;}#pullDown .pullDownIcon, #pullUp .pullUpIcon  {	display:block; float:left;	width:40px; height:40px;	background:url(../images/pull-icon@2x.png) 0 0 no-repeat;	-webkit-background-size:40px 80px; background-size:40px 80px;	-webkit-transition-property:-webkit-transform;	-webkit-transition-duration:250ms;	}#pullDown .pullDownIcon {	-webkit-transform:rotate(0deg) translateZ(0);}#pullUp .pullUpIcon  {	-webkit-transform:rotate(-180deg) translateZ(0);}#pullDown.flip .pullDownIcon {	-webkit-transform:rotate(-180deg) translateZ(0);}#pullUp.flip .pullUpIcon {	-webkit-transform:rotate(0deg) translateZ(0);}#pullDown.loading .pullDownIcon, #pullUp.loading .pullUpIcon {	background-position:0 100%;	-webkit-transform:rotate(0deg) translateZ(0);	-webkit-transition-duration:0ms;	-webkit-animation-name:loading;	-webkit-animation-duration:2s;	-webkit-animation-iteration-count:infinite;	-webkit-animation-timing-function:linear;}@-webkit-keyframes loading {	from { -webkit-transform:rotate(0deg) translateZ(0); }	to { -webkit-transform:rotate(360deg) translateZ(0); }}ul,li{padding: 0px;margin: 0px;}.mui-media-body{	overflow: hidden;  text-overflow: ellipsis;  white-space: nowrap;}	.container{				padding-left:0px;				padding-right:0px;			}			.mui-input-group:after {			  position: absolute;			  right: 0;			  bottom: 0;			  left: 0;			  height: 0px;			  content: '';			  background-color: #c8c7cc;			  -webkit-transform: scaleY(.5);			  transform: scaleY(.5);			}						.red{color: red}			 .header-logo{				width:50%;				text-align:right;			} 			.layermmain .section {  vertical-align: middle;}			.icback{				font-size: 22px;			}			.nav{position: fixed;}			 .header {				width:100%;				height:45px;				line-height:45px;				padding:0;								color:#eee;				font-size:22px;				text-align:center;				color:white;			    background: #2196f3;			}		.blue{color: blue;}</style></head><body><div id="header"><a>危货作业申报</a></div><div id="wrapper" style="margin-bottom:70px" >	<div id="scroller">		<div id="pullDown" style="margin-top:17px" > 			<div><span class="pullDownIcon"></span><span class="pullDownLabel">下拉刷新...</span></div>		</div>		<div id="mui-content">			<div class="content-inner">				<div class="container">					<div class="table-responsive">						<table class="table" title="Default Tabl" style="width: 90%;text-align: center;" align="center">							<tbody id="content" class="lists">															</tbody>						</table>					</div>				</div>			</div>		</div>		<div id="pullUp">					</div>	</div></div>	<nav id="jingyingren" style="width: 100%;display:none;height: 50px;position: fixed;bottom: 0px;background: white;">		<button class="mui-btn mui-btn-positive" type="button" style="width: 40%;background: #2196f3;border: 0px;margin-left: 9%;height: 40px;" id="wanchengyijian">申报申请</button>  		<button class="mui-btn mui-btn-positive" type="button" style="width: 40%;background: #2196f3;border: 0px;height: 40px;" id="chaxun">查询</button>	</nav>			<nav id="xingzhengren" style="width: 100%;height: 50px;display:none;position: fixed;bottom: 0px;background: white;">		<button class="mui-btn mui-btn-positive" type="button" style="width: 80%;margin-left: 9%;background: #2196f3;border: 0px;height: 40px;" id="chaxun">查询</button>	</nav></body></html>
 |