dengzhiguo 7 years ago
parent
commit
afcb3f9221
1 changed files with 13 additions and 13 deletions
  1. 13 13
      src/js/public.js

+ 13 - 13
src/js/public.js

@@ -53,26 +53,26 @@ $(function(){
 	$('#checks').attr('checked',true)
 	$('#checks').click(function(){			
 		var Cheack=$(this).prop('checked')		
-		if(Cheack){			
-			$(this).parent().css({"background":"url(../img/check_lo.png) no-repeat center left","background-size":"34% 40%"})
-			$('#checkst').prop('checked',false)
-			$('#checkst').parent().css({"background":"url(../img/check_lono.png) no-repeat center left","background-size":"34% 40%"})
+		if(Cheack){
+			$(this).parent().removeClass("lab_checkno").addClass("lab_check");
+			$('#checkst').prop('checked',false);
+			$('#checkst').parent().removeClass("lab_check").addClass("lab_checkno");
 		}else{
-			$('#checkst').prop('checked',true)
-			$('#checkst').parent().css({"background":"url(../img/check_lo.png) no-repeat center left","background-size":"34% 40%"})
-			$(this).parent().css({"background":"url(../img/check_lono.png) no-repeat center left","background-size":"34% 40%"})
+			$('#checkst').prop('checked',true);
+			$('#checkst').parent().removeClass("lab_checkno").addClass("lab_check");
+			$(this).parent().removeClass("lab_check").addClass("lab_checkno");
 		}
 	})
 	$('#checkst').click(function(){			
 		var Cheack_no=$(this).prop('checked')			
 		if(Cheack_no){			
-			$(this).parent().css({"background":"url(../img/check_lo.png) no-repeat center left","background-size":"34% 40%"})
-			$('#checks').prop('checked',false)
-			$('#checks').parent().css({"background":"url(../img/check_lono.png) no-repeat center left","background-size":"34% 40%"})
+			$(this).parent().removeClass("lab_checkno").addClass("lab_check");
+			$('#checks').prop('checked',false);
+			$('#checks').parent().removeClass("lab_check").addClass("lab_checkno");
 		}else{
 			$('#checks').prop('checked',true)
-			$('#checks').parent().css({"background":"url(../img/check_lo.png) no-repeat center left","background-size":"34% 40%"})
-			$(this).parent().css({"background":"url(../img/check_lono.png) no-repeat center left","background-size":"34% 40%"})
+			$('#checks').parent().removeClass("lab_checkno").addClass("lab_check");
+			$(this).parent().removeClass("lab_check").addClass("lab_checkno");
 		}
 	})
 	//点击x
@@ -116,7 +116,7 @@ $(function(){
 					} else {						
 						var  data = rest.data;
                         if (data && data.requestURI) {
-                            var path = globalConfig.context + data.requestURI
+                            var path = globalConfig.context + data.requestURI;
                             if (data.queryString) {
                                 path += '?' + data.queryString;
                             }