nieyuge 2 سال پیش
والد
کامیت
85511473ba
1فایلهای تغییر یافته به همراه12 افزوده شده و 2 حذف شده
  1. 12 2
      components/MobileBuyNft.vue

+ 12 - 2
components/MobileBuyNft.vue

@@ -59,7 +59,12 @@
                                     @click="goBuy(((data.perUserBuyLimit - data.userBuyCount) >= 1 && (data.itemTotalCount - data.itemSoldCount) >= 1))">
                                     <div class="l">BUY {{item.itemCount}}</div>
                                     <FontZoom width="220">
-                                        <img class="icon" :src="item.currencyInfo.iconPath" /> {{ item.price }} {{ item.currencyInfo.tokenSymbol }} (${{item.usdPrice}})
+                                        <template v-if="item.currencyCode !== 'USD'">
+                                            <img class="icon" :src="item.currencyInfo.iconPath" /> {{ item.price }} {{ item.currencyInfo.tokenSymbol }} (${{item.usdPrice}})
+                                        </template>
+                                        <template v-else>
+                                            ${{item.usdPrice}}
+                                        </template>
                                     </FontZoom>
                                 </div>
                             </template>
@@ -68,7 +73,12 @@
                                     class="btn disable">
                                     <div class="l">BUY {{item.itemCount}}</div>
                                     <FontZoom width="220">
-                                        <img class="icon" :src="item.currencyInfo.iconPath" /> {{ item.price }} {{ item.currencyInfo.tokenSymbol }} (${{item.usdPrice}})
+                                        <template v-if="item.currencyCode !== 'USD'">
+                                            <img class="icon" :src="item.currencyInfo.iconPath" /> {{ item.price }} {{ item.currencyInfo.tokenSymbol }} (${{item.usdPrice}})
+                                        </template>
+                                        <template v-else>
+                                            ${{item.usdPrice}}
+                                        </template>
                                     </FontZoom>
                                 </div>
                             </template>