Parcourir la source

جزئیات بسته، محصول تخفیف نداشته ولی روی قیمت خط کشیده و همون قیمت نوشته شده مجدد.

HgH il y a 1 an
Parent
commit
3a72317069

+ 4 - 3
src/components/Widgets/Store/StorePackage/StorePackageShow/StorePackageShow.vue

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