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

+ tip

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