xuwei 4 år sedan
förälder
incheckning
9716c1172a
1 ändrade filer med 7 tillägg och 7 borttagningar
  1. 7 7
      src/main/resources/static/js/index.js

+ 7 - 7
src/main/resources/static/js/index.js

@@ -327,10 +327,10 @@ var homeData = new Vue({
         })
 
         var beatyPop =  window.localStorage.getItem('beatyPop');
-         window.onbeforeunload = function(e) {
-            e = e || window.event;
-             window.localStorage.removeItem('beatyPop');
-        };
+        //  window.onbeforeunload = function(e) {
+        //     e = e || window.event;
+        //      window.localStorage.removeItem('beatyPop');
+        // };
         //新加  优惠券弹窗
         if(beatyPop){
             _this.showflag = false;
@@ -339,9 +339,9 @@ var homeData = new Vue({
                  _this.showflag = true;
             },1000)
         }
-        // setTimeout(function () {
-        //      window.localStorage.removeItem('beatyPop');
-        // },7200000)
+        setTimeout(function () {
+             window.localStorage.removeItem('beatyPop');
+        },7200000)
     }
 });