Sfoglia il codice sorgente

[FIX] cart item heigth calculate

robert 6 anni fa
parent
commit
556c9a262e
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  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() {