Browse Source

[IMP] auto hide product pack

robert 6 năm trước cách đây
mục cha
commit
540b9549ba
1 tập tin đã thay đổi với 7 bổ sung2 xóa
  1. 7 2
      src/components/common/CartItem.vue

+ 7 - 2
src/components/common/CartItem.vue

@@ -11,7 +11,8 @@
         span.item-price {{ item.price | currency(...currencyOptions) }}
         span.item-equals =
         span.item-subtotal {{ (item.price * (item.quantity || 1)) | currency(...currencyOptions) }}
-        .item-packs-wrapper
+        .item-packs-wrapper(v-if='!!item.packs.length')
+            h3.item-packs-title Contenido del pack
             ul.item-packs
                 li.item-pack(
                     v-for='(pack, index) in item.packs'
@@ -236,7 +237,11 @@
             font-weight: bold
             display: inline-block
         .item-packs-wrapper
-            margin-top: 10px
+            margin-top: 15px
+            .item-packs-title
+                margin: 0
+                font-size: 8pt
+                color: $app-border-color
             .item-packs
                 list-style: none
                 padding-left: 10px