Skip to content

Commit

Permalink
Update PaymentDetailCard.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
RiXelanya committed Feb 19, 2024
1 parent 38165f9 commit 3a276b6
Showing 1 changed file with 6 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ v-container.container-card
| {{ dataService.totalPrice }}
| {{ formatUSDTE(dataService.currency)}}

.menu-card__rate ( {{ this.usdRate }} USD )

.menu-card__details.mt-5(v-if="$route.name === 'customer-request-test-checkout'")
.menu-card__trans-weight Estimated Transaction Weight
v-tooltip.visible(bottom)
Expand Down Expand Up @@ -171,7 +169,7 @@ import {
setOrderPaidFee,
setOrderPaid
} from "@/common/lib/polkadot-provider/command/order";
import { getConversion, getOrderDetail } from "@/common/lib/api";
import { getOrderDetail } from "@/common/lib/api";
import { getDNACollectionProcess } from "@/common/lib/api";
import { errorHandler } from "@/common/lib/error-handler";
import { createOrder } from "@/common/lib/polkadot-provider/command/order";
Expand Down Expand Up @@ -239,7 +237,7 @@ export default {
}
}
await this.getUsdRate();
// await this.getUsdRate();
await this.calculateTxWeight();
},
Expand Down Expand Up @@ -298,11 +296,11 @@ export default {
if (event.method === "ServiceRequestUpdated")
this.$router.push({ name: "customer-request-test-success" });
},
dataService(val) {
if (val) this.getUsdRate();
}
// dataService(val) {
// if (val) this.getUsdRate();
// }
},
methods: {
Expand Down Expand Up @@ -338,21 +336,6 @@ export default {
);
},
async getUsdRate() {
this.fetching = true;
let totalPrice;
if (this.$route.params.id) {
totalPrice = this.dataService.totalPrice;
} else {
totalPrice = this.dataService.totalPrice.split(",").join("");
}
this.rate = await getConversion(this.dataService.currency, "USD");
this.usdRate = Number(this.rate.conversion * totalPrice).toFixed(4);
this.fetching = false;
},
toPaymentHistory() {
this.$router.push({ name: "customer-payment-history" });
},
Expand Down

0 comments on commit 3a276b6

Please sign in to comment.