edit
This commit is contained in:
		| @ -61,14 +61,17 @@ export class UserCenterComponentsDriverComponent implements OnInit { | ||||
|           return false; | ||||
|         } | ||||
|         if (typeof this.promotersTelephone === 'string' && !/(^1\d{10}$)/.test(this.promotersTelephone)) { | ||||
|           this.service.msgSrv.error('手机格式错误'); | ||||
|           return false; | ||||
|         } | ||||
|         this.service.request(this.service.$api_add_salesman, { ids: [item.id], salesmanMobile: this.promotersTelephone }).subscribe(res => { | ||||
|           if (res) { | ||||
|             this.service.msgSrv.success(item?.promotersTelephone ? '添加推广员成功' : '修改推广员成功'); | ||||
|           } | ||||
|           this.st.load(); | ||||
|         }); | ||||
|         this.service | ||||
|           .request(this.service.$api_add_user_salesman, { userId: item.userId, mobile: this.promotersTelephone }) | ||||
|           .subscribe(res => { | ||||
|             if (res) { | ||||
|               this.service.msgSrv.success(item?.promotersTelephone ? '添加推广员成功' : '修改推广员成功'); | ||||
|             } | ||||
|             this.st.load(); | ||||
|           }); | ||||
|         return; | ||||
|       } | ||||
|     }); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user