Explorar o código

[FIX] cart item heigth calculate

robert %!s(int64=6) %!d(string=hai) anos
pai
achega
556c9a262e
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/components/common/CartItem.vue

+ 6 - 1
src/components/common/CartItem.vue

@@ -84,6 +84,11 @@
 
                     this.computeQuantity()
                 }
+            },
+            itemHeight: {
+                get() {
+                    return 
+                }
             }
         },
         watch: {
@@ -129,7 +134,7 @@
                 console.log(e)
             },
             onChange(item) {
-                this.itemHeight = this.itemHeight + (item.packs.length * 30) 
+                this.itemHeight = 90 + (item.packs.length * 30) 
                 this.$emit('onChange', item)
             },
             onClickIncrement() {