From 0670656376b5208f234a07fdb8ed330ee53955dd Mon Sep 17 00:00:00 2001 From: linju Date: Wed, 7 Sep 2022 18:00:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang/i18n.js | 6 - lang/zh-Hans.js | 2 +- pages.json | 13 +- pages/ucenter/settings/settings.vue | 54 +- pages/ucenter/ucenter.vue | 27 +- .../uni-open-bridge/config.json | 12 + uni_modules/uni-id-pages/changelog.md | 16 + uni_modules/uni-id-pages/common/common.js | 12 + .../uni-id-pages/common/login-page.mixin.js | 4 +- .../uni-id-pages/common/login-page.scss | 57 +- uni_modules/uni-id-pages/common/password.js | 38 +- .../components/cloud-image/cloud-image.vue | 4 +- .../uni-id-pages-email-form.vue | 246 +++++++ .../uni-id-pages-fab-login.vue | 122 ++-- uni_modules/uni-id-pages/config.js | 23 +- .../pages/login/login-smscode.vue | 4 + .../pages/login/login-withoutpwd.vue | 17 +- .../pages/login/login-withpwd.vue | 16 +- .../pages/register/register-by-email.vue | 216 ++++++ .../uni-id-pages/pages/register/register.vue | 63 +- .../pages/retrieve/retrieve-by-email.vue | 216 ++++++ .../uni-id-pages/pages/retrieve/retrieve.vue | 44 +- .../userinfo/bind-mobile/bind-mobile.vue | 17 +- .../pages/userinfo/change_pwd/change_pwd.vue | 22 +- .../pages/userinfo/deactivate/deactivate.vue | 40 +- .../uni-id-pages/pages/userinfo/userinfo.js | 166 +++++ .../uni-id-pages/pages/userinfo/userinfo.vue | 448 ++++++------ uni_modules/uni-id-pages/pages_init.json | 87 +++ .../uni-id-co/common/validator.js | 62 +- .../uni-id-co/common/validator.test.js | 209 ++++++ .../uni-id-co/config/permission.js | 3 + .../cloudfunctions/uni-id-co/index.obj.js | 24 +- .../uni-id-co/lib/utils/config.js | 4 +- .../uni-id-co/lib/utils/login.js | 16 +- .../uni-id-co/lib/utils/logout.js | 47 ++ .../cloudfunctions/uni-id-co/lib/utils/qq.js | 17 +- .../uni-id-co/lib/utils/register.js | 22 +- .../uni-id-co/lib/utils/weixin.js | 2 +- .../uni-id-co/module/admin/add-user.js | 51 +- .../uni-id-co/module/admin/index.js | 3 +- .../uni-id-co/module/admin/update-user.js | 128 ++++ .../uni-id-co/module/logout/logout.js | 39 +- .../module/multi-end/remove-authorized-app.js | 2 +- .../cloudfunctions/uni-id-co/package.json | 2 +- .../uni-open-bridge-common/bridge-error.js | 8 +- .../common/uni-open-bridge-common/config.js | 188 ++--- .../common/uni-open-bridge-common/consts.js | 43 +- .../common/uni-open-bridge-common/index.js | 427 ++++++------ .../common/uni-open-bridge-common/storage.js | 232 +++---- .../uni-open-bridge-common/uni-cloud-cache.js | 646 +++++++++--------- .../uni-open-bridge-common/validator.js | 60 +- .../uni-open-bridge-common/weixin-server.js | 320 ++++----- 52 files changed, 3060 insertions(+), 1487 deletions(-) create mode 100644 uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-open-bridge/config.json create mode 100644 uni_modules/uni-id-pages/common/common.js create mode 100644 uni_modules/uni-id-pages/components/uni-id-pages-email-form/uni-id-pages-email-form.vue create mode 100644 uni_modules/uni-id-pages/pages/register/register-by-email.vue create mode 100644 uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email.vue create mode 100644 uni_modules/uni-id-pages/pages/userinfo/userinfo.js create mode 100644 uni_modules/uni-id-pages/pages_init.json create mode 100644 uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/validator.test.js create mode 100644 uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/logout.js create mode 100644 uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/admin/update-user.js diff --git a/lang/i18n.js b/lang/i18n.js index 934dfa73..0cd806e5 100644 --- a/lang/i18n.js +++ b/lang/i18n.js @@ -87,12 +87,6 @@ console.log(` }) }) },1) - //更新 uni-starter.config agreements - let agreementsTitle = $i18n('agreementsTitle').split(',') - let agreements = uniStarterConfig.about.agreements - agreements[0].title = agreementsTitle[0] - agreements[1].title = agreementsTitle[1] - uniStarterConfig.about.agreements = agreements } initLanguageAfter() uni.$on('changeLanguage', e => { diff --git a/lang/zh-Hans.js b/lang/zh-Hans.js index 7b9bb41c..9fe289e0 100644 --- a/lang/zh-Hans.js +++ b/lang/zh-Hans.js @@ -108,7 +108,7 @@ export default { }, settings:{ navigationBarTitle:"设置", - userInfo: "个人资料", + userInfo: "账号资料", changePassword: "修改密码", clearTmp: "清理缓存", pushServer: "推送功能", diff --git a/pages.json b/pages.json index a5070a2b..658c3418 100644 --- a/pages.json +++ b/pages.json @@ -122,12 +122,13 @@ "style": { "navigationBarTitleText": "注销账号" } - }, { - "path": "uni_modules/uni-id-pages/pages/userinfo/userinfo", - "style": { - "navigationBarTitleText": "个人资料" - } - }, { + }, + { + "path": "uni_modules/uni-id-pages/pages/userinfo/userinfo", + "style": { + "navigationBarTitleText": "个人资料" + } + },{ "path": "uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile", "style": { "navigationBarTitleText": "绑定手机号码" diff --git a/pages/ucenter/settings/settings.vue b/pages/ucenter/settings/settings.vue index 2ffa6c00..1dd1709f 100644 --- a/pages/ucenter/settings/settings.vue +++ b/pages/ucenter/settings/settings.vue @@ -18,12 +18,8 @@ - - - - - + {{$t('settings.logOut')}} {{$t('settings.login')}} @@ -31,7 +27,8 @@ + + diff --git a/uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue b/uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue index daddb7fc..b6ae82af 100644 --- a/uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue +++ b/uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue @@ -15,12 +15,12 @@ + + diff --git a/uni_modules/uni-id-pages/pages/register/register.vue b/uni_modules/uni-id-pages/pages/register/register.vue index 5ceaa25f..abd1de11 100644 --- a/uni_modules/uni-id-pages/pages/register/register.vue +++ b/uni_modules/uni-id-pages/pages/register/register.vue @@ -1,6 +1,13 @@ @@ -50,12 +63,8 @@ focusUsername:false, focusNickname:false, focusPassword:false, - focusPassword2:false - } - }, - computed:{ - passwordLength(){ - return config.password.length + focusPassword2:false, + logo: "/static/logo.png" } }, onReady() { @@ -111,6 +120,16 @@ }, navigateBack() { uni.navigateBack() + }, + toLogin() { + uni.navigateTo({ + url: '/uni_modules/uni-id-pages/pages/login/login-withpwd' + }) + }, + registerByEmail() { + uni.navigateTo({ + url: '/uni_modules/uni-id-pages/pages/register/register-by-email' + }) } } } @@ -118,9 +137,33 @@ diff --git a/uni_modules/uni-id-pages/pages/retrieve/retrieve.vue b/uni_modules/uni-id-pages/pages/retrieve/retrieve.vue index 0b7a14be..69450add 100644 --- a/uni_modules/uni-id-pages/pages/retrieve/retrieve.vue +++ b/uni_modules/uni-id-pages/pages/retrieve/retrieve.vue @@ -1,6 +1,13 @@