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