diff --git a/src/login.vue b/src/login.vue index 3cb2992..ecf412e 100644 --- a/src/login.vue +++ b/src/login.vue @@ -7,18 +7,18 @@

+86

- +
- - + +

未注册手机验证后自动登录

注册即同意《隐私保护指引》

- +

密码登录

需要帮助?

@@ -49,7 +49,11 @@ export default { data() { return { - ifshow: false + ifshow: false, + tel: "", + yzm:"", + yztoken:"", + Verification:"" }; }, methods: { @@ -58,6 +62,42 @@ export default { }, off() { this.ifshow = false; + }, + yz() { + let yz="" + if (this.tel != "") { + window.console.log("aaaa"); + var t =this + this.axios.post("http://lawpro.earnest.pro/api/Main/Verification", { + mobile:this.tel + }).then(function(res) { + window.console.log(res.data.data); + yz=res.data.data.yz; + t.yztoken=yz + }).catch(function(error) { + window.console.log(error); + }); + } else { + window.console.log("请输入正确的手机号"); + } + + }, + sub(){ + let t=this; + if(t.tel&&t.yzm){ + this.axios.post("http://lawpro.earnest.pro/api/Main/isVerification",{Verification: t.yzm,yz:this.yztoken, mobile:this.tel}).then((res)=>{ + if(res.data.code==200){ + this.axios.post("http://lawpro.earnest.pro/api/Main/sign",{yz:t.yztoken,Verification:t.yzm,mobile:this.tel}).then((res)=>{ + window.console.log(res) + localStorage.setItem('token', res.data.data) + }) + } + window.console.log(res) + }).catch((err)=>{ + window.console.log(err) + }) + } + window.console.log( t.yztoken,t.Verification,9652) } } }; @@ -133,7 +173,7 @@ export default { justify-content: space-between; } .getyzm { - width: 166px; + width: 176px!important; height: 54px; border: 2px solid rgba(107, 145, 71, 1); border-radius: 4px;