nieyuge 2 年之前
父節點
當前提交
6a63f3156c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/payment/index.vue

+ 1 - 1
pages/payment/index.vue

@@ -118,7 +118,7 @@
                             <div class="r">
                                 <FontZoom width="260">
                                     <img :src="currencyInfoData.iconPath" />
-                                    <span>{{ salePlans.price - currencyInfoData.balance}} {{currencyInfoData.tokenSymbol}}</span>
+                                    <span>{{ (salePlans.price - currencyInfoData.balance) > 0 ? (salePlans.price - currencyInfoData.balance) : 0 }} {{currencyInfoData.tokenSymbol}}</span>
                                 </FontZoom>
                             </div>
                         </div>