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

jest:绑定手机号

上级 00688380
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
} }
}, },
// #ifdef APP-PLUS
{ {
"path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup", "path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
"style": { "style": {
...@@ -76,7 +77,9 @@ ...@@ -76,7 +77,9 @@
} }
} }
}, { },
// #endif
{
"path": "pages/uni-agree/uni-agree", "path": "pages/uni-agree/uni-agree",
"style": { "style": {
"navigationStyle": "custom", "navigationStyle": "custom",
......
...@@ -21,7 +21,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue', ...@@ -21,7 +21,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue',
mobile: "17769516019", mobile: "17769516019",
code: "123456", code: "123456",
captcha: "1234" captcha: "1234"
} },
}) })
await page.waitFor(300) await page.waitFor(300)
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
// console.log(this.formData); // console.log(this.formData);
const uniIdCo = uniCloud.importObject("uni-id-co") const uniIdCo = uniCloud.importObject("uni-id-co")
uniIdCo.bindMobileBySms(this.formData).then(e => { return await uniIdCo.bindMobileBySms(this.formData).then(e => {
// console.log(e); // console.log(e);
uni.showToast({ uni.showToast({
title: e.errMsg, title: e.errMsg,
......
...@@ -81,16 +81,16 @@ ...@@ -81,16 +81,16 @@
/** /**
* 完成并提交 * 完成并提交
*/ */
submit() { async submit() {
// console.log("formData", this.formData); // console.log("formData", this.formData);
// console.log('rules', this.rules); // console.log('rules', this.rules);
this.$refs.form.validate() return await this.$refs.form.validate()
.then(res => { .then(async res => {
let { let {
oldPassword, oldPassword,
newPassword newPassword
} = this.formData } = this.formData
uniIdCo.updatePwd({ return await uniIdCo.updatePwd({
oldPassword, oldPassword,
newPassword newPassword
}).then(e => { }).then(e => {
......
...@@ -330,6 +330,15 @@ ...@@ -330,6 +330,15 @@
}, },
"title": "角色" "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": { "score": {
"bsonType": "int", "bsonType": "int",
"description": "用户积分,积分变更记录可参考:uni-id-scores表定义", "description": "用户积分,积分变更记录可参考:uni-id-scores表定义",
...@@ -369,7 +378,7 @@ ...@@ -369,7 +378,7 @@
"bsonType": "array", "bsonType": "array",
"description": "用户token", "description": "用户token",
"permission": { "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" "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
} }
}, },
...@@ -379,7 +388,7 @@ ...@@ -379,7 +388,7 @@
"title": "用户名", "title": "用户名",
"trim": "both", "trim": "both",
"permission": { "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" "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.
先完成此消息的编辑!
想要评论请 注册