Browse Source

金额页面缓存

xuzhiheng 6 years ago
parent
commit
fb408593b5
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/web/templates/weixin/dataExport/dataExport_price.html

+ 13 - 1
src/web/templates/weixin/dataExport/dataExport_price.html

@@ -50,6 +50,7 @@
 
 
         $(".industry .all span").on('click', function () {
         $(".industry .all span").on('click', function () {
             $(this).addClass("active")
             $(this).addClass("active")
+            $(".connectMain").css("background", "#f5f4f9");
         });
         });
 
 
         $(".btn").on('click', function () {
         $(".btn").on('click', function () {
@@ -64,7 +65,18 @@
             window.location.href = "/front/wx_dataExport/toSieve"
             window.location.href = "/front/wx_dataExport/toSieve"
         });
         });
         //
         //
-
+        if(localStorage.price !== ""){
+            var price = localStorage.price.replace("-","").split("万元");
+            var prices = price.filter(function (e) {
+                return e !== "";
+            });
+            $("#min").val(prices[0]);
+            $("#max").val(prices[1]);
+            if($("#min").val() !== "" && $("#max").val() !== ""){
+                $(".connectMain").css("background", "#2cb7ca");
+                $(".all span").removeClass("active");
+            }
+        }
 
 
     })
     })
 </script>
 </script>