Commit a66fb5b9 authored by mengqr's avatar mengqr

修改bug尝试

parent bedba8f2
...@@ -31,8 +31,8 @@ const router = new Router({ ...@@ -31,8 +31,8 @@ const router = new Router({
}, },
{ {
path: '/', path: '/',
name: 'list', name: 'password',
component: list, component: password,
// 判断是否需要登录 // 判断是否需要登录
}, },
{ {
......
...@@ -115,6 +115,22 @@ export default { ...@@ -115,6 +115,22 @@ export default {
// this.ifRed5=true // this.ifRed5=true
this.ifClick=true this.ifClick=true
} }
if(e==0&&this.numberOne.length==6){
let stmp=this.numberOne
console.log('啊',stmp.slice(1,2))
this.numberOne=stmp.slice(0,1)
this.numberTwo=stmp.slice(1,2)
this.numberThree=stmp.slice(2,3)
this.numberFour=stmp.slice(3,4)
this.numberFive=stmp.slice(4,5)
this.numberSix=stmp.slice(5,6)
document.getElementById('sixNumber').focus();
this.ifRed5=true
this.ifclick=true
}
// if(this.numberOne==''){ // if(this.numberOne==''){
// document.getElementById('firstNumber').focus(); // document.getElementById('firstNumber').focus();
// this.ifRed0=true // this.ifRed0=true
...@@ -216,6 +232,21 @@ export default { ...@@ -216,6 +232,21 @@ export default {
} }
} }
if(e==0&&this.numberOne.length==6){
let stmp=this.numberOne
console.log('啊',stmp.slice(1,2))
this.numberOne=stmp.slice(0,1)
this.numberTwo=stmp.slice(1,2)
this.numberThree=stmp.slice(2,3)
this.numberFour=stmp.slice(3,4)
this.numberFive=stmp.slice(4,5)
this.numberSix=stmp.slice(5,6)
document.getElementById('sixNumber').focus();
this.ifRed5=true
this.ifclick=true
}
// console.log("dss双方都是",this.userPhone) // console.log("dss双方都是",this.userPhone)
// if(this.userPhone &&this.ifCheck==true){ // if(this.userPhone &&this.ifCheck==true){
// this.ifSend=true // this.ifSend=true
......
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