提交 2ca6b93e 编写于 作者: study夏羽's avatar study夏羽

jest:绑定手机号

上级 00688380
......@@ -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",
......
......@@ -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)
......
......@@ -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,
......
......@@ -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 => {
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册