From 04f78204580d4371513652126fed73781c0d543b Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 21 Dec 2023 21:37:27 +0800 Subject: [PATCH] yh --- public/account.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/public/account.html b/public/account.html index 1fa2cb2..2682979 100644 --- a/public/account.html +++ b/public/account.html @@ -21,7 +21,7 @@ {{userInfo.real_name}} - -- + 开户 {{userInfo.certificate_no}} -- ********** @@ -102,6 +102,22 @@ }); console.log('submit!'); }, + openAccount() { + axios.post('/account/pen-account', {token: window.sessionStorage.getItem('token')}) + .then( (response) => { + console.log(response); + let result = response.data + if (result.code != 1000) { + return this.$message.error(response.data.message); + } + window.open(result.data.url) + }) + .catch((error) => { + this.$message.error('请求错误'); + console.log(error); + }); + console.log('submit!'); + }, bindCard() { axios.post('/account/bind-card', this.bindConfirmForm) .then( (response) => {