提交 c7a922f9 authored 作者: xuliangying's avatar xuliangying

+ tip

上级 7a4047c6
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
console.log("11111",clientWidth) console.log("11111",clientWidth)
if (!clientWidth) return; if (!clientWidth) return;
if (clientWidth >= 640) { if (clientWidth >= 640) {
docEl.style.fontSize = 16 + 'px'; docEl.style.fontSize = 16 * 4 + 'px';
} else { } else {
docEl.style.fontSize = 100 * (clientWidth / 750) + 'px'; docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
// console.log("00001111") // console.log("00001111")
......
export default { export default {
connectWallet: 'Link wallet', connectWallet: 'Link wallet',
balance: 'Balance', balance: 'Balance',
placeholder1: 'Please enter the exchange quantity (must be greater than 10)', placeholder1: 'Please enter the exchange quantity',
expectedGet: 'Expected to get', expectedGet: 'Expected to get',
handlingFee: 'Handling fee', handlingFee: 'Handling fee',
transfer: 'exchange', transfer: 'exchange',
chain: 'chain', chain: 'chain',
title: 'title', title: 'title',
placeholder2: 'Please enter the transfer amount', placeholder2: 'Please enter the transfer amount',
placeholder3: 'The exchange quantity must be greater than 10', placeholder3: 'The exchange quantity must be greater than {minNum}',
successfulTransfer: 'Successful transfer', successfulTransfer: 'Successful transfer',
failedTransfer: 'Transfer failed', failedTransfer: 'Transfer failed',
placeholder4: 'You have selected the cross-chain access from {fromChainName} to {toChainName}. The current connection network is not the {fromChainName} network. Please switch the {fromChainName} network to complete the cross-chain operation.', placeholder4: 'You have selected the cross-chain access from {fromChainName} to {toChainName}. The current connection network is not the {fromChainName} network. Please switch the {fromChainName} network to complete the cross-chain operation.',
confirm: 'confirm', confirm: 'confirm',
chooseToken: 'Choose Token',
} }
export default { export default {
connectWallet: 'リンクウォレット', connectWallet: 'リンクウォレット',
balance: 'バランス', balance: 'バランス',
placeholder1: '交換数量を入力してください(10より大きくする必要があります)', placeholder1: '交換数量を入力してください',
expectedGet: '取得する予定', expectedGet: '取得する予定',
handlingFee: '手数料', handlingFee: '手数料',
transfer: '両替', transfer: '両替',
chain: '鎖', chain: '鎖',
title: 'タイトル', title: 'タイトル',
placeholder2: '振込金額を入力してください', placeholder2: '振込金額を入力してください',
placeholder3: '交換数量は10より大きくなければなりません', placeholder3: '交換数量は{minNum}より大きくなければなりません',
successfulTransfer: '転送の成功', successfulTransfer: '転送の成功',
failedTransfer: '転送に失敗しました', failedTransfer: '転送に失敗しました',
placeholder4: '{fromChainName}から{toChainName}へのクロスチェーンアクセスを選択しました。現在の接続ネットワークは{fromChainName}ネットワークではありません。{fromChainName}ネットワークを切り替えてクロスチェーン操作を完了してください。', placeholder4: '{fromChainName}から{toChainName}へのクロスチェーンアクセスを選択しました。現在の接続ネットワークは{fromChainName}ネットワークではありません。{fromChainName}ネットワークを切り替えてクロスチェーン操作を完了してください。',
confirm: '確認', confirm: '確認',
chooseToken: '選ぶToken',
} }
\ No newline at end of file
export default { export default {
connectWallet: '링크 지갑', connectWallet: '링크 지갑',
balance: '균형', balance: '균형',
placeholder1: '교환 수량을 입력하세요(10보다 커야 함).', placeholder1: '교환 수량을 입력하세요.',
expectedGet: '얻을 것으로 예상', expectedGet: '얻을 것으로 예상',
handlingFee: '수수료', handlingFee: '수수료',
transfer: '교환', transfer: '교환',
chain: '체인', chain: '체인',
title: '제목', title: '제목',
placeholder2: '이체 금액을 입력하세요.', placeholder2: '이체 금액을 입력하세요.',
placeholder3: '교환 수량은 10보다 커야 합니다.', placeholder3: '교환 수량은 {minNum}보다 커야 합니다.',
successfulTransfer: '성공적인 전송', successfulTransfer: '성공적인 전송',
failedTransfer: '전송 실패', failedTransfer: '전송 실패',
placeholder4: '{fromChainName}에서 {toChainName}(으)로의 교차 체인 액세스를 선택했습니다. 현재 연결 네트워크는 {fromChainName} 네트워크가 아닙니다. 교차 체인 작업을 완료하려면 {fromChainName} 네트워크를 전환하십시오.', placeholder4: '{fromChainName}에서 {toChainName}(으)로의 교차 체인 액세스를 선택했습니다. 현재 연결 네트워크는 {fromChainName} 네트워크가 아닙니다. 교차 체인 작업을 완료하려면 {fromChainName} 네트워크를 전환하십시오.',
confirm: '확인하다', confirm: '확인하다',
chooseToken: '선택하다Token',
} }
\ No newline at end of file
export default { export default {
connectWallet: '链接钱包', connectWallet: '链接钱包',
balance: '余额', balance: '余额',
placeholder1: '请输入兑换数量(需大于10)', placeholder1: '请输入兑换数量',
expectedGet: '预计获得', expectedGet: '预计获得',
handlingFee: '手续费', handlingFee: '手续费',
transfer: '兑换', transfer: '兑换',
chain: '链', chain: '链',
title: '标题', title: '标题',
placeholder2: '请输入转账金额', placeholder2: '请输入转账金额',
placeholder3: '兑换数量需大于10', placeholder3: '兑换数量需大于{minNum}',
successfulTransfer: '转账成功', successfulTransfer: '转账成功',
failedTransfer: '转账失败', failedTransfer: '转账失败',
placeholder4: '您已选择了从{fromChainName}到{toChainName}的跨链访问,当前连接网络并非{fromChainName}网络,请切换{fromChainName}网络后完成跨链操作。', placeholder4: '您已选择了从{fromChainName}到{toChainName}的跨链访问,当前连接网络并非{fromChainName}网络,请切换{fromChainName}网络后完成跨链操作。',
confirm: '确认', confirm: '确认',
chooseToken: '选择Token',
} }
import Vue from 'vue' import Vue from 'vue'
import VueRouter from 'vue-router' import VueRouter from 'vue-router'
import home from '../views/home.vue' import home from '../views/home.vue'
import thinkiumBridge from '../views/thinkiumBridge/pcIndex.vue'
...@@ -8,9 +9,25 @@ Vue.use(VueRouter) ...@@ -8,9 +9,25 @@ Vue.use(VueRouter)
const pcRouter = [ const pcRouter = [
{ {
path: '/home', path: '/',
name: 'home', name: '',
redirect: '/thinkiumBridge',
children: [ children: [
]
},
{
path: '/',
name: '',
component: thinkiumBridge,
children: [
{
path: '/thinkiumBridge',
name: 'thinkiumBridge',
component: thinkiumBridge,
children: [
]
}
] ]
}, },
] ]
......
<template>
<div class="container-wrap">
<thinkiumBridge></thinkiumBridge>
</div>
</template>
<script>
import thinkiumBridge from './thinkiumBridge.vue'
export default {
components: { thinkiumBridge },
data () {
return {
}
},
methods: {
},
created(){
},
}
</script>
<style scoped lang="scss">
.container-wrap{
height:100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
.container {
width: 7.5rem;
}
}
</style>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<div class="handling-fee">{{$t('handlingFee')}}<span>3%</span></div> <div class="handling-fee">{{$t('handlingFee')}}<span>3%</span></div>
</div> </div>
<div class="convert-btn" @click="transfer">{{$t('transfer')}}</div> <div class="convert-btn" @click="transfer">{{$t('transfer')}}</div>
<EDialog :title="'选择Token'" :visible="dialogVisible" @close="dialogVisible = false" v-if="dialogVisible"> <EDialog :title="$t('chooseToken')" :visible="dialogVisible" @close="dialogVisible = false" v-if="dialogVisible">
<ul class="select-list"> <ul class="select-list">
<li class="select-item" v-for="(item, index) in tokenList" :key="index" @click="changeSelect(index,item)" :class="selectIndex === index ? 'active' : ''"> <li class="select-item" v-for="(item, index) in tokenList" :key="index" @click="changeSelect(index,item)" :class="selectIndex === index ? 'active' : ''">
<div class="item-left"> <div class="item-left">
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
return this.$store.getters.walletConnected; return this.$store.getters.walletConnected;
}, },
obtain() { obtain() {
return this.inputValue * 0.97; return this.inputValue * 0.997;
}, },
currentWalletAddressAndChainId() { currentWalletAddressAndChainId() {
return this.currentWalletAddress && this.chainId return this.currentWalletAddress && this.chainId
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
} }
setTimeout(() => { setTimeout(() => {
this.dialogVisible = false this.dialogVisible = false
},1000) },500)
}, },
getTokensByChainName(chainName) { getTokensByChainName(chainName) {
return this.tokenListOrigin.filter(item => item.chainName == chainName); return this.tokenListOrigin.filter(item => item.chainName == chainName);
...@@ -274,16 +274,30 @@ export default { ...@@ -274,16 +274,30 @@ export default {
}); });
return; return;
} }
/* if (10 > value - 0) { 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({ this.$dialog.alert({
title: this.$t('title'), title: this.$t('title'),
message: this.$t('placeholder3'), 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) {
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; this.pageLoading = true;
try { try {
if (holdItem.coinData.type == 'main') { if (holdItem.coinData.type == 'main') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论