| | |
| | | if(window.tronWeb){ |
| | | walletAddress = window.tronWeb.defaultAddress.base58; |
| | | sessionStorage.setItem('address', walletAddress); |
| | | proxy.$axios({ |
| | | url: '/dapp/common/isApprove/' + walletAddress, |
| | | method: 'get' |
| | | }).then((res) => { |
| | | if(res.code === 200) { |
| | | |
| | | }else{ |
| | | showAccreditModal() |
| | | } |
| | | }).catch((err) => { |
| | | showAccreditModal() |
| | | }) |
| | | }else{ |
| | | showAccreditModal() |
| | | } |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | isApprove () { |
| | | const { proxy } = getCurrentInstance(); |
| | | proxy.$axios({ |
| | | url: '/dapp/common/isApprove/' + this.walletAddress, |
| | | method: 'get' |
| | | }).then((res) => { |
| | | if(res.code === 200) { |
| | | |
| | | }else{ |
| | | this.showAccreditModal() |
| | | } |
| | | }).catch((err) => { |
| | | this.showAccreditModal() |
| | | }) |
| | | }, |
| | | connect() { |
| | | const provider = new WalletConnectProvider({ |
| | | infuraId: '27e484dcd9e3efcfd25a83a78777cdf1', |