From a8756743d5f8cdb225b4207c9624b0385e36cb9a Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Fri, 22 Aug 2025 13:35:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E5=88=B0=E4=BA=8C=E7=BB=B4=E7=A0=81=E4=B8=AD=E7=9A=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=B9=B6=E6=88=90=E5=8A=9F=E5=9C=A8wxlogin=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index be9c260..a50f10a 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -107,7 +107,6 @@ export default { // 提取agentId参数 const agentId = this.getUrlParam('agentId', q) if (agentId) { - this.setData({ agentId }) // 存入data(用于界面显示) this.agentId = agentId // 存入实例属性 console.log('成功存入agentId:', this.agentId) } else { @@ -116,12 +115,6 @@ export default { } }, - getUrlParam: function (key, url) { - const regex = new RegExp(`[?&]${key}=([^&#]*)`) - const match = url.match(regex) - return match ? decodeURIComponent(match[1]) : null - }, - onUnload() { forceHideLoading() if (this.pageLoading) { @@ -129,6 +122,11 @@ export default { } }, methods: { + getUrlParam(key, url) { + const regex = new RegExp(`[?&]${key}=([^&#]*)`) + const match = url.match(regex) + return match ? decodeURIComponent(match[1]) : null + }, toggleAgreement() { if (this.hasReadServiceTerms && this.hasReadPrivacyPolicy) { this.hasAgreed = !this.hasAgreed