批量审核
This commit is contained in:
@ -39,7 +39,6 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
console.log(this.i)
|
||||
this.codeTips = '为了账户安全,需您的手机验证(' + this.i?.phone + ')';
|
||||
this.formData.oldName = this.i?.phone;
|
||||
this.initSF();
|
||||
@ -140,7 +139,6 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
// phoneNumber: phone
|
||||
};
|
||||
this.service.request(this.service.$api_get_current_user_smVerification, params, 'POST', true, 'FORM').subscribe((res) => {
|
||||
console.log(res);
|
||||
// code==503046 弹出网易盾
|
||||
if (res && res.code === '1') {
|
||||
this.service.msgSrv.success('发送成功');
|
||||
@ -158,7 +156,6 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
phoneNumber: this.sfView.value.phone
|
||||
};
|
||||
this.service.request(this.service.$api_get_getSMVerificationCode, params, 'POST', true, 'FORM').subscribe((res) => {
|
||||
console.log(res);
|
||||
// code==503046 弹出网易盾
|
||||
if (res && res.code === '1') {
|
||||
this.service.msgSrv.success('发送成功');
|
||||
@ -210,27 +207,22 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
this.modal.destroy();
|
||||
}
|
||||
submitForm() {
|
||||
console.log(this.sf.value, 'this.sf.value');
|
||||
const params = {
|
||||
smsVerifyCode: this.sf.value.smsVerifyCode,
|
||||
};
|
||||
|
||||
this.service.http.post(this.service.$api_get_verifyPhone, params).subscribe((res) => {
|
||||
console.log(res, 'submitForm');
|
||||
if (res.success) {
|
||||
this.service.msgSrv.success(res.msg);
|
||||
// this.modal.close(true);
|
||||
this.voucher = res.data.voucher
|
||||
this.isVisibleView = true
|
||||
|
||||
} else {
|
||||
this.service.msgSrv.warning(res.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
handleCancel(type: string) {
|
||||
if(type === '1') {
|
||||
console.log(type)
|
||||
this.isVisibleView = false
|
||||
} else if(type === '2') {
|
||||
console.log(type)
|
||||
@ -242,18 +234,14 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
|
||||
}
|
||||
handleNew() {
|
||||
console.log(this.voucher)
|
||||
const params = {
|
||||
voucher: this.voucher,
|
||||
...this.sfView.value,
|
||||
}
|
||||
this.service.http.post(this.service.$api_set_voucherUpdatePhone, params).subscribe((res) => {
|
||||
console.log(res);
|
||||
if (res.success) {
|
||||
this.service.msgSrv.success(res.msg);
|
||||
this.isVisibleOk = true;
|
||||
} else {
|
||||
this.service.msgSrv.warning(res.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user