Facebook
From Rico Fajar Afandi, 3 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 77
  1. <sui-grid-column>
  2.                                   <span v-if="index != externalProduct.deals.tier.length - 1" style="font-size: 18px;">
  3.                                     <template v-if="index == externalProduct.deals.indexCurrentTier">
  4.                                       <b><span style="color: #f6692a;">{{ item.minSold }} - {{ item.maxSold }} sold: {{ $_formatMoney(item.dealPrice, externalProduct.convertedCurrency) }} </span> - {{ ((externalProduct.convertedOriginalPrice - item.dealPrice)/externalProduct.convertedOriginalPrice * 100).toFixed(0) }}% off</b>
  5.                                     </template>
  6.                                     <template v-else>
  7.                                       <b>{{ item.minSold }} - {{ item.maxSold }} sold: {{ $_formatMoney(item.dealPrice, externalProduct.convertedCurrency) }} - {{ ((externalProduct.convertedOriginalPrice - item.dealPrice)/externalProduct.convertedOriginalPrice * 100).toFixed(0) }}% off</b>
  8.                                     </template>
  9.                                   </span>
  10.                                   <span v-else style="font-size: 18px;">
  11.                                     <template v-if="index == externalProduct.deals.indexCurrentTier">
  12.                                       <b><span style="color: #f6692a;">{{ item.minSold }} sold + : {{ $_formatMoney(item.dealPrice, externalProduct.convertedCurrency) }} </span> - {{ (externalProduct.convertedOriginalPrice - item.dealPrice)/externalProduct.convertedOriginalPrice * 100 }}% off </b>
  13.                                     </template>
  14.                                     <template v-else>
  15.                                       <b>{{ item.minSold }} sold + : {{ $_formatMoney(item.dealPrice, externalProduct.convertedCurrency) }} - {{ (externalProduct.convertedOriginalPrice - item.dealPrice)/externalProduct.convertedOriginalPrice * 100 }}% off</b>
  16.                                     </template>
  17.                                    
  18.                                   </span>
  19.                                 </sui-grid-column>