diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 6c1de4efc08319ba4926a2d4a77a934c28beecc3..7c96ba98cc8106ad16ef321a4e5d782cd28ccaf5 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,12 +1,14 @@ -## 1.1.13(2023-05-10) -- 修复 启用摇树优化 报错的问题 -## 1.1.12(2023-05-05) -- uni-id-co 新增 调用 add-user 接口创建用户时允许触发 beforeRegister 钩子方法,beforeRegister 钩子[详见](https://uniapp.dcloud.net.cn/uniCloud/uni-id-summary.html#before-register) -- uni-id-co 新增 自无 unionid 到有 unionid 状态进行登录时为用户补充 unionid 字段 -- uni-id-co 修复 i18n 在特定场景下报错的 bug -- uni-id-co 修复 跨平台解绑微信/QQ时无法解绑的 bug -- uni-id-co 修复 微信小程序等平台创建验证码时无法展示的 bug -- uni-id-co 修复 更新 push_clientid 时因 device_id 没有变化导致无法更新 +## 1.1.14(2023-05-19) +- 修复 退出登录不会跳转至登录页的问题 +## 1.1.13(2023-05-10) +- 修复 启用摇树优化 报错的问题 +## 1.1.12(2023-05-05) +- uni-id-co 新增 调用 add-user 接口创建用户时允许触发 beforeRegister 钩子方法,beforeRegister 钩子[详见](https://uniapp.dcloud.net.cn/uniCloud/uni-id-summary.html#before-register) +- uni-id-co 新增 自无 unionid 到有 unionid 状态进行登录时为用户补充 unionid 字段 +- uni-id-co 修复 i18n 在特定场景下报错的 bug +- uni-id-co 修复 跨平台解绑微信/QQ时无法解绑的 bug +- uni-id-co 修复 微信小程序等平台创建验证码时无法展示的 bug +- uni-id-co 修复 更新 push_clientid 时因 device_id 没有变化导致无法更新 ## 1.1.11(2023-03-24) - 修复 tabbar页面因为token无效而强制跳转至登录页面(url参数包含`uniIdRedirectUrl`)后无法返回的问题 ## 1.1.10(2023-03-24) diff --git a/uni_modules/uni-id-pages/common/check-id-card.js b/uni_modules/uni-id-pages/common/check-id-card.js index 809d5823f26ba61c7c23520dacca44ff961aa4d7..c12f2a174aac137cd00d097cd8e28629d2a1a5ca 100644 --- a/uni_modules/uni-id-pages/common/check-id-card.js +++ b/uni_modules/uni-id-pages/common/check-id-card.js @@ -1,4 +1,4 @@ -export default function checkIdCard (idCardNumber) { +function checkIdCard (idCardNumber) { if (!idCardNumber || typeof idCardNumber !== 'string' || idCardNumber.length !== 18) return false const coefficient = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2] @@ -12,3 +12,5 @@ export default function checkIdCard (idCardNumber) { return checkCode[sum % 11].toString() === code.toLowerCase() } + +export default checkIdCard diff --git a/uni_modules/uni-id-pages/common/store.js b/uni_modules/uni-id-pages/common/store.js index 6bf16ff3379e4b999973c11e23c7948bc289ac64..d8f2108befbc97069809233cb10e63fbf6b5cfc6 100644 --- a/uni_modules/uni-id-pages/common/store.js +++ b/uni_modules/uni-id-pages/common/store.js @@ -79,7 +79,7 @@ export const mutations = { uni.removeStorageSync('uni_id_token'); uni.setStorageSync('uni_id_token_expired', 0) uni.redirectTo({ - url: `/${pagesJson.uniIdRouter && pagesJson.uniIdRouter.loginPage ? 'uni_modules/uni-id-pages/pages/login/login-withoutpwd': ''}`, + url: `/${pagesJson.uniIdRouter && pagesJson.uniIdRouter.loginPage ? pagesJson.uniIdRouter.loginPage: 'uni_modules/uni-id-pages/pages/login/login-withoutpwd'}`, }); uni.$emit('uni-id-pages-logout') this.setUserInfo({},{cover:true}) @@ -98,14 +98,14 @@ export const mutations = { // console.log('判断需要返回几层:', delta); if (uniIdRedirectUrl) { return uni.redirectTo({ - url: uniIdRedirectUrl, - fail: (err1) => { - uni.switchTab({ - url:uniIdRedirectUrl, - fail: (err2) => { - console.log(err1,err2) - } - }) + url: uniIdRedirectUrl, + fail: (err1) => { + uni.switchTab({ + url:uniIdRedirectUrl, + fail: (err2) => { + console.log(err1,err2) + } + }) } }) } diff --git a/uni_modules/uni-id-pages/package.json b/uni_modules/uni-id-pages/package.json index 2d9945a0d26cf2ef579cca13ea84f02c6eccac99..06c3b4f6d38c7727184432ca04911014ebe16a74 100644 --- a/uni_modules/uni-id-pages/package.json +++ b/uni_modules/uni-id-pages/package.json @@ -1,7 +1,7 @@ { "id": "uni-id-pages", "displayName": "uni-id-pages", - "version": "1.1.13", + "version": "1.1.14", "description": "云端一体简单、统一、可扩展的用户中心页面模版", "keywords": [ "用户管理", diff --git a/uni_modules/uni-id-pages/pages/login/login-withpwd.vue b/uni_modules/uni-id-pages/pages/login/login-withpwd.vue index ea5a83eb1ebdcb953449b654abf4d9f68c8ca1fe..e785554b03a32460604af996432123d8c01492c0 100644 --- a/uni_modules/uni-id-pages/pages/login/login-withpwd.vue +++ b/uni_modules/uni-id-pages/pages/login/login-withpwd.vue @@ -84,7 +84,7 @@ this.focusPassword = true return uni.showToast({ title: '请输入密码', - icon: 'none', + icon: 'none', duration: 3000 }); } @@ -92,7 +92,7 @@ this.focusUsername = true return uni.showToast({ title: '请输入手机号/用户名/邮箱', - icon: 'none', + icon: 'none', duration: 3000 }); } @@ -100,7 +100,7 @@ this.$refs.captcha.getImageCaptcha() return uni.showToast({ title: '请输入验证码', - icon: 'none', + icon: 'none', duration: 3000 }); } @@ -152,7 +152,7 @@ @media screen and (min-width: 690px) { .uni-content { - height: 600px; + height: auto; } } @@ -173,4 +173,4 @@ .link { font-size: 12px; } - + diff --git a/uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify.vue b/uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify.vue index 0ad880b3ab33cbfd14ba3947f642b28afb5ec8d8..e402d75f855d9e2e5fbaf328d3a7f5ff8803b09c 100644 --- a/uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify.vue +++ b/uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify.vue @@ -40,8 +40,9 @@