Commit e0681fb9 authored by 吴冠's avatar 吴冠

forgot

parent 4eb42c25
...@@ -239,14 +239,14 @@ ...@@ -239,14 +239,14 @@
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
//验证手机验证码 //验证手机验证码
let dataform={} /* let dataform={}
dataform.phone=this.form.phone dataform.phone=this.form.phone
dataform.verify=this.form.verify dataform.verify=this.form.verify
const {data,code,msg} = getVerifyPhone(dataform) const {data,code,msg} = getVerifyPhone(dataform)
console.log(1111111111111111111) console.log(1111111111111111111)
if(code==500){ if(code==500){
this.active++ } */
} this.active++
} else { } else {
this.$message.error('有未填写的选项或者错误选项'); this.$message.error('有未填写的选项或者错误选项');
...@@ -258,14 +258,17 @@ ...@@ -258,14 +258,17 @@
// 设置密码 // 设置密码
this.$refs.organ.validate(valid => { this.$refs.organ.validate(valid => {
if (valid) { if (valid) {
this.active = 3 /* this.active = 3 */
//将手机号和重新设置的密码发送给后端 //将手机号和重新设置的密码发送给后端
let mes = {} let mes = {}
mes.verify = this.form.verify
mes.phone = this.form.phone mes.phone = this.form.phone
mes.password = this.organ.password mes.password = this.organ.password
const {data} = getResetPassword(mes) const {data,code} = getResetPassword(mes)
console.log(data) if(code==200){
this.active ==3
this.countDown(); this.countDown();
}
} else { } else {
this.$message.error('有未填写的选项或者错误选项'); this.$message.error('有未填写的选项或者错误选项');
console.log('error submit!!'); console.log('error submit!!');
......
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