|
|
|
@ -14,7 +14,7 @@ |
|
|
|
|
<a href="javascript:;"> |
|
|
|
|
<p>初始资金:{{ userTimeMoneyDto.wxPayInit }} CNY</p> |
|
|
|
|
<p>可用资金:{{ userTimeMoneyDto.wxPay }} CNY</p> |
|
|
|
|
<p>全部资金:{{ tatolPrice }} CNY</p> |
|
|
|
|
<!--<p>全部资金:{{ tatolPrice }} CNY</p>--> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<div class="usdItem alipay"> |
|
|
|
@ -22,7 +22,7 @@ |
|
|
|
|
<a href="javascript:;"> |
|
|
|
|
<p>初始资金:{{ userTimeMoneyDto.aliPayInit }} CNY</p> |
|
|
|
|
<p>可用资金:{{ userTimeMoneyDto.aliPay }} CNY</p> |
|
|
|
|
<p>全部资金:{{ tatolPrice }} CNY</p> |
|
|
|
|
<!-- <p>全部资金:{{ tatolPrice }} CNY</p>--> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<div class="usdItem bank"> |
|
|
|
@ -30,7 +30,7 @@ |
|
|
|
|
<a href="javascript:;"> |
|
|
|
|
<p>初始资金:{{ userTimeMoneyDto.bankCardInit }}CNY</p> |
|
|
|
|
<p>可用资金:{{ userTimeMoneyDto.bankCard }} CNY</p> |
|
|
|
|
<p>全部资金:{{ tatolPrice }} CNY</p> |
|
|
|
|
<!--<p>全部资金:{{ tatolPrice }} CNY</p>--> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -40,7 +40,7 @@ |
|
|
|
|
<div class="tabs-flex"> |
|
|
|
|
<div class="flex-1"> |
|
|
|
|
<p>总资产: {{ userTimeMoneyDto.btc }}</p> |
|
|
|
|
<!-- <p>≈0 CNY</p>--> |
|
|
|
|
<p>≈{{btcRMBCount}} CNY</p> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="flex-1"> |
|
|
|
|
<p>总资产: 0</p> |
|
|
|
@ -60,7 +60,7 @@ |
|
|
|
|
<div class="tabs-flex"> |
|
|
|
|
<div class="flex-1"> |
|
|
|
|
<p>总资产: {{ userTimeMoneyDto.usdt }}</p> |
|
|
|
|
<!-- <p>≈0 CNY</p>--> |
|
|
|
|
<p>≈{{usdtRMBCount}} CNY</p> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="flex-1"> |
|
|
|
|
<p>总资产: 0</p> |
|
|
|
@ -80,7 +80,7 @@ |
|
|
|
|
<div class="tabs-flex"> |
|
|
|
|
<div class="flex-1"> |
|
|
|
|
<p>总资产: {{ userTimeMoneyDto.eos }}</p> |
|
|
|
|
<!--<p>≈0 CNY</p>--> |
|
|
|
|
<p>≈{{eosRMBCount}} CNY</p> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="flex-1"> |
|
|
|
|
<p>总资产: 0</p> |
|
|
|
@ -100,7 +100,7 @@ |
|
|
|
|
<div class="tabs-flex"> |
|
|
|
|
<div class="flex-1"> |
|
|
|
|
<p>总资产: {{ userTimeMoneyDto.eth }}</p> |
|
|
|
|
<!-- <p>≈0 CNY</p>--> |
|
|
|
|
<p>≈{{ethRMBCount}} CNY</p> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="flex-1"> |
|
|
|
|
<p>总资产: 0</p> |
|
|
|
@ -192,6 +192,11 @@ export default { |
|
|
|
|
//防止重复提交 |
|
|
|
|
isSubmit: false, |
|
|
|
|
newwin: undefined, |
|
|
|
|
btcRMBCount: 0, |
|
|
|
|
usdtRMBCount: 0, |
|
|
|
|
eosRMBCount: 0, |
|
|
|
|
ethRMBCount: 0 |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
components: { |
|
|
|
@ -393,8 +398,9 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getUSDTPrie() { |
|
|
|
|
let ths = this; |
|
|
|
|
getLeftPrice().then(res => { |
|
|
|
|
this.USDTPrie = res.data.data; |
|
|
|
|
ths.USDTPrie = res.data.data; |
|
|
|
|
// console.log(this.USDTPrie); |
|
|
|
|
|
|
|
|
|
// 获取币种汇率 |
|
|
|
@ -406,20 +412,20 @@ export default { |
|
|
|
|
|
|
|
|
|
for (let i = 0; i < this.USDTPrie.length; i++) { |
|
|
|
|
// 获取btc转usdt资产 |
|
|
|
|
if (this.USDTPrie[i].currencyPair == 'BTC-USDT') { |
|
|
|
|
if (ths.USDTPrie[i].currencyPair == 'BTC-USDT') { |
|
|
|
|
// console.log(this.USDTPrie[i].amount); |
|
|
|
|
// |
|
|
|
|
btcCount = this.userTimeMoneyDto.btc * this.USDTPrie[i].amount; |
|
|
|
|
btcCount = ths.userTimeMoneyDto.btc * ths.USDTPrie[i].amount; |
|
|
|
|
// console.log('btc'+this.btcPrice); |
|
|
|
|
} |
|
|
|
|
// return this.btcPrice; |
|
|
|
|
} |
|
|
|
|
for (let i = 0; i < this.USDTPrie.length; i++) { |
|
|
|
|
// 获取btc转usdt资产 |
|
|
|
|
if (this.USDTPrie[i].currencyPair == 'EOS-USDT') { |
|
|
|
|
if (ths.USDTPrie[i].currencyPair == 'EOS-USDT') { |
|
|
|
|
// console.log(this.USDTPrie[i].amount); |
|
|
|
|
// |
|
|
|
|
eosCount = this.userTimeMoneyDto.eos * this.USDTPrie[i].amount; |
|
|
|
|
eosCount = ths.userTimeMoneyDto.eos * ths.USDTPrie[i].amount; |
|
|
|
|
// console.log('btc'+this.btcPrice); |
|
|
|
|
} |
|
|
|
|
// return this.btcPrice; |
|
|
|
@ -427,25 +433,30 @@ export default { |
|
|
|
|
|
|
|
|
|
for (let i = 0; i < this.USDTPrie.length; i++) { |
|
|
|
|
// 获取btc转usdt资产 |
|
|
|
|
if (this.USDTPrie[i].currencyPair == 'ETH-USDT') { |
|
|
|
|
if (ths.USDTPrie[i].currencyPair == 'ETH-USDT') { |
|
|
|
|
// console.log(this.USDTPrie[i].amount); |
|
|
|
|
// |
|
|
|
|
ethCount = this.userTimeMoneyDto.eth * this.USDTPrie[i].amount; |
|
|
|
|
ethCount = ths.userTimeMoneyDto.eth * ths.USDTPrie[i].amount; |
|
|
|
|
// console.log('btc'+this.btcPrice); |
|
|
|
|
} |
|
|
|
|
// return this.btcPrice; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ths.btcRMBCount = btcCount * cnyAmount; |
|
|
|
|
ths.usdtRMBCount = usdtCount * cnyAmount; |
|
|
|
|
ths.eosRMBCount = eosCount * cnyAmount; |
|
|
|
|
ths.ethRMBCount = ethCount * cnyAmount; |
|
|
|
|
|
|
|
|
|
let digitWallet = |
|
|
|
|
(btcCount + usdtCount + eosCount + ethCount) * cnyAmount; |
|
|
|
|
ths.btcRMBCount + ths.usdtRMBCount + ths.eosRMBCount + ths.ethRMBCount; |
|
|
|
|
|
|
|
|
|
let total = |
|
|
|
|
digitWallet + |
|
|
|
|
this.userTimeMoneyDto.aliPay + |
|
|
|
|
this.userTimeMoneyDto.wxPay + |
|
|
|
|
this.userTimeMoneyDto.bankCard; |
|
|
|
|
ths.userTimeMoneyDto.aliPay + |
|
|
|
|
ths.userTimeMoneyDto.wxPay + |
|
|
|
|
ths.userTimeMoneyDto.bankCard; |
|
|
|
|
// 获取总资产 |
|
|
|
|
this.tatolPrice = Math.floor(total * 10) / 10; |
|
|
|
|
ths.tatolPrice = Math.floor(total * 10) / 10; |
|
|
|
|
|
|
|
|
|
// console.log(this.tatolPrice); |
|
|
|
|
}); |
|
|
|
@ -575,7 +586,7 @@ export default { |
|
|
|
|
margin: 6px 8px; |
|
|
|
|
|
|
|
|
|
&:first-child { |
|
|
|
|
margin-top: 58px; |
|
|
|
|
margin-top: 88px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|