Browse Source

调研宝
部分动效按钮失灵
https://www.xiaopiu.com/h5/byId?type=project&id=5df1b5a78a345d79dde97211&isprd=true

zhangwf 5 years ago
parent
commit
180ba54459
1 changed files with 5 additions and 8 deletions
  1. 5 8
      src/views/h5editor/index.vue

+ 5 - 8
src/views/h5editor/index.vue

@@ -1092,7 +1092,6 @@ export default {
             this.showPreView = true;
             this.isLoadingPreview = false;
           }, 1000);
-          clearTimeout(param)
         });
     },
     selectedElement(element) {
@@ -1257,7 +1256,7 @@ export default {
                     var param = setTimeout(() => {
                       that.selectedButtom = true;
                     }, 1);
-                    clearTimeout(param)
+                   
                   }
                 };
                 img.src = res;
@@ -1289,12 +1288,12 @@ export default {
                       var param = setTimeout(() => {
                         that.selectedButtom = true;
                       }, 1);
-                      clearTimeout(param);
+                    
                       that.unSelectedButtom = false;
                       var param2 = setTimeout(() => {
                         that.unSelectedButtom = true;
                       }, 1);
-                      clearTimeout(param2);
+                 
                     }
                   };
                   img.src = res;
@@ -1365,14 +1364,14 @@ export default {
                   var params = setTimeout(() => {
                     that.selectedButtom = true;
                   }, 1);
-                  clearTimeout(params);
+                  
                 } else {
                   that.buttonData.backgroundUnselectedImg = res;
                   that.unSelectedButtom = false;
                   var param = setTimeout(() => {
                     that.unSelectedButtom = true;
                   }, 1);
-                  clearTimeout(param);
+                 
                 }
                 that.buttonData.itemId = that.itemId;
                 that.buttonData.width = img.width;
@@ -1424,12 +1423,10 @@ export default {
       var params1 = setTimeout(() => {
         this.selectedButtom = true;
       }, 0.1);
-      clearTimeout(params1);
       this.unSelectedButtom = false;
       var params2 = setTimeout(() => {
         this.unSelectedButtom = true;
       }, 0.1);
-      clearTimeout(params2);
     }
   },
   components: {