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

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

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