diff --git a/MP_verify_yU2Z8mp831jh6QX7.txt b/MP_verify_yU2Z8mp831jh6QX7.txt new file mode 100644 index 0000000..81bc7b7 --- /dev/null +++ b/MP_verify_yU2Z8mp831jh6QX7.txt @@ -0,0 +1 @@ +yU2Z8mp831jh6QX7 \ No newline at end of file diff --git a/pages/login/login.vue b/pages/login/login.vue index b6b9fad..b79b874 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -58,7 +58,7 @@ const userStore = useUserStore(); - const identifier = ref(''); + const identifier = ref('TEST5G'); const loading = ref(false); const agreed = ref(true); const inputFocus = ref(false); @@ -74,8 +74,9 @@ }; const redirectToWxAuth = (assetToken) => { - const redirectUri = encodeURIComponent(window.location.href.split('?')[0]); - const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${APP_ID}&redirect_uri=${redirectUri}&response_type=code&scope=snsapi_userinfo&state=${assetToken}#wechat_redirect`; + sessionStorage.setItem('assetToken', assetToken); + const redirectUri = encodeURIComponent('https://cmp-c.boss160.cn/'); + const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${APP_ID}&redirect_uri=${redirectUri}&response_type=code&scope=snsapi_userinfo&state=wechat_auth#wechat_redirect`; window.location.href = url; }; @@ -113,7 +114,7 @@ if (!USE_WECHAT_AUTH) return; const code = getCode(); - const assetToken = userStore.state.assetToken; + const assetToken = sessionStorage.getItem('assetToken'); if (!code || !assetToken) return; @@ -145,6 +146,11 @@ align-items: center; justify-content: center; background: #FFFFFF; + padding: 0 40rpx; + } + + .content { + width: 100%; } .card { @@ -158,7 +164,7 @@ font-size: 40rpx; font-weight: 600; color: #1A1A1A; - margin-bottom: 48rpx; + margin-bottom: 20rpx; } .form-item { @@ -177,8 +183,8 @@ background: #F9FAFB; border: 2rpx solid #E5E7EB; border-radius: 16rpx; - padding: 0 24rpx; - height: 96rpx; + padding: 28rpx 24rpx; + margin-top: 40rpx; transition: all 0.2s; }