添加滑块验证注释

master
mabo 2021-06-29 15:24:16 +08:00
parent b728e340a0
commit 5143f2b83f
3 changed files with 14 additions and 2 deletions

View File

@ -18,6 +18,7 @@
import { getVerifyImg, postVerifyImg } from './verify.js';
export default {
props: {
//
verifyType: {
defalut: 'LOGIN',
type: String
@ -43,10 +44,12 @@ export default {
};
},
methods: {
//
mouseDown (e) {
this.downX = e.clientX;
this.flag = true;
},
//
mouseMove (e) {
if (this.flag) {
let offset = e.clientX - this.downX;
@ -60,6 +63,7 @@ export default {
}
}
},
//
mouseUp () {
if (!this.flag) return false;
this.flag = false;
@ -108,7 +112,7 @@ export default {
handler: function (v) {
this.type = v;
}
}
},
}
};
</script>

View File

@ -18,6 +18,7 @@
import { getVerifyImg, postVerifyImg } from './verify.js';
export default {
props: {
//
verifyType: {
defalut: 'LOGIN',
type: String
@ -43,10 +44,12 @@ export default {
};
},
methods: {
//
mouseDown (e) {
this.downX = e.clientX;
this.flag = true;
},
//
mouseMove (e) {
if (this.flag) {
let offset = e.clientX - this.downX;
@ -60,6 +63,7 @@ export default {
}
}
},
//
mouseUp () {
if (!this.flag) return false;
this.flag = false;

View File

@ -18,6 +18,7 @@
import { getVerifyImg, postVerifyImg } from './verify.js';
export default {
props: {
//
verifyType: {
defalut: 'LOGIN',
type: String
@ -43,10 +44,12 @@ export default {
};
},
methods: {
//
mouseDown (e) {
this.downX = e.clientX;
this.flag = true;
},
//
mouseMove (e) {
if (this.flag) {
let offset = e.clientX - this.downX;
@ -60,6 +63,7 @@ export default {
}
}
},
//
mouseUp () {
if (!this.flag) return false;
this.flag = false;
@ -108,7 +112,7 @@ export default {
handler: function (v) {
this.type = v;
}
},
}
}
};
</script>