Browse Source

优化申购

master
ltlzx 3 years ago
parent
commit
0e3428d8e5
  1. 16
      src/views/purchase/index.vue

16
src/views/purchase/index.vue

@ -88,12 +88,20 @@
{{ $t("wallet.availableBalance") }}{{ activeCoin.usable_balance }}
</p>
<p>
1 {{ activeCoin.coin_name }}
<!-- 1 {{ activeCoin.coin_name }}
{{ activeCoin.proportion_amount | omitTo(5) }}
{{ detail.coin_name }} -->
1
USDT
{{ 1 / detail.issue_price | omitTo(4)}}
{{ detail.coin_name }}
</p>
<p>
{{ num || 0 }} {{ activeCoin.coin_name }} {{ total }}
<!-- {{ num || 0 }} {{ activeCoin.coin_name }} {{ total }}
{{ detail.coin_name }} -->
{{ num || 0 }} {{ activeCoin.coin_name }}
{{(activeCoin.CurrentPrice/ detail.issue_price)*num | omitTo(4)}}
{{ detail.coin_name }}
</p>
<button
@ -288,7 +296,7 @@ import Wallet from "@/api/wallet";
export default {
data() {
return {
num: "",
num:1,
coinList: [],
detail: {},
activeCoin: {},
@ -303,7 +311,7 @@ export default {
computed: {
total() {
return utils.multiple(
this.num || 0,
this.num || 1,
this.activeCoin.proportion_amount * 1,
2
);

Loading…
Cancel
Save