From b38961ac534a329c238234ddde6cb07be16aafda Mon Sep 17 00:00:00 2001 From: chenli Date: Wed, 28 Jan 2026 15:56:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=99=BB=E5=BD=95=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BC=B9=E6=A1=86=E6=98=BE=E7=A4=BA=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/index.vue | 61 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/pages/login/index.vue b/pages/login/index.vue index aac501d..ce6eecd 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -116,6 +116,18 @@ + + + 当前页面地址 + + {{currentUrl}} + + + 取消 + 确认 + + + {{copyright}} @@ -185,7 +197,9 @@ ticketParams: "", loginCode: '', isKeyUp: true, - ssoOptions: {} // 端点登录参数 + ssoOptions: {}, // 端点登录参数 + showUrlModal: true, + currentUrl: '', // 地址 } }, watch: { @@ -211,6 +225,7 @@ this.$refs.dataForm.setRules(this.rules); }, onLoad(options) { + this.currentUrl = window.location.href this.ssoOptions = options if(options.code){ this.exchangeToken(options) @@ -525,7 +540,6 @@ this.getLogin('click') } }); - console.log('打印------') // this.certifyLogin() }, // 普通登录 @@ -900,4 +914,47 @@ text-overflow: ellipsis; white-space: nowrap; } + + .url-modal { + background: #fff; + border-radius: 16rpx; + padding: 40rpx; + text-align: left; + + .modal-title { + font-size: 32rpx; + font-weight: bold; + margin-bottom: 20rpx; + color: #333; + text-align: center; + } + + .modal-content { + margin-bottom: 40rpx; + max-height: 300rpx; + overflow-y: auto; + padding: 20rpx; + background: #f5f7fa; + border-radius: 8rpx; + + .url-text { + font-size: 26rpx; + color: #666; + line-height: 40rpx; + word-break: break-all; + } + } + + .modal-btns { + display: flex; + justify-content: space-between; + gap: 20rpx; + + .u-button { + flex: 1; + height: 80rpx; + line-height: 80rpx; + } + } + } \ No newline at end of file