From 7810d0837cd559ac1a135a3d520d39124582d3bc Mon Sep 17 00:00:00 2001
From: CJJ <Administrator@192.168.10.12>
Date: 星期一, 10 十二月 2018 16:54:10 +0800
Subject: [PATCH] 手机 申请安装 包机组

---
 gx_tieta/WebRoot/mobil/ele-param1.html |   97 ++++++++++++------------------------------------
 1 files changed, 24 insertions(+), 73 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/ele-param1.html b/gx_tieta/WebRoot/mobil/ele-param1.html
index 422feca..aaf52c7 100644
--- a/gx_tieta/WebRoot/mobil/ele-param1.html
+++ b/gx_tieta/WebRoot/mobil/ele-param1.html
@@ -163,11 +163,11 @@
 		           <fieldset data-role="controlgroup" >
 		           
 		           
-			            <select  data-mini="true">
-			              <option value="">鏂板缓1涓數姹犵粍</option>
-			              <option value="">鏂板缓2涓數姹犵粍</option>
-			              <option value="">鏂板缓3涓數姹犵粍</option>
-			              <option value="">鏂板缓4涓數姹犵粍</option>
+			            <select id="newbattnum" data-mini="true">
+			              <option value="1">鏂板缓1涓數姹犵粍</option>
+			              <option value="2">鏂板缓2涓數姹犵粍</option>
+			              <option value="3">鏂板缓3涓數姹犵粍</option>
+			              <option value="4">鏂板缓4涓數姹犵粍</option>
 			            </select>
 			            
 		            	
@@ -207,6 +207,12 @@
 
     $('document').ready(function(){panel.show();});    
     $("#sure").click(function(){
+    	var currentlength = Math.floor(arrTd.length/34);
+		if(currentlength<Page.pageSize){
+    		setcookieCreat(currentlength-1);
+    	}else{
+       		setcookieCreat(Page.pageSize-1);
+       	}
         window.location.href="batt-infor-conf-temp.html";   
     });
    
@@ -219,39 +225,30 @@
 	$(document).ready(function(){
 		setPage();
 		$("#submit").click(function(){
+			//newbattnum;
+		
 			Page.pageCurr=1;
 			searchBattLife();
 		});
 	 });
- 		function setcookiedit(index){
- 				var arrcookie = new Array();	
-			   	for(var i=0;i<33;i++){//鍏�34椤癸紝鏈�鍚庝竴椤逛负鎸夐挳锛屼笉蹇匰ET杩涙暟鎹�
-				   	var value = Math.floor(34*index);
-				   	//console.info(value);
-				   	value = Math.floor(value+i);
-				   	//console.info(value);
-			   		arrcookie.push(arrTd[value]);
-			   	}
-			   	var json=window.JSON.stringify(arrcookie);
-			   	setCookie("eleparm",json);  //杩欓噷setcookie,鑻ユ湁涓婁竴鏉ookie鍒欐竻绌轰笂涓�绗�
- 		}
- 		
+ 	
  		function setcookieCreat(index){
  				var arrcookie = new Array();	
-			   	for(var i=0;i<33;i++){//鍏�34椤癸紝鏈�鍚庝竴椤逛负鎸夐挳锛屼笉蹇匰ET杩涙暟鎹�
-				   	var value = Math.floor(34*index);
-				   	//console.info(value);
+			   	for(var i=0;i<33;i++){//鍏�33椤�
+				   	var value = Math.floor(33*index);
+				   	console.info(value);
 				   	value = Math.floor(value+i);
 				 	if(i==13){//鏂板缓鍔熻兘锛岀數姹犵粍ID榛樿涓哄綋椤垫渶鍚庝竴涓數姹犵粍ID鍙峰姞1
 				 		var groupid = Math.floor(arrTd[value]+1);
 				 		console.info(groupid);
 				 		arrcookie.push(groupid);
 				 	}else{
-				   		//console.info(value);
+				   		console.info(value);
 			   			arrcookie.push(arrTd[value]);
 			   		}
 			   	}
-			   	arrcookie.push("new");
+			   	console.info($("#newbattnum").val());
+			   	arrcookie.push($("#newbattnum").val());
 			   	//console.info(arrcookie);
 			   	var json=window.JSON.stringify(arrcookie);
 			   	setCookie("eleparm",json);  //杩欓噷setcookie,鑻ユ湁涓婁竴鏉ookie鍒欐竻绌轰笂涓�绗�
@@ -319,7 +316,7 @@
 							/* arrTd.push("");
 							arrTd.push("");
 							arrTd.push(model.data[i].StationId_ex);			//鎶曞叆浣跨敤鏃ユ湡 */
-							
+							Page.pageAll = data[i].num;
 						} 
 					
 					}else{
@@ -329,24 +326,7 @@
 					createTbl(tblCon, arrTh, arrTd);			
 				}	
 			});	 
-		
-			/* 妯℃嫙鏁版嵁鍋氬ソ灏卞垹锛侊紒锛侊紒锛侊紒锛侊紒 */
-			
-			/*for(i=0;i<340;i++){
-			 if(i%34==33){
-			 //<a href="count-report.html" target="_top" class="ui-btn ui-corner-all ui-shadow ui-icon-back ui-btn-icon-left" style="padding-top: 0.7em; padding-bottom: 0.7em;">杩斿洖</a>
-			arrTd[i]='<a href="#myPopup" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window" >淇敼鎴栧垹闄�</a>';
-			console.warn(i);
-			continue;
-			
-			} 
-			       
-					 arrTd[i]=i*10;
-					}
-						
-					createTbl(tblCon, arrTh, arrTd);
 					
-			/* 妯℃嫙鏁版嵁鍋氬ソ灏卞垹锛侊紒锛侊紒锛侊紒锛侊紒 */				
 		}
 		function getUpdateArr(temp){
 			var arr = new Array();
@@ -392,31 +372,7 @@
 			console.info(arr);
 			return arr;
 		}	
-	
-	//鍒犻櫎鐢垫睜缁�
-		function delBatt(temp){
-			$.ajax({
-				type: "post", 				
-		        url: "BattInfAction!delete",				
-		        async:true,				
-		        dataType:'text',
-		        data:"json="+JSON.stringify(temp),	
-		        success: function(data){							        	
-					data = eval('('+data+')');
-					var model = eval('('+data.result+')');
-					console.info(model);
-					if(model.code ==1){
-						alert("鍒犻櫎鐢垫睜缁勬垚鍔�!");
-						searchBattLife();
-					}else{
-						alert("鍒犻櫎鐢垫睜缁勫け璐�!");
-					}			
-	        	},
-	        	error:function(){
-	        		alert("鍒犻櫎鐢垫睜缁勫け璐�!");
-	        	}
-	        });
-		}
+
 			
 	function createSearchForm(){
 		var temp={
@@ -424,8 +380,7 @@
 				StationName1:$('#mainteArea').val(),
 				StationName2:$('#city').val(),
 				StationName5:$('#country').val(),
-				StationName:$('#homeName').val(),
-				
+				StationName:$('#homeName').val(),			
 		};
 		return temp;
 	}
@@ -434,8 +389,6 @@
 	$.post("BattInfAction_serchByStation",null,function(data){
 		data = data.result;
 	    data = eval("("+data+")");
-	    //console.info(data);
-	    //console.info(data.code);
 	    if(data.code==1&&data.data.length>0){
 	   		var $Ostation_name1=$("#mainteArea");
 	    	$Ostation_name1.text("");
@@ -465,9 +418,7 @@
 		var data = {
 			StationName1: $("#mainteArea").val()
 		};
-		//console.info(data);
-		// 璇锋眰鑾峰彇褰撳墠鐪佷笅鐨勫競
-		$.ajax({ 	
+			$.ajax({ 	
 	        type: "post", 				
 	        url: "BattInfAction!serchStationName2",				
 	        async:true,				

--
Gitblit v1.9.1