| xqd
@@ -100,16 +100,18 @@ Page({
|
|
|
util.error('申请角色不能为空')
|
|
|
return false;
|
|
|
}
|
|
|
- if (this.data.remark.length < 10) {
|
|
|
- util.error('备注需10个字以上')
|
|
|
- return false;
|
|
|
- }
|
|
|
- if(!this.data.phone) {
|
|
|
- util.error('手机号不能为空')
|
|
|
- return false;
|
|
|
- }
|
|
|
+ // if (this.data.remark.length < 10) {
|
|
|
+ // util.error('备注需10个字以上')
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // if(!this.data.phone) {
|
|
|
+ // util.error('手机号不能为空')
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
var project = this.data.projects[this.data.projectIndex]
|
|
|
var role = this.data.roles[this.data.roleIndex]
|
|
|
+ var userInfo = getApp().globalData.userInfo
|
|
|
+ var phone = userInfo ? userInfo.phone : ''
|
|
|
http({
|
|
|
url: 'user-auth/create',
|
|
|
data: {
|
| xqd
@@ -117,7 +119,7 @@ Page({
|
|
|
project_id: project ? project.id : '',
|
|
|
project_role_id: role ? role.id : '',
|
|
|
remark: this.data.remark,
|
|
|
- phone: this.data.phone
|
|
|
+ phone: phone
|
|
|
},
|
|
|
success: function (res) {
|
|
|
util.success('操作成功')
|