From a98d1cddb2d84375832cf03ab0e577dde7dede69 Mon Sep 17 00:00:00 2001 From: linju Date: Wed, 4 Dec 2024 11:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E8=A6=81=E6=9B=B4=E6=96=B0=20?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-id-pages-x/common/common.uts | 13 ++- .../uni-id-pages-x-agreements.uvue | 49 +++++++--- .../uni-id-pages-x-avatar.uvue | 97 +++++++++---------- .../uni-id-pages-x-icons.uvue | 10 +- .../uni-id-pages-x-input.uvue | 51 +++++----- .../fab-sms-code-input.uvue | 21 ++-- uni_modules/uni-id-pages-x/init.uts | 3 +- .../userinfo/setNickname/setNickname.uvue | 23 ++++- .../pages/userinfo/userinfo.uvue | 7 +- uni_modules/uni-id-pages-x/store.uts | 18 ++-- 10 files changed, 171 insertions(+), 121 deletions(-) diff --git a/uni_modules/uni-id-pages-x/common/common.uts b/uni_modules/uni-id-pages-x/common/common.uts index 55736e2..da61add 100644 --- a/uni_modules/uni-id-pages-x/common/common.uts +++ b/uni_modules/uni-id-pages-x/common/common.uts @@ -3,18 +3,21 @@ import config from '@/uni_modules/uni-id-pages-x/config.uts'; export const loginSuccess = (_ : UTSJSONObject) => { // console.log('loginSuccess', e); // console.log("新用户uid", e["uid"]); - // state.currentUserInfo = uniCloud.getCurrentUserInfo() + // state.currentUserInfo = uniCloud.getCurrentUserInfo() mutations.updateUserInfo(null) // state.userInfo["_id"] = e["uid"] state.isLogin = true uni.$emit('uni-id-pages-x-login-success', '') // 登录后重定向设置 - function loginAfterToPage() { + function loginAfterToPage() { const pages = getCurrentPages() const currentPage = pages[pages.length - 1] - const uniIdRedirectUrl = currentPage.options["uniIdRedirectUrl"]; - if (uniIdRedirectUrl != null) { + let uniIdRedirectUrl = currentPage.options["uniIdRedirectUrl"]; + if (uniIdRedirectUrl != null) { + // #ifndef APP + uniIdRedirectUrl = decodeURIComponent(uniIdRedirectUrl) + // #endif // console.log('uniIdRedirectUrl', uniIdRedirectUrl); uni.redirectTo({ url: uniIdRedirectUrl, @@ -102,4 +105,4 @@ export const checkPassword = (password : string) : UTSJSONObject => { res["pass"] = passwordRegExp.test(password); res["errMsg"] = passwordRules.getString(passwordStrength + '.errMsg'); return res -} +} diff --git a/uni_modules/uni-id-pages-x/components/uni-id-pages-x-agreements/uni-id-pages-x-agreements.uvue b/uni_modules/uni-id-pages-x/components/uni-id-pages-x-agreements/uni-id-pages-x-agreements.uvue index 1ec9ded..dea832f 100644 --- a/uni_modules/uni-id-pages-x/components/uni-id-pages-x-agreements/uni-id-pages-x-agreements.uvue +++ b/uni_modules/uni-id-pages-x/components/uni-id-pages-x-agreements/uni-id-pages-x-agreements.uvue @@ -1,11 +1,10 @@