From bd6db202abd6ccd085cb5fee3ddac0395a92e33a Mon Sep 17 00:00:00 2001 From: Chopper Date: Thu, 3 Jun 2021 11:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E7=99=BB=E5=BD=95=E8=B7=A8?= =?UTF-8?q?=E5=9F=9F=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/passport/onClickLogin.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pages/passport/onClickLogin.vue b/pages/passport/onClickLogin.vue index ff9d5ba..cfadf7e 100644 --- a/pages/passport/onClickLogin.vue +++ b/pages/passport/onClickLogin.vue @@ -17,7 +17,8 @@ import { webConnect, openIdLogin } from "@/api/connect.js"; import { whetherNavigate } from "@/utils/Foundation"; //登录跳转 import { getUserInfo } from "@/api/members"; -import storage from "@/utils/storage.js"; +import storage from "@/utils/storage.js"; +import api from "@/config/api.js"; export default { data() { @@ -147,13 +148,9 @@ export default { } // #ifdef H5 - let code = connectLogin.code; - webConnect(code).then((res) => { - let data = res.data; - if (data.success) { - window.location = data.result; - } - }); + let code = connectLogin.code; + let buyer = api.buyer; + window.open(buyer+`/connect/login/web/`+code, "_self"); // #endif // #ifdef APP-PLUS this.nonH5OpenId(connectLogin);