全景页面总额、地址、以及去掉法币交易的充值、提币,币币交易的充值改为充币

master
unclekh 4 years ago
parent a3222d7762
commit 7d87d35f92
  1. 25
      src/components/balances/banlanes-tabds.vue
  2. 2
      src/components/common/header.vue
  3. 2
      src/locales/lang/balances.zh-CN.js
  4. 2
      src/locales/lang/balances.zh-HK.js
  5. 73
      src/pages/entry.vue

@ -78,19 +78,19 @@
<el-button type="text" class="white size">o.oooooo</el-button> <el-button type="text" class="white size">o.oooooo</el-button>
</div>--> </div>-->
<div> <div>
<!-- 充值 --> <!-- 充值
<span <span
class="blue" class="blue"
@click="handleTableActionClick('deposit', itembtc)" @click="handleTableActionClick('deposit', itembtc)"
type="text" type="text"
>{{ $t('balances.table.header_last_recharge') }}</span >{{ $t('balances.table.header_last_recharge') }}</span
> > -->
<!-- 提币 --> <!-- 提币
<span <span
@click="handleTableActionClick('withdrawal', itembtc)" @click="handleTableActionClick('withdrawal', itembtc)"
type="text" type="text"
>{{ $t('balances.table.header_last_mention') }}</span >{{ $t('balances.table.header_last_mention') }}</span
> > -->
<!-- 划转 --> <!-- 划转 -->
<span <span
@click="handleTableActionClick('transfer', itembtc)" @click="handleTableActionClick('transfer', itembtc)"
@ -148,18 +148,18 @@
</div> </div>
<div> <div>
<!-- 充值 --> <!-- 充值
<span <span
@click="handleTableActionClick('deposit', itemETH)" @click="handleTableActionClick('deposit', itemETH)"
type="text" type="text"
>{{ $t('balances.table.header_last_recharge') }}</span >{{ $t('balances.table.header_last_recharge') }}</span
> >-->
<!-- 提币 --> <!-- 提币
<span <span
@click="handleTableActionClick('withdrawal', itemETH)" @click="handleTableActionClick('withdrawal', itemETH)"
type="text" type="text"
>{{ $t('balances.table.header_last_mention') }}</span >{{ $t('balances.table.header_last_mention') }}</span
> > -->
<!-- 划转 --> <!-- 划转 -->
<span <span
@click="handleTableActionClick('transfer', itemETH)" @click="handleTableActionClick('transfer', itemETH)"
@ -216,18 +216,18 @@
}}</span> }}</span>
</div> </div>
<div> <div>
<!-- 充值 --> <!-- 充值
<span <span
@click="handleTableActionClick('deposit', item)" @click="handleTableActionClick('deposit', item)"
type="text" type="text"
>{{ $t('balances.table.header_last_recharge') }}</span >{{ $t('balances.table.header_last_recharge') }}</span
> >-->
<!-- 提币 --> <!-- 提币
<span <span
@click="handleTableActionClick('withdrawal', item)" @click="handleTableActionClick('withdrawal', item)"
type="text" type="text"
>{{ $t('balances.table.header_last_mention') }}</span >{{ $t('balances.table.header_last_mention') }}</span
> > -->
<!-- 划转 --> <!-- 划转 -->
<span <span
@click="handleTableActionClick('transfer', item)" @click="handleTableActionClick('transfer', item)"
@ -682,6 +682,7 @@ export default {
// btcusdt // btcusdt
if (this.USDTPrie[i].currencyPair == 'BTC-USDT') { if (this.USDTPrie[i].currencyPair == 'BTC-USDT') {
// console.log(this.USDTPrie[i].amount); // console.log(this.USDTPrie[i].amount);
//
this.btcPrice = this.btcMang * this.USDTPrie[i].amount; this.btcPrice = this.btcMang * this.USDTPrie[i].amount;
// console.log('btc'+this.btcPrice); // console.log('btc'+this.btcPrice);
} }

@ -515,7 +515,7 @@ export default {
// //
localStorage.setItem('invitationCode', res.data.data.invitationCode); localStorage.setItem('invitationCode', res.data.data.invitationCode);
this.isSubmit = false; this.isSubmit = false;
//location.href = '/entry'; location.href = '/entry';
} else { } else {
this.$message.warning(res.data.msg); this.$message.warning(res.data.msg);
this.isSubmit = false; this.isSubmit = false;

@ -6,7 +6,7 @@ export default {
header_last_yes: '可用', header_last_yes: '可用',
header_last_no: '冻结', header_last_no: '冻结',
header_last_ok: '操作', header_last_ok: '操作',
header_last_recharge: '充', header_last_recharge: '充',
header_last_mention: '提币', header_last_mention: '提币',
header_last_deal: '交易', header_last_deal: '交易',
header_last_financial: '财务记录', header_last_financial: '财务记录',

@ -6,7 +6,7 @@ export default {
header_last_yes: '可用', header_last_yes: '可用',
header_last_no: '凍結', header_last_no: '凍結',
header_last_ok: '操作', header_last_ok: '操作',
header_last_recharge: '充', header_last_recharge: '充',
header_last_mention: '提幣', header_last_mention: '提幣',
header_last_deal: '交易', header_last_deal: '交易',
header_last_financial: '財務記錄', header_last_financial: '財務記錄',

@ -6,7 +6,7 @@
<!-- 跳转到交易中心,携带交易对 --> <!-- 跳转到交易中心,携带交易对 -->
<a href="javascript:;"> <a href="javascript:;">
<p>微信 <i class="el-icon-star-off"></i></p> <p>微信 <i class="el-icon-star-off"></i></p>
<p>初始资金{{ userTimeMoneyDto.wxPayInit }}</p> <p>初始资金{{ userTimeMoneyDto.wxPayInit}} CNY</p>
<p>余额{{ userTimeMoneyDto.wxPay }} CNY</p> <p>余额{{ userTimeMoneyDto.wxPay }} CNY</p>
</a> </a>
</div> </div>
@ -14,7 +14,7 @@
<!-- 跳转到交易中心,携带交易对 --> <!-- 跳转到交易中心,携带交易对 -->
<a href="javascript:;"> <a href="javascript:;">
<p>支付宝 <i class="el-icon-star-off"></i></p> <p>支付宝 <i class="el-icon-star-off"></i></p>
<p>初始资金{{ userTimeMoneyDto.aliPayInit }}</p> <p>初始资金{{ userTimeMoneyDto.aliPayInit}} CNY</p>
<p>余额{{ userTimeMoneyDto.aliPay }} CNY</p> <p>余额{{ userTimeMoneyDto.aliPay }} CNY</p>
</a> </a>
</div> </div>
@ -22,7 +22,7 @@
<!-- 跳转到交易中心,携带交易对 --> <!-- 跳转到交易中心,携带交易对 -->
<a href="javascript:;"> <a href="javascript:;">
<p>银行卡 <i class="el-icon-star-off"></i></p> <p>银行卡 <i class="el-icon-star-off"></i></p>
<p>初始资金{{ userTimeMoneyDto.bankCardInit }}</p> <p>初始资金{{ userTimeMoneyDto.bankCardInit}} CNY</p>
<p>余额{{ userTimeMoneyDto.bankCard }} CNY</p> <p>余额{{ userTimeMoneyDto.bankCard }} CNY</p>
</a> </a>
</div> </div>
@ -31,16 +31,16 @@
<div class="usdList tabs"> <div class="usdList tabs">
<el-tabs v-model="activeName"> <el-tabs v-model="activeName">
<el-tab-pane label="BTC" name="BTC" <el-tab-pane label="BTC" name="BTC"
>余额{{ userTimeMoneyDto.btc }}</el-tab-pane >余额{{ userTimeMoneyDto.btc }} <br/><br/> 总额{{tatolPrice}} CNY <br/><br/> 地址{{userTimeMoneyDto.assessUserId}}</el-tab-pane
> >
<el-tab-pane label="USDT" name="USDT" <el-tab-pane label="USDT" name="USDT"
>余额{{ userTimeMoneyDto.usdt }}</el-tab-pane >余额{{ userTimeMoneyDto.usdt }} <br/><br/> 总额{{tatolPrice}} CNY <br/><br/> 地址{{userTimeMoneyDto.assessUserId}}</el-tab-pane
> >
<el-tab-pane label="EOS" name="EOS" <el-tab-pane label="EOS" name="EOS"
>余额{{ userTimeMoneyDto.eos }}</el-tab-pane >余额{{ userTimeMoneyDto.eos }} <br/><br/> 总额{{tatolPrice}} CNY <br/><br/> 地址{{userTimeMoneyDto.assessUserId}}</el-tab-pane
> >
<el-tab-pane label="ETH" name="ETH" <el-tab-pane label="ETH" name="ETH"
>余额{{ userTimeMoneyDto.eth }}</el-tab-pane >余额{{ userTimeMoneyDto.eth }} <br/><br/> 总额{{tatolPrice}} CNY <br/><br/> 地址{{userTimeMoneyDto.assessUserId}}</el-tab-pane
> >
</el-tabs> </el-tabs>
</div> </div>
@ -52,22 +52,81 @@
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 {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: {}, userTimeMoneyDto: {},
tatolPrice:0
}; };
}, },
components: { components: {
NavHeader, NavHeader,
Footer, Footer,
}, },
methods:{
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++) {
// btcusdt
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++) {
// btcusdt
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++) {
// btcusdt
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() { created() {
getUserTimeMoneyDto().then(res => { getUserTimeMoneyDto().then(res => {
if (res.data.code === 200) { if (res.data.code === 200) {
this.userTimeMoneyDto = res.data.data; this.userTimeMoneyDto = res.data.data;
this.getUSDTPrie();
} else { } else {
this.$message.warning({ this.$message.warning({
message: res.data.msg, message: res.data.msg,

Loading…
Cancel
Save