Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
2ca6b93e
U
uni-starter
项目概览
DCloud
/
uni-starter
通知
4691
Star
229
Fork
210
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
2ca6b93e
编写于
1月 29, 2023
作者:
study夏羽
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jest:绑定手机号
上级
00688380
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
21 addition
and
9 deletion
+21
-9
pages.json
pages.json
+4
-1
uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.test.js
...i-id-pages/pages/userinfo/bind-mobile/bind-mobile.test.js
+1
-1
uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue
...s/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue
+1
-1
uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue
...les/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue
+4
-4
uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json
...s/uni-id-pages/uniCloud/database/uni-id-users.schema.json
+11
-2
未找到文件。
pages.json
浏览文件 @
2ca6b93e
...
...
@@ -61,6 +61,7 @@
}
},
//
#ifdef
APP-PLUS
{
"path"
:
"uni_modules/uni-upgrade-center-app/pages/upgrade-popup"
,
"style"
:
{
...
...
@@ -76,7 +77,9 @@
}
}
},
{
},
//
#endif
{
"path"
:
"pages/uni-agree/uni-agree"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
...
...
uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.test.js
浏览文件 @
2ca6b93e
...
...
@@ -21,7 +21,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue',
mobile
:
"
17769516019
"
,
code
:
"
123456
"
,
captcha
:
"
1234
"
}
}
,
})
await
page
.
waitFor
(
300
)
...
...
uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue
浏览文件 @
2ca6b93e
...
...
@@ -68,7 +68,7 @@
// console.log(this.formData);
const
uniIdCo
=
uniCloud
.
importObject
(
"
uni-id-co
"
)
uniIdCo
.
bindMobileBySms
(
this
.
formData
).
then
(
e
=>
{
return
await
uniIdCo
.
bindMobileBySms
(
this
.
formData
).
then
(
e
=>
{
// console.log(e);
uni
.
showToast
({
title
:
e
.
errMsg
,
...
...
uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd.vue
浏览文件 @
2ca6b93e
...
...
@@ -81,16 +81,16 @@
/**
* 完成并提交
*/
submit
()
{
async
submit
()
{
// console.log("formData", this.formData);
// console.log('rules', this.rules);
this
.
$refs
.
form
.
validate
()
.
then
(
res
=>
{
return
await
this
.
$refs
.
form
.
validate
()
.
then
(
async
res
=>
{
let
{
oldPassword
,
newPassword
}
=
this
.
formData
uniIdCo
.
updatePwd
({
return
await
uniIdCo
.
updatePwd
({
oldPassword
,
newPassword
}).
then
(
e
=>
{
...
...
uni_modules/uni-id-pages/uniCloud/database/uni-id-users.schema.json
浏览文件 @
2ca6b93e
...
...
@@ -330,6 +330,15 @@
},
"title"
:
"角色"
},
"tags"
:{
"bsonType"
:
"array"
,
"description"
:
"用户标签"
,
"permission"
:
{
"read"
:
"doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission"
,
"write"
:
"'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
},
"title"
:
"标签"
},
"score"
:
{
"bsonType"
:
"int"
,
"description"
:
"用户积分,积分变更记录可参考:uni-id-scores表定义"
,
...
...
@@ -369,7 +378,7 @@
"bsonType"
:
"array"
,
"description"
:
"用户token"
,
"permission"
:
{
"read"
:
"'READ_UNI_ID_USERS' in auth.permission"
,
"read"
:
false
,
"write"
:
"'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
}
},
...
...
@@ -379,7 +388,7 @@
"title"
:
"用户名"
,
"trim"
:
"both"
,
"permission"
:
{
"read"
:
true
,
"read"
:
"doc._id == auth.uid || 'READ_UNI_ID_USERS' in auth.permission"
,
"write"
:
"'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
}
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录