zhangxinlei1996 6 anni fa
parent
commit
2b47485a3d

+ 1 - 0
src/web/templates/weixin/dataExport/dataExport_industry.html

@@ -172,6 +172,7 @@
             }else{
                     $(".consfirm").show()
                     $(".resetOne").hide()
+					$(".all span").addClass("active");
             }
 
             $(".list ul li dl dd").each(function(index){

+ 20 - 3
src/web/templates/weixin/dataExport/dataExport_price.html

@@ -18,6 +18,9 @@
         background-color: #2cb7ca !important;
         color: #fff;
     }
+	.width100{
+    	width: 100% !important;
+    }
 </style>
 <body>
 
@@ -63,10 +66,12 @@
         $(".industry .all span").on('click', function () {
             $(this).addClass("active")
             $(".connectMain").css("background", "#f5f4f9");
+			$(".resetOne .btn").addClass("width100");
+			$(".reset").hide();
         });
 
         $(".btn").on('click', function () {
-            if($(".industry .all span").attr("class") === "active"){
+            if(($(".industry .all span").attr("class") === "active")||(( $("#min").val()=="")&&( $("#max").val()==""))){
                 localStorage.price = "全部";
             }else{
                 var min = $("#min").val();
@@ -86,9 +91,10 @@
             $("#min").val("");
             $("#max").val("");
 			$(".reset").hide();
+			$(".resetOne .btn").addClass("width100");
         });
         //
-        if(localStorage.price !== ""&&localStorage.price!==undefined){
+        if(localStorage.price !== ""&&localStorage.price!==undefined&&localStorage.price!="全部"){
             var price = localStorage.price.replace("-","").split("万元");
             //只有一个金额
 			if(price[0]!=""){
@@ -114,7 +120,18 @@
             }else{
 				$(".reset").hide();
 			}
-        }
+			    
+	   		if($(".industry .all span").hasClass('active')){
+				$(".resetOne .btn").addClass("width100");
+	    	}else{
+				$(".resetOne .btn").removeClass("width100");
+	    	}
+        }else{
+			$(".resetOne .btn").addClass("width100");
+			$(".reset").hide();
+		}
+		
+		
 
     })
 </script>