Browse Source

修改时间

master
luyisha 2 years ago
parent
commit
661599b3db
  1. 4
      api/member.js
  2. 14
      pages/assets/draw.vue

4
api/member.js

@ -132,8 +132,8 @@ class Member {
return server.get(`/register/Graph_che`); return server.get(`/register/Graph_che`);
} }
// 提币获取邮箱验证码 // 提币获取邮箱验证码
static getWdcode(){ static getWdcode(data){
return server.get(`/user/wdcode`); return server.get(`/user/wdcode`, data);
} }
} }

14
pages/assets/draw.vue

@ -319,6 +319,18 @@ export default {
}, },
// //
getEmailCode(){ getEmailCode(){
if (!this.form.address) {
this.$toast(this.$t('assets.b9'))
return
}
if (!this.form.amount) {
this.$toast(this.$t('assets.c2'))
return
}
if (!this.form.password) {
this.$toast(this.$t('reg.a9'))
return
}
if(this.getEmailCodeLock){return}; if(this.getEmailCodeLock){return};
this.JStime = 300; this.JStime = 300;
this.tiemr = setInterval(()=>{ this.tiemr = setInterval(()=>{
@ -330,7 +342,7 @@ export default {
this.JStime--; this.JStime--;
}, 1000) }, 1000)
this.getEmailCodeLock = true; this.getEmailCodeLock = true;
Member.getWdcode().then(res=>{ Member.getWdcode({bt:this.rechargeType,baddr:this.form.address,bnum:this.form.amount}).then(res=>{
// console.log(res); // console.log(res);
if(res.code=='4001'){ if(res.code=='4001'){
this.$toast(res.message); this.$toast(res.message);

Loading…
Cancel
Save