소스 검색

[FIX] cart item zeros

Gogs 7 년 전
부모
커밋
272e267c6b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      CartItem.vue

+ 2 - 2
CartItem.vue

@@ -3,9 +3,9 @@
         h3.item-name {{ item.displayName }}
         h3.item-name {{ item.displayName }}
         input.item-quantity(type='number' min='1' :value='item.quantity')
         input.item-quantity(type='number' min='1' :value='item.quantity')
         span.item-x x
         span.item-x x
-        span.item-price {{ (item.price || 1) | currency(...options) }}
+        span.item-price {{ item.price | currency(...options) }}
         span.item-equals =
         span.item-equals =
-        span.item-subtotal {{ ((item.price || 1) * (item.quantity || 1)) | currency(...options) }}
+        span.item-subtotal {{ (item.price * (item.quantity || 1)) | currency(...options) }}
         .cart-item-options-wrapper
         .cart-item-options-wrapper
             .cart-item-options
             .cart-item-options
                 .cart-item-option(class='fa fa-plus' @click='onClickIncrement')
                 .cart-item-option(class='fa fa-plus' @click='onClickIncrement')