|
|
@ -116,6 +116,49 @@ |
|
|
|
<a href="javascript:;" class="entry-btn"> |
|
|
|
<a href="javascript:;" class="entry-btn"> |
|
|
|
<img src="../images/entry/btn.png" /> |
|
|
|
<img src="../images/entry/btn.png" /> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
<!-- <div class="usdList"> |
|
|
|
|
|
|
|
<div class="usdItem" element-loading-background="rgba(0, 0, 0, 0.2)"> |
|
|
|
|
|
|
|
<!-- 跳转到交易中心,携带交易对 --/> |
|
|
|
|
|
|
|
<a href="javascript:;"> |
|
|
|
|
|
|
|
<p>微信 <i class="el-icon-star-off"></i></p> |
|
|
|
|
|
|
|
<p>初始资金:{{ userTimeMoneyDto.wxPayInit}} CNY</p> |
|
|
|
|
|
|
|
<p>余额:{{ userTimeMoneyDto.wxPay }} CNY</p> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="usdItem" element-loading-background="rgba(0, 0, 0, 0.2)"> |
|
|
|
|
|
|
|
<!-- 跳转到交易中心,携带交易对 --/> |
|
|
|
|
|
|
|
<a href="javascript:;"> |
|
|
|
|
|
|
|
<p>支付宝 <i class="el-icon-star-off"></i></p> |
|
|
|
|
|
|
|
<p>初始资金:{{ userTimeMoneyDto.aliPayInit}} CNY</p> |
|
|
|
|
|
|
|
<p>余额:{{ userTimeMoneyDto.aliPay }} CNY</p> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="usdItem" element-loading-background="rgba(0, 0, 0, 0.2)"> |
|
|
|
|
|
|
|
<!-- 跳转到交易中心,携带交易对 --/> |
|
|
|
|
|
|
|
<a href="javascript:;"> |
|
|
|
|
|
|
|
<p>银行卡 <i class="el-icon-star-off"></i></p> |
|
|
|
|
|
|
|
<p>初始资金:{{ userTimeMoneyDto.bankCardInit}} CNY</p> |
|
|
|
|
|
|
|
<p>余额:{{ userTimeMoneyDto.bankCard }} CNY</p> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="usdList tabs"> |
|
|
|
|
|
|
|
<el-tabs v-model="activeName"> |
|
|
|
|
|
|
|
<el-tab-pane label="BTC" name="BTC" |
|
|
|
|
|
|
|
>余额:{{ userTimeMoneyDto.btc }} <br/><br/> 总额≈:{{tatolPrice}} CNY <br/><br/> 地址:{{userTimeMoneyDto.assessUserId}}</el-tab-pane |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-tab-pane label="USDT" name="USDT" |
|
|
|
|
|
|
|
>余额:{{ userTimeMoneyDto.usdt }} <br/><br/> 总额≈:{{tatolPrice}} CNY <br/><br/> 地址:{{userTimeMoneyDto.assessUserId}}</el-tab-pane |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-tab-pane label="EOS" name="EOS" |
|
|
|
|
|
|
|
>余额:{{ userTimeMoneyDto.eos }} <br/><br/> 总额≈:{{tatolPrice}} CNY <br/><br/> 地址:{{userTimeMoneyDto.assessUserId}}</el-tab-pane |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-tab-pane label="ETH" name="ETH" |
|
|
|
|
|
|
|
>余额:{{ userTimeMoneyDto.eth }} <br/><br/> 总额≈:{{tatolPrice}} CNY <br/><br/> 地址:{{userTimeMoneyDto.assessUserId}}</el-tab-pane |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
</div>--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<Footer /> |
|
|
|
<Footer /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -124,12 +167,15 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import NavHeader from '@/components/common/header'; |
|
|
|
import NavHeader from '@/components/common/header'; |
|
|
|
import Footer from '@/components/common/footer'; |
|
|
|
import Footer from '@/components/common/footer'; |
|
|
|
|
|
|
|
import {getUserTimeMoneyDto} from '@/api/yyyf'; |
|
|
|
|
|
|
|
import {getLeftPrice} from '@/api/currency.js'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'entry', |
|
|
|
name: 'entry', |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
activeName: 'BTC', |
|
|
|
activeName: 'BTC', |
|
|
|
|
|
|
|
userTimeMoneyDto: {}, |
|
|
|
|
|
|
|
tatolPrice: 0, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { |
|
|
|
components: { |
|
|
@ -137,7 +183,79 @@ export default { |
|
|
|
Footer, |
|
|
|
Footer, |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
handleClick() {}, |
|
|
|
getUSDTPrie() { |
|
|
|
|
|
|
|
getLeftPrice().then(res => { |
|
|
|
|
|
|
|
this.USDTPrie = res.data.data; |
|
|
|
|
|
|
|
// console.log(this.USDTPrie); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取币种汇率 |
|
|
|
|
|
|
|
let cnyAmount = this.USDTPrie[0].cnyAmount; |
|
|
|
|
|
|
|
let btcCount = 0; |
|
|
|
|
|
|
|
let usdtCount = this.userTimeMoneyDto.usdt; |
|
|
|
|
|
|
|
let eosCount = 0; |
|
|
|
|
|
|
|
let ethCount = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < this.USDTPrie.length; i++) { |
|
|
|
|
|
|
|
// 获取btc转usdt资产 |
|
|
|
|
|
|
|
if (this.USDTPrie[i].currencyPair == 'BTC-USDT') { |
|
|
|
|
|
|
|
// console.log(this.USDTPrie[i].amount); |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
btcCount = this.userTimeMoneyDto.btc * this.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') { |
|
|
|
|
|
|
|
// console.log(this.USDTPrie[i].amount); |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
eosCount = this.userTimeMoneyDto.eos * this.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 == 'ETH-USDT') { |
|
|
|
|
|
|
|
// console.log(this.USDTPrie[i].amount); |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
ethCount = this.userTimeMoneyDto.eth * this.USDTPrie[i].amount; |
|
|
|
|
|
|
|
// console.log('btc'+this.btcPrice); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// return this.btcPrice; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let digitWallet = |
|
|
|
|
|
|
|
(btcCount + usdtCount + eosCount + ethCount) * cnyAmount; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let total = |
|
|
|
|
|
|
|
digitWallet + |
|
|
|
|
|
|
|
this.userTimeMoneyDto.aliPay + |
|
|
|
|
|
|
|
this.userTimeMoneyDto.wxPay + |
|
|
|
|
|
|
|
this.userTimeMoneyDto.bankCard; |
|
|
|
|
|
|
|
// 获取总资产 |
|
|
|
|
|
|
|
this.tatolPrice = Math.floor(total * 10) / 10; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(this.tatolPrice); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
|
|
|
|
getUserTimeMoneyDto().then(res => { |
|
|
|
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
|
|
|
this.userTimeMoneyDto = res.data.data; |
|
|
|
|
|
|
|
this.getUSDTPrie(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.warning({ |
|
|
|
|
|
|
|
message: res.data.msg, |
|
|
|
|
|
|
|
onClose: function() { |
|
|
|
|
|
|
|
this.closeWindow(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|