Commit 9e5debf9 authored by wxk's avatar wxk

基本ok,等接口完成联调

parent cf2faf5f
......@@ -10,6 +10,8 @@ const Api = {
GetRobotBank: "/accountlist",//查询机器人银行账户
GetWalletInfo: "/walletInfo ", //查询某个账号的当前资产信息
Transfer: "/transfer", //充币提币
Transaction: "/transaction", //交易记录
Records: "/records", //历史记录
}
export default Api;
......@@ -188,57 +188,6 @@ export default {
});
});
},
//找回密码获取验证码
/* getYZM2(){
if(this.forget_email == '' || ! (regEmail.test(this.forget_email) || regEmail2.test(this.forget_email))){
this.$notify({
title: '提示',
message: "请输入正确的邮箱",
type: 'error',
duration:'2000',
});
return;
}
//获取验证码倒计时60s
this.count = TIME_COUNT;
this.show = false;
this.timer = setInterval(() => {
if(this.count > 0 && this.count <= TIME_COUNT){
this.count--;
}else{
this.show = true;
clearInterval(this.timer);
this.timer = null;
}
}, 1000)
axios.post(ApiConfig.SendEmailVcode,{"user":this.forget_email}).then(res => {
console.log(res)
if(res.status == 200&& res.data == "emailsend success"){//发送成功并且注册成功
this.$notify({
title: '提示',
message: "验证码发送成功,请查收",
type: 'success',
duration:'2000',
});
}else{//不存在的33.cn的邮箱
this.$notify({
title: '提示',
message: "验证码发送失败,请检查邮箱后再试",
type: 'error',
duration:'2000',
});
}
})
.catch(err=>{
this.$notify({
title: '提示',
message: "验证码发送失败,请稍后再试",
type: 'error',
duration:'2000',
});
});
},*/
//注册
registered(){
//console.log(this.regist_email)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment