...
|
...
|
@@ -115,29 +115,6 @@ export default { |
|
|
this.shopPhone = checkTel;
|
|
|
});
|
|
|
},
|
|
|
|
|
|
//验证短信验证码
|
|
|
verifySmsCode(verifyCode) {
|
|
|
if (!verifyCode || verifyCode === '') {
|
|
|
this.$Notice.error({
|
|
|
title: '提交错误',
|
|
|
desc: '验证码不能为空',
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
this.financeService.verifySmsCode({ phone: this.shopPhone, verifyCode }).then(res => {
|
|
|
if (res.code !== 200) {
|
|
|
this.$Notice.error({
|
|
|
title: '提交错误',
|
|
|
desc: res.message,
|
|
|
});
|
|
|
return false;
|
|
|
} else {
|
|
|
return true;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
|
|
|
//获取短信验证码
|
|
|
getVerifyCode() {
|
|
|
if (this.shopPhone === '') {
|
...
|
...
|
@@ -226,29 +203,41 @@ export default { |
|
|
return false;
|
|
|
}
|
|
|
const applyParams = this.beforeSave();
|
|
|
|
|
|
if (!this.verifySmsCode(applyParams.verifyCode)) {
|
|
|
if (!applyParams.verifyCode || applyParams.verifyCode === '') {
|
|
|
this.$Notice.error({
|
|
|
title: '提交错误',
|
|
|
desc: '验证码不能为空',
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
this.$Loading.start();
|
|
|
this.submitDisabled = true;
|
|
|
return this.financeService.shopWithdrawApply(applyParams).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
this.$Loading.finish();
|
|
|
this.$Notice.success({
|
|
|
title: '提交成功',
|
|
|
desc: '确认提现成功!',
|
|
|
});
|
|
|
this.backList();
|
|
|
} else {
|
|
|
this.$Loading.error();
|
|
|
this.submitDisabled = false;
|
|
|
this.$Notice.error({
|
|
|
const _this = this;
|
|
|
this.financeService.verifySmsCode({ phone: this.shopPhone, verifyCode: applyParams.verifyCode }).then(res => {
|
|
|
if (res.code !== 200) {
|
|
|
_this.$Notice.error({
|
|
|
title: '提交错误',
|
|
|
desc: result.message,
|
|
|
desc: res.message,
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
_this.$Loading.start();
|
|
|
_this.submitDisabled = true;
|
|
|
_this.financeService.shopWithdrawApply(applyParams).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
_this.$Loading.finish();
|
|
|
_this.$Notice.success({
|
|
|
title: '提交成功',
|
|
|
desc: '确认提现成功!',
|
|
|
});
|
|
|
_this.backList();
|
|
|
} else {
|
|
|
_this.$Loading.error();
|
|
|
_this.submitDisabled = false;
|
|
|
_this.$Notice.error({
|
|
|
title: '提交错误',
|
|
|
desc: result.message,
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
submit() {
|
...
|
...
|
|