二维码修改,充值方式修改

master
钟海欣 5 years ago
parent 2f07f90187
commit ef1e6e06f7
  1. BIN
      src/assets/home/iPhone.png
  2. BIN
      src/assets/home/qrcode.png
  3. 123
      src/components/balances/balances-deposit-widget.vue
  4. 97
      src/components/balances/banlanes-tabds.vue
  5. 124
      src/components/balances/bibi-balances/bibi-balances-deposit.vue
  6. 96
      src/components/balances/bibi-balances/bibi-balances-table.vue
  7. 4
      src/pages/index.vue

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

@ -2,12 +2,12 @@
<div class="balances-deposit-widget">
<!-- 充币地址 -->
<div class="deposit-address">
<p>{{$t('recharge.table.header_addr')}}</p>
<p>{{ $t('recharge.table.header_addr') }}</p>
<!-- 复制功能 -->
<div class="deposit-address_inner">
<div class="deposit-address_body">
<!-- 充币地址 -->
<div class="deposit-address_text">{{taInfo.addr}}</div>
<div class="deposit-address_text">{{ taInfo.addr }}</div>
<div class="deposit-address_action">
<el-tooltip
effect="light"
@ -21,16 +21,17 @@
ref="chargeAddressCopyBtn"
:data-clipboard-text="taInfo.addr"
type="text"
>{{$t('recharge.table.header_copy')}}</el-button>
>{{ $t('recharge.table.header_copy') }}</el-button
>
</el-tooltip>
<!--<el-button size="" type="text">显示二维码</el-button>-->
</div>
<!-- eos需要备注 -->
<div v-show="taInfo.tokenSymbol=='EOS'?true:false" class="file">
<div v-show="taInfo.tokenSymbol == 'EOS' ? true : false" class="file">
<!-- 充币备注 -->
<p>{{$t('recharge.table.header_remarks')}}</p>
<div class="deposit-address_text">{{taInfo.id}}</div>
<p>{{ $t('recharge.table.header_remarks') }}</p>
<div class="deposit-address_text">{{ taInfo.id }}</div>
<!-- 复制功能 -->
<div class="deposit-address_action">
<el-tooltip
@ -45,7 +46,8 @@
ref="chargeAddressCopyId"
:data-clipboard-text="taInfo.id"
type="text"
>{{$t('recharge.table.header_copy')}}</el-button>
>{{ $t('recharge.table.header_copy') }}</el-button
>
</el-tooltip>
<!--<el-button size="" type="text">显示二维码</el-button>-->
</div>
@ -60,24 +62,35 @@
</div>
</div>
<!-- 扫码充值 -->
<div class="deposit-address_qrcodeText">{{$t('balances.table.header_sweep')}}</div>
<div class="deposit-address_qrcodeText">
{{ $t('balances.table.header_sweep') }}
</div>
</div>
</div>
</div>
<div class="addBox">
<div class="add" @click="surerecharge">确认充值</div>
</div>
<!-- 温馨提示 -->
<div class="tips">
<p class="tips_header">{{$t('recharge.table.header_tips')}}</p>
<p class="tips_header">{{ $t('recharge.table.header_tips') }}</p>
<div class="tips-list">
<div
class="tips-list_item"
>1.{{$t('recharge.table.header_deal1')}}{{taInfo.tokenSymbol}}{{$t('recharge.table.header_deal2')}}</div>
<div
class="tips-list_item"
>2.{{taInfo.tokenSymbol}}{{$t('recharge.table.header_financial')}}</div>
<div class="tips-list_item">3.{{$t('recharge.table.header_currency')}}</div>
<div class="tips-list_item">4.{{$t('recharge.table.header_repeat')}}</div>
<div class="tips-list_item">5.{{$t('recharge.table.header_safety')}}</div>
<div class="tips-list_item">
1.{{ $t('recharge.table.header_deal1') }}{{ taInfo.tokenSymbol
}}{{ $t('recharge.table.header_deal2') }}
</div>
<div class="tips-list_item">
2.{{ taInfo.tokenSymbol }}{{ $t('recharge.table.header_financial') }}
</div>
<div class="tips-list_item">
3.{{ $t('recharge.table.header_currency') }}
</div>
<div class="tips-list_item">
4.{{ $t('recharge.table.header_repeat') }}
</div>
<div class="tips-list_item">
5.{{ $t('recharge.table.header_safety') }}
</div>
</div>
</div>
</div>
@ -86,6 +99,11 @@
<script>
import Clipboard from 'clipboard';
// import {QRcode} from '@/common/qrcode';
import {addBtc} from '@/api/btc.js';
import {addEth} from '@/api/eth.js';
import {addEos} from '@/api/eos.js';
export default {
name: 'BalancesDepositWidget',
@ -226,6 +244,57 @@ export default {
clipboard.destroy();
});
},
//
surerecharge() {
var name = this.taInfo;
if (name.tokenSymbol == 'EOS') {
addEos({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'CCT',
}).then(res => {
if (res.data.code === 200) {
//
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
} else if (name.tokenSymbol == 'BTC' || name.tokenSymbol == 'USDT') {
addBtc({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'CCT',
}).then(res => {
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
} else {
addEth({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'CCT',
}).then(res => {
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
}
},
},
};
</script>
@ -344,4 +413,20 @@ export default {
.el-dialog__body {
padding: 35px;
}
.addBox {
position: relative;
margin-bottom: 60px;
}
.add {
color: #e8c141;
display: inline-block;
padding: 12px 12px;
// background-color: #e8494a;
border-radius: 3px;
border: 1px solid #e8c141;
cursor: pointer;
position: absolute;
top: 0;
left: 40%;
}
</style>

@ -469,55 +469,56 @@ export default {
// this.$message.warning('!');
// return;
// }
// this.ctrl.depositDialogVisible = true;
this.ctrl.depositDialogVisible = true;
this.tatoo = name;
if (name.tokenSymbol == 'EOS') {
addEos({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'CCT',
}).then(res => {
if (res.data.code === 200) {
//
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
} else if (name.tokenSymbol == 'BTC' || name.tokenSymbol == 'USDT') {
addBtc({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'CCT',
}).then(res => {
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
} else {
addEth({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'CCT',
}).then(res => {
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
}
// if (name.tokenSymbol == 'EOS') {
// addEos({
// addr: name.addr,
// tokenId: name.tokenSymbol,
// walletType: 'CCT',
// }).then(res => {
// if (res.data.code === 200) {
// //
// this.$message.success(this.$t('balances.table.add'));
// setInterval(() => {
// location.reload(); //
// }, 1000);
// } else {
// this.$message.error(res.data.msg);
// }
// });
// } else if (name.tokenSymbol == 'BTC' || name.tokenSymbol == 'USDT') {
// addBtc({
// addr: name.addr,
// tokenId: name.tokenSymbol,
// walletType: 'CCT',
// }).then(res => {
// if (res.data.code === 200) {
// this.$message.success(this.$t('balances.table.add'));
// setInterval(() => {
// location.reload(); //
// }, 1000);
// } else {
// this.$message.error(res.data.msg);
// }
// });
// } else {
// addEth({
// addr: name.addr,
// tokenId: name.tokenSymbol,
// walletType: 'CCT',
// }).then(res => {
// if (res.data.code === 200) {
// this.$message.success(this.$t('balances.table.add'));
// setInterval(() => {
// location.reload(); //
// }, 1000);
// } else {
// this.$message.error(res.data.msg);
// }
// });
// }
break;
case 'withdrawal':
//

@ -2,12 +2,12 @@
<div class="balances-deposit-widget">
<!-- 充币地址 -->
<div class="deposit-address">
<p>{{$t('recharge.table.header_addr')}}</p>
<p>{{ $t('recharge.table.header_addr') }}</p>
<!-- 复制功能 -->
<div class="deposit-address_inner">
<div class="deposit-address_body">
<!-- 充币地址 -->
<div class="deposit-address_text">{{taInfo.addr}}</div>
<div class="deposit-address_text">{{ taInfo.addr }}</div>
<div class="deposit-address_action">
<el-tooltip
effect="light"
@ -21,16 +21,17 @@
ref="chargeAddressCopyBtn"
:data-clipboard-text="taInfo.addr"
type="text"
>{{$t('recharge.table.header_copy')}}</el-button>
>{{ $t('recharge.table.header_copy') }}</el-button
>
</el-tooltip>
<!--<el-button size="" type="text">显示二维码</el-button>-->
</div>
<!-- eos需要备注 -->
<div v-show="taInfo.tokenSymbol=='EOS'?true:false" class="file">
<div v-show="taInfo.tokenSymbol == 'EOS' ? true : false" class="file">
<!-- 充币备注 -->
<p>{{$t('recharge.table.header_remarks')}}</p>
<div class="deposit-address_text">{{taInfo.id}}</div>
<p>{{ $t('recharge.table.header_remarks') }}</p>
<div class="deposit-address_text">{{ taInfo.id }}</div>
<!-- 复制功能 -->
<div class="deposit-address_action">
<el-tooltip
@ -45,7 +46,8 @@
ref="chargeAddressCopyId"
:data-clipboard-text="taInfo.id"
type="text"
>{{$t('recharge.table.header_copy')}}</el-button>
>{{ $t('recharge.table.header_copy') }}</el-button
>
</el-tooltip>
<!--<el-button size="" type="text">显示二维码</el-button>-->
</div>
@ -60,24 +62,35 @@
</div>
</div>
<!-- 扫码充值 -->
<div class="deposit-address_qrcodeText">{{$t('balances.table.header_sweep')}}</div>
<div class="deposit-address_qrcodeText">
{{ $t('balances.table.header_sweep') }}
</div>
</div>
</div>
</div>
<div class="addBox">
<div class="add" @click="surerecharge">确认充值</div>
</div>
<!-- 温馨提示 -->
<div class="tips">
<p class="tips_header">{{$t('recharge.table.header_tips')}}</p>
<p class="tips_header">{{ $t('recharge.table.header_tips') }}</p>
<div class="tips-list">
<div
class="tips-list_item"
>1.{{$t('recharge.table.header_deal1')}}{{taInfo.tokenSymbol}}{{$t('recharge.table.header_deal2')}}</div>
<div
class="tips-list_item"
>2.{{taInfo.tokenSymbol}}{{$t('recharge.table.header_financial')}}</div>
<div class="tips-list_item">3.{{$t('recharge.table.header_currency')}}</div>
<div class="tips-list_item">4.{{$t('recharge.table.header_repeat')}}</div>
<div class="tips-list_item">5.{{$t('recharge.table.header_safety')}}</div>
<div class="tips-list_item">
1.{{ $t('recharge.table.header_deal1') }}{{ taInfo.tokenSymbol
}}{{ $t('recharge.table.header_deal2') }}
</div>
<div class="tips-list_item">
2.{{ taInfo.tokenSymbol }}{{ $t('recharge.table.header_financial') }}
</div>
<div class="tips-list_item">
3.{{ $t('recharge.table.header_currency') }}
</div>
<div class="tips-list_item">
4.{{ $t('recharge.table.header_repeat') }}
</div>
<div class="tips-list_item">
5.{{ $t('recharge.table.header_safety') }}
</div>
</div>
</div>
</div>
@ -86,7 +99,11 @@
<script>
import Clipboard from 'clipboard';
// import {QRcode} from '@/common/qrcode';
import {addBtc} from '@/api/btc.js';
import {addEth} from '@/api/eth.js';
import {addEos} from '@/api/eos.js';
export default {
name: 'BibiBalancesDeposit',
props: {
@ -168,7 +185,7 @@ export default {
}
timeoutPending = setTimeout(() => {
tip.visible = false;
},1000);
}, 1000);
}
};
@ -223,6 +240,57 @@ export default {
clipboard.destroy();
});
},
//
surerecharge() {
var name = this.taInfo;
if (name.tokenSymbol == 'EOS') {
addEos({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'C2C',
}).then(res => {
if (res.data.code === 200) {
//
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
} else if (name.tokenSymbol == 'BTC' || name.tokenSymbol == 'USDT') {
addBtc({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'C2C',
}).then(res => {
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
} else {
addEth({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'C2C',
}).then(res => {
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
}
},
},
};
</script>
@ -341,4 +409,20 @@ export default {
.el-dialog__body {
padding: 35px;
}
.addBox {
position: relative;
margin-bottom: 60px;
}
.add {
color: #e8c141;
display: inline-block;
padding: 12px 12px;
// background-color: #e8494a;
border-radius: 3px;
border: 1px solid #e8c141;
cursor: pointer;
position: absolute;
top: 0;
left: 40%;
}
</style>

@ -473,55 +473,55 @@ export default {
// return;
// }
//
// this.ctrl.depositDialogVisible = true;
this.ctrl.depositDialogVisible = true;
this.tatoo = name;
if (name.tokenSymbol == 'EOS') {
addEos({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'C2C',
}).then(res => {
if (res.data.code === 200) {
//
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
} else if (name.tokenSymbol == 'BTC' || name.tokenSymbol == 'USDT') {
addBtc({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'C2C',
}).then(res => {
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
} else {
addEth({
addr: name.addr,
tokenId: name.tokenSymbol,
walletType: 'C2C',
}).then(res => {
if (res.data.code === 200) {
this.$message.success(this.$t('balances.table.add'));
setInterval(() => {
location.reload(); //
}, 1000);
} else {
this.$message.error(res.data.msg);
}
});
}
// if (name.tokenSymbol == 'EOS') {
// addEos({
// addr: name.addr,
// tokenId: name.tokenSymbol,
// walletType: 'C2C',
// }).then(res => {
// if (res.data.code === 200) {
// //
// this.$message.success(this.$t('balances.table.add'));
// setInterval(() => {
// location.reload(); //
// }, 1000);
// } else {
// this.$message.error(res.data.msg);
// }
// });
// } else if (name.tokenSymbol == 'BTC' || name.tokenSymbol == 'USDT') {
// addBtc({
// addr: name.addr,
// tokenId: name.tokenSymbol,
// walletType: 'C2C',
// }).then(res => {
// if (res.data.code === 200) {
// this.$message.success(this.$t('balances.table.add'));
// setInterval(() => {
// location.reload(); //
// }, 1000);
// } else {
// this.$message.error(res.data.msg);
// }
// });
// } else {
// addEth({
// addr: name.addr,
// tokenId: name.tokenSymbol,
// walletType: 'C2C',
// }).then(res => {
// if (res.data.code === 200) {
// this.$message.success(this.$t('balances.table.add'));
// setInterval(() => {
// location.reload(); //
// }, 1000);
// } else {
// this.$message.error(res.data.msg);
// }
// });
// }
break;
case 'withdrawal':

@ -264,7 +264,7 @@
</div>
<!-- 二维码 -->
<!-- <div class="qrCode">
<div class="qrCode">
<img src="../assets/home/iPhone.png" alt />
<div class="qrCode-contant">
<div class="qrCode-char">{{ $t('price.index.index_here') }}</div>
@ -276,7 +276,7 @@
<div>iOS & Android</div>
</div>
</div>
</div> -->
</div>
<Footer></Footer>
</div>
</template>

Loading…
Cancel
Save