Преглед изворни кода

بهبود نمایش قیمت در بخش فروشگاه

hgh пре 2 година
родитељ
комит
9b5751c392
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/components/Widgets/Store/Shop/components/productItem.vue

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

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