@click="sendCode" style="{ 'background-color': !isCanSendCode ? '#99CFFE':'#127af9'
}"
>
<text class="font-ds text-white">{{ sendMsg }}</text>
</button>
sendCode() {
//发送验证码
if (!checkPhone(this.phone)) {
return;
}
this.setCodeInterval();
/*
- 发送验证码逻辑
*/
this.sendSmsCode();
},
async sendSmsCode() {
console.log('-------1111------');
let param = { phone: this.phone, smsType: this.smsType };
smsCaptcha(param)
.then(res => {})
.catch(err => {
console.log(err);
msg('获取验证码失败,请稍后尝试');
this.clearCode();
});
},
寂正 (作者)
非常感谢,尽快解决一下呀
2020-05-14 16:24