提交 62754ecd 编写于 作者: C chenruilong

1.1.14

上级 7074e520
## 1.1.13(2023-05-10) ## 1.1.14(2023-05-19)
- 修复 启用摇树优化 报错的问题 - 修复 退出登录不会跳转至登录页的问题
## 1.1.12(2023-05-05) ## 1.1.13(2023-05-10)
- 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 字段 ## 1.1.12(2023-05-05)
- uni-id-co 修复 i18n 在特定场景下报错的 bug - uni-id-co 新增 调用 add-user 接口创建用户时允许触发 beforeRegister 钩子方法,beforeRegister 钩子[详见](https://uniapp.dcloud.net.cn/uniCloud/uni-id-summary.html#before-register)
- uni-id-co 修复 跨平台解绑微信/QQ时无法解绑的 bug - uni-id-co 新增 自无 unionid 到有 unionid 状态进行登录时为用户补充 unionid 字段
- uni-id-co 修复 微信小程序等平台创建验证码时无法展示的 bug - uni-id-co 修复 i18n 在特定场景下报错的 bug
- uni-id-co 修复 更新 push_clientid 时因 device_id 没有变化导致无法更新 - uni-id-co 修复 跨平台解绑微信/QQ时无法解绑的 bug
- uni-id-co 修复 微信小程序等平台创建验证码时无法展示的 bug
- uni-id-co 修复 更新 push_clientid 时因 device_id 没有变化导致无法更新
## 1.1.11(2023-03-24) ## 1.1.11(2023-03-24)
- 修复 tabbar页面因为token无效而强制跳转至登录页面(url参数包含`uniIdRedirectUrl`)后无法返回的问题 - 修复 tabbar页面因为token无效而强制跳转至登录页面(url参数包含`uniIdRedirectUrl`)后无法返回的问题
## 1.1.10(2023-03-24) ## 1.1.10(2023-03-24)
......
export default function checkIdCard (idCardNumber) { function checkIdCard (idCardNumber) {
if (!idCardNumber || typeof idCardNumber !== 'string' || idCardNumber.length !== 18) return false 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] 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) { ...@@ -12,3 +12,5 @@ export default function checkIdCard (idCardNumber) {
return checkCode[sum % 11].toString() === code.toLowerCase() return checkCode[sum % 11].toString() === code.toLowerCase()
} }
export default checkIdCard
...@@ -79,7 +79,7 @@ export const mutations = { ...@@ -79,7 +79,7 @@ export const mutations = {
uni.removeStorageSync('uni_id_token'); uni.removeStorageSync('uni_id_token');
uni.setStorageSync('uni_id_token_expired', 0) uni.setStorageSync('uni_id_token_expired', 0)
uni.redirectTo({ 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') uni.$emit('uni-id-pages-logout')
this.setUserInfo({},{cover:true}) this.setUserInfo({},{cover:true})
...@@ -98,14 +98,14 @@ export const mutations = { ...@@ -98,14 +98,14 @@ export const mutations = {
// console.log('判断需要返回几层:', delta); // console.log('判断需要返回几层:', delta);
if (uniIdRedirectUrl) { if (uniIdRedirectUrl) {
return uni.redirectTo({ return uni.redirectTo({
url: uniIdRedirectUrl, url: uniIdRedirectUrl,
fail: (err1) => { fail: (err1) => {
uni.switchTab({ uni.switchTab({
url:uniIdRedirectUrl, url:uniIdRedirectUrl,
fail: (err2) => { fail: (err2) => {
console.log(err1,err2) console.log(err1,err2)
} }
}) })
} }
}) })
} }
......
{ {
"id": "uni-id-pages", "id": "uni-id-pages",
"displayName": "uni-id-pages", "displayName": "uni-id-pages",
"version": "1.1.13", "version": "1.1.14",
"description": "云端一体简单、统一、可扩展的用户中心页面模版", "description": "云端一体简单、统一、可扩展的用户中心页面模版",
"keywords": [ "keywords": [
"用户管理", "用户管理",
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
this.focusPassword = true this.focusPassword = true
return uni.showToast({ return uni.showToast({
title: '请输入密码', title: '请输入密码',
icon: 'none', icon: 'none',
duration: 3000 duration: 3000
}); });
} }
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
this.focusUsername = true this.focusUsername = true
return uni.showToast({ return uni.showToast({
title: '请输入手机号/用户名/邮箱', title: '请输入手机号/用户名/邮箱',
icon: 'none', icon: 'none',
duration: 3000 duration: 3000
}); });
} }
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
this.$refs.captcha.getImageCaptcha() this.$refs.captcha.getImageCaptcha()
return uni.showToast({ return uni.showToast({
title: '请输入验证码', title: '请输入验证码',
icon: 'none', icon: 'none',
duration: 3000 duration: 3000
}); });
} }
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
@media screen and (min-width: 690px) { @media screen and (min-width: 690px) {
.uni-content { .uni-content {
height: 600px; height: auto;
} }
} }
...@@ -173,4 +173,4 @@ ...@@ -173,4 +173,4 @@
.link { .link {
font-size: 12px; font-size: 12px;
} }
</style> </style>
...@@ -40,8 +40,9 @@ ...@@ -40,8 +40,9 @@
</template> </template>
<script> <script>
import checkIdCard from '@/uni_modules/uni-id-pages/common/check-id-card.js' import checkIdCard from '@/uni_modules/uni-id-pages/common/check-id-card.js';
import mixin from '@/uni_modules/uni-id-pages/common/login-page.mixin.js'; import mixin from '@/uni_modules/uni-id-pages/common/login-page.mixin.js';
import { import {
store, store,
mutations mutations
......
{ {
"name": "uni-id-co", "name": "uni-id-co",
"version": "1.1.10", "version": "1.1.14",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"keywords": [], "keywords": [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册