提交 1d8edd5e authored 作者: zhanglian's avatar zhanglian

输入限制 + 没选 token 的时候 不报错

上级 b72e2909
...@@ -189,6 +189,9 @@ export default { ...@@ -189,6 +189,9 @@ export default {
} }
}, },
networkAlert() { networkAlert() {
if(!this.holdItem.coinData.chainId || !this.exchangeItem.coinData.chainId){
return;
}
let fromChainName = this.formateChainName(this.holdItem.coinData.chainId); let fromChainName = this.formateChainName(this.holdItem.coinData.chainId);
let toChainName = this.formateChainName(this.exchangeItem.coinData.chainId); let toChainName = this.formateChainName(this.exchangeItem.coinData.chainId);
// let currentChainName = this.formateChainName(this.chainId); // let currentChainName = this.formateChainName(this.chainId);
...@@ -277,27 +280,27 @@ export default { ...@@ -277,27 +280,27 @@ export default {
let holdName = this.holdItem.coinData.name let holdName = this.holdItem.coinData.name
let isTKM = holdName == 'TKM' || holdName == 'BTKM' || holdName == 'TKM3' || holdName == 'BTKM3' let isTKM = holdName == 'TKM' || holdName == 'BTKM' || holdName == 'TKM3' || holdName == 'BTKM3'
let minNum = 0 let minNum = 0
// if (isTKM && value < 1000) { if (isTKM && value < 1000) {
// minNum = 1000 minNum = 1000
// this.$dialog.alert({ this.$dialog.alert({
// title: this.$t('title'), title: this.$t('title'),
// message: this.$t('placeholder3', { minNum }), message: this.$t('placeholder3', { minNum }),
// confirmButtonText: this.$t('confirm') confirmButtonText: this.$t('confirm')
// }).then(() => { }).then(() => {
// // on close // on close
// }); });
// return; return;
// } else if (!isTKM && value < 200) { } else if (!isTKM && value < 200) {
// minNum = 200 minNum = 200
// this.$dialog.alert({ this.$dialog.alert({
// title: this.$t('title'), title: this.$t('title'),
// message: this.$t('placeholder3', { minNum }), message: this.$t('placeholder3', { minNum }),
// confirmButtonText: this.$t('confirm') confirmButtonText: this.$t('confirm')
// }).then(() => { }).then(() => {
// // on close // on close
// }); });
// return; return;
// } }
this.pageLoading = true; this.pageLoading = true;
try { try {
if (holdItem.coinData.type == 'main') { if (holdItem.coinData.type == 'main') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论