hgh 2 anni fa
parent
commit
6c8595763f

+ 2 - 2
src/components/Widgets/Store/Shop/components/productItem.vue

@@ -26,13 +26,13 @@
       {{ product.title }}
     </div>
     <div class="product-item__price">
-      <div v-if="product.unit_price != product.sellable_price"
+      <div v-if="product.unit_price !== product.sellable_price"
            class="product-item__price-base">
         {{ parseInt(product.unit_price).toLocaleString('fa') }}
         تومان
       </div>
       <div class="product-item__price-final">
-        {{ product.sellable_price.toLocaleString('fa') }}
+        {{ parseInt(product.sellable_price).toLocaleString('fa') }}
         تومان
       </div>
     </div>

+ 2 - 2
src/components/Widgets/Store/StoreProduct/ProductCarousel/productItem.vue

@@ -26,13 +26,13 @@
       {{ product.title }}
     </div>
     <div class="product-item__price">
-      <div v-if="product.unit_price != product.sellable_price"
+      <div v-if="product.unit_price !== product.sellable_price"
            class="product-item__price-base">
         {{ parseInt(product.unit_price).toLocaleString('fa') }}
         تومان
       </div>
       <div class="product-item__price-final">
-        {{ product.sellable_price.toLocaleString('fa') }}
+        {{ parseInt(product.sellable_price).toLocaleString('fa') }}
         تومان
       </div>
     </div>

+ 4 - 3
src/components/Widgets/Store/StoreProduct/StoreProductShow/StoreProductShow.vue

@@ -57,12 +57,13 @@
           <q-icon name="shopping_cart" />
           قیمت محصول
         </div>
-        <div class="product-show__summery-price-base">
-          {{ product.unit_price }}
+        <div v-if="product.unit_price !== product.sellable_price"
+             class="product-show__summery-price-base">
+          {{ parseInt(product.unit_price).toLocaleString('fa') }}
           تومان
         </div>
         <div class="product-show__summery-price-final">
-          {{ product.getFinalPrice() }}
+          {{ parseInt(product.sellable_price).toLocaleString('fa') }}
           تومان
         </div>
         <q-btn label="افزودن به سبد"