Explorar el Código

H5:购物车better-scroll

panyong hace 3 años
padre
commit
bbd138c7fe
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      htmldev/dashboard/src/views/sell/shopcart/shopcart.vue

+ 6 - 0
htmldev/dashboard/src/views/sell/shopcart/shopcart.vue

@@ -264,6 +264,12 @@ export default {
         return
         return
       }
       }
       this.fold = !this.fold
       this.fold = !this.fold
+      if (!this.fold) {
+        // 隐藏状态下better-scroll不生效
+        setTimeout(() => {
+          this.scroll && this.scroll.refresh()
+        }, 500)
+      }
     },
     },
     hideList () {
     hideList () {
       this.fold = true
       this.fold = true