nieyuge пре 2 година
родитељ
комит
9eb8160978
2 измењених фајлова са 20 додато и 5 уклоњено
  1. 3 0
      pages/payment/ach.vue
  2. 17 5
      pages/payment/index.vue

+ 3 - 0
pages/payment/ach.vue

@@ -46,6 +46,9 @@ export default {
                         this.formData = res.data;
                         this.formData = res.data;
                         this.$nextTick(() => {
                         this.$nextTick(() => {
                             this.$refs.formDom.submit();
                             this.$refs.formDom.submit();
+                            setTimeout(() => {
+                                location.go(-1);
+                            }, 500)
                         })
                         })
                     }
                     }
                 })
                 })

+ 17 - 5
pages/payment/index.vue

@@ -80,7 +80,12 @@
                 <div class="text">Balance</div>
                 <div class="text">Balance</div>
                 <div class="money">
                 <div class="money">
                     <FontZoom width="300" :unColor="true">
                     <FontZoom width="300" :unColor="true">
-                        <img class="icon" :src="currencyInfoData.iconPath" /> {{ salePlans.currencyCode === 'USD' ? (currencyInfoData.balance | floatPrice(2)) : (currencyInfoData.balance | floatPrice(4)) }} {{currencyInfoData.tokenSymbol}}
+                        <template v-if="salePlans.currencyCode === 'USD'">
+                            <img class="icon" :src="currencyInfoData.iconPath" /> {{ currencyInfoData.balance | floatPrice(2) }} {{currencyInfoData.tokenSymbol}}
+                        </template>
+                        <template v-else>
+                            <img class="icon" :src="currencyInfoData.iconPath" /> {{ currencyInfoData.balance | floatPrice(4) }} {{currencyInfoData.tokenSymbol}}
+                        </template>
                     </FontZoom>
                     </FontZoom>
                 </div>
                 </div>
                 <template v-if="waitRefresh">
                 <template v-if="waitRefresh">
@@ -97,7 +102,14 @@
                     <div class="neet">You Neet to Pay</div>
                     <div class="neet">You Neet to Pay</div>
                     <div class="money">
                     <div class="money">
                         <FontZoom width="190" :unColor="true">
                         <FontZoom width="190" :unColor="true">
-                            <span class="text">{{ salePlans.currencyCode === 'USD' ? (salePlans.price | floatPrice(2)) : (salePlans.price | floatPrice(4)) }} {{ salePlans.currencyInfo.tokenSymbol }}</span>
+                            <span class="text">
+                                <template v-if="salePlans.currencyCode === 'USD'">
+                                    {{ salePlans.price | floatPrice(2) }} {{ salePlans.currencyInfo.tokenSymbol }}
+                                </template>
+                                <template v-else>
+                                    {{ salePlans.price | floatPrice(4) }} {{ salePlans.currencyInfo.tokenSymbol }}
+                                </template>
+                            </span>
                         </FontZoom>
                         </FontZoom>
                     </div>
                     </div>
                 </div>
                 </div>
@@ -121,7 +133,7 @@
                             <img src="../../static/img/icon_deposit.png" />
                             <img src="../../static/img/icon_deposit.png" />
                             <span>Deposit to Buy</span>
                             <span>Deposit to Buy</span>
                         </div>
                         </div>
-                        <div class="item column">
+                        <div class="item column" v-if="Number(usdAmountData.rechargeAmountValue) > 0">
                             <div class="l">Deposit</div>
                             <div class="l">Deposit</div>
                             <div class="r">
                             <div class="r">
                                 <FontZoom width="260" :unColor="true">
                                 <FontZoom width="260" :unColor="true">
@@ -169,7 +181,7 @@
                     <div class="l">
                     <div class="l">
                         <div class="neet">You Neet to Pay</div>
                         <div class="neet">You Neet to Pay</div>
                         <div class="money">
                         <div class="money">
-                            <FontZoomMobile width="260" :unColor="true">
+                            <FontZoomMobile width="220" :unColor="true">
                                 {{salePlans.price | floatPrice(4)}} {{ salePlans.currencyInfo.tokenSymbol }}
                                 {{salePlans.price | floatPrice(4)}} {{ salePlans.currencyInfo.tokenSymbol }}
                             </FontZoomMobile>
                             </FontZoomMobile>
                         </div>
                         </div>
@@ -222,7 +234,7 @@
                     <div class="l">
                     <div class="l">
                         <div class="neet">You Neet to Pay</div>
                         <div class="neet">You Neet to Pay</div>
                         <div class="money">
                         <div class="money">
-                            <FontZoomMobile width="260" :unColor="true">
+                            <FontZoomMobile width="220" :unColor="true">
                                 {{ Number(usdAmountData.rechargeAmountValue) > 0 ? usdAmountData.rechargeAmountValue : usdAmountData.orderAmountValue }} {{ salePlans.currencyInfo.tokenSymbol }}
                                 {{ Number(usdAmountData.rechargeAmountValue) > 0 ? usdAmountData.rechargeAmountValue : usdAmountData.orderAmountValue }} {{ salePlans.currencyInfo.tokenSymbol }}
                             </FontZoomMobile>
                             </FontZoomMobile>
                         </div>
                         </div>