赞
踩
<template> <div class="slider-verification" ref="sliderContainer"> <div class="slider-left-bg" :style="sliderLeftWidthStyle"></div> <div class="prompt-text" :style="verifySuccess ? promptTextStyleSuccess: {}"> {{ verifySuccess ? '验证通过' : '向右拖动滑块进行验证' }} </div> <div ref="slider" @mousedown="mouseDownHandler($event)" :class="{'slider-verify-success':verifySuccess}" class="slider" :style="sliderToLeftStyle"></div> </div> </template> <script lang="ts"> import {defineComponent, ref, onMounted} from 'vue'; /** * 组件名称: * 组件描述: */ export default defineComponent({ name: 'SliderVerification', components: {}, props: { /** * 验证成功提示文字样式 */ promptTextStyleSuccess: { type: Object, default: { color: '#ffffff' } }, /** * 验证成功需要拖动距离倍数,倍数越大验证成功需要拖动的距离越大 */ multiple: { type: Number, default: 2 } }, setup(props, context) { let sliderState = ref(false) let verifySuccess = ref(false) let beginClientX = ref(0) let maxWidth = ref(0) const slideWidth = ref(0) const mouseMoveHandler = (e) => { if (sliderState.value) { let width = (e.clientX - beginClientX.value) / props.multiple; if (width > 0 && width <= maxWidth.value) { slideWidth.value = width } else if (width > maxWidth.value) { slideWidth.value = maxWidth.value verifySuccessFun(); } } } const moseUpHandler = (e) => { sliderState.value = false; let width = (e.clientX - beginClientX.value) / props.multiple; if (width < maxWidth.value) { slideWidth.value = 0 } } const verifySuccessFun = () => { verifySuccess.value = true context.emit('statusChange', true) document.getElementsByTagName('html')[0].removeEventListener('mousemove', mouseMoveHandler); document.getElementsByTagName('html')[0].removeEventListener('mouseup', moseUpHandler); slideWidth.value = maxWidth.value } const slider = ref(null) const sliderContainer = ref(null) onMounted(() => { maxWidth.value = sliderContainer.value.offsetWidth - slider.value.offsetWidth; addListener() }) const addListener = () => { document.getElementsByTagName('html')[0].addEventListener('mousemove', mouseMoveHandler); document.getElementsByTagName('html')[0].addEventListener('mouseup', moseUpHandler) } return { sliderContainer, slider, beginClientX, // 鼠标按下的位置 sliderState, // 滑块是否可以移动 maxWidth,// 滑块验证成功需要移动的最大距离 verifySuccess, // 是否验证成功 slideWidth, // 滑块滑过的区域宽度 reset() { // 重置 addListener() context.emit('statusChange', false) beginClientX.value = 0 sliderState.value = false verifySuccess.value = false slideWidth.value = 0 }, mouseDownHandler(e) { // 鼠标在滑块上按下事件 if (!this.verifySuccess) { this.sliderState = true; this.beginClientX = e.clientX; } }, } }, computed: { sliderToLeftStyle() { return { left: this.slideWidth + 'px' } }, sliderLeftWidthStyle() { return { width: this.slideWidth + 'px' } } } }); </script> <style scoped lang="scss"> .slider-verification { position: relative; background-color: #055265; width: 100%; height: 100%; line-height: 48px; text-align: center; user-select: none; } .slider { position: absolute; top: 0; width: 42px; height: 100%; cursor: move; background: rgb(0, 157, 177) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAEDFJREFUeF7tXXu4XFdVX+vMzG2Sa0mBlpI0Se/knHXmPkzaQFokFOwtFdoPCpRHA34oVaQVqQJqUYooKoofFC1Wnvq1FT9rLY9SREQKBhUUa18hpnfm7H3n3suNkRJLSUuSm3mc5bfo5KNfTHNn7TnnzOPO+nfW76zH/s157L322ghDWdEZwBUd/TB4GBJghZNgSIAhAVZ4BlZ4+MM7wJAAKzwDKzz84R1gSIAVnoEVHv7wDjAkwArPwAoPf3gHGBJghWdghYc/vAMMCbDCM7DCwx/eAYYEWOEZWOHhp3IHmJubW9VoNDZ7npcDgG/7vn+w1/I8Pz+/rl6vlzzPq/q+/+1e8y8rfxIngLX2GmZ+BwBsfEIQbySim7IK6mR2qtXq1kaj8U5EfO0xPWb+ahiGF/eCf1n7kCgBrLU3M/OVJwoCES8KgmBX1gE+0V6lUnmF53kfA4Azj/eDmR8Lw/Ap3fSvG7YTI4C19ipm/vjJgvA87yW+73+xG4GKTWPMPQDw7JPY5yAIcojI3fIxa7uJESCKorsR8bzlAvA879W+739mOb2kf4+i6EpEvHm56yJi0/f9EUSMl9MdhN8TIUC5XN6ay+V2KxLys0T0Vwr9jlWttZ9h5le2cyFmb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jADW2jntSZ+IeGUQBKnvzZeBiKLoWkRUb9TM5/NPLRaL3++HwXTxMRECGGOkUEIKJjSSWKOjdowaY9QFHc1m8ynj4+OPtXP9ftXpFgFeT0R/nWXSjDHXA0Db27ay2lSSZQ5OZCsRArRusXcj4nnLBeR53k/7vv83y+kl/bvyBXVVEn14k44hjeslRgCp5WfmO5l53ZM5ioivDYLA5RClRGJv59j3ffv2FaanpxuJGOyDiyRGAInVGCM1etJ2pXCC2DPpx7Nczk82ARQEgZfFdrLlfMzy90QJ0CKBtGZ9BwA87wmBfJSIpFFST0jrnN+rAGD9MYc8z9vq+/6ennAwQycSJ8Ax32dmZsby+fxYo9GY78V588XFxdWHDh0iz/O8QqEwP8ifeifjU2oEyJDEQ1MdZGBIgA6SNwjQIQEGYRQ7iGFIgA6SNwjQIQEGYRQ7iGFIgA6SNwjQIQEGYRQ7iGFIgA6SNwjQIQEGYRQ7iGFIgA6SNwjQIQEGYRQ7iGFIgA6SNwjQIQEGYRQ7iGFIgA6SNwjQIQEGYRQ7iGFIgA6SNwjQIQEGYRQ7iOH/ACtzqMwOovSyAAAAAElFTkSuQmCC") no-repeat center; background-size: 30px 30px; } .slider-verify-success { background: #8dffc9 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAACxlJREFUeF7tnV+IHdUdx7+/2aRLSKEgtEJiwYcUNNIkmpgILRhL8+Du3b0z10QtSUgUpS2iPgitkEA3kIAt+KAiTVE0IQnVbrwz9+7c5MFSE2jBaJNNNtgIzYPQbEAKgtAga3bnV87de9NtzN05c+ecmTN/5mlhz/zO7/f7fu6ZM2fOH0J5FToDVOjoy+BRAlBwCEoASgAKnoGCh1+2ACUABc9AwcMvW4ASgPxlYNuftn3rmjWzhgasuwhYRcCdDKwEcDuYbwOR+PubF/M0E31BwOcETDPwGQOXeS74dHkwODX+6PjXectWLlqAh0/U7rBmgs1E9CMCb2LGvZqEOs9MZ0D812DQOnV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mXCCZzFxYmvjTDo+xKs1swAsDFvsY2jNBJvB9GPL4o26trUlwiSDzjDz34JB69TJofqVeOlP/+5cAHBzGsUG19esmTU0YN1FwCoC7mRgJQO3E/NtPY/CZZ4G0RcAPidgmoHPGLjMc8Gny4PBqfFHx79OXzK1HuQSALUpyre1EoB86xsaXQlAaIryXaAEIN/6hkZXAhCaonwXKAHIt76h0ZUAhKYo3wVKAPKtb2h0/wVUeOC9HMQDLAAAAABJRU5ErkJggg==") no-repeat center; background-size: 30px 30px; } //滑块滑过区域的样式 .slider-left-bg { background-color: rgba(0, 235, 255, 0.42); width: 0; height: 100%; } //提示文本样式 .prompt-text { position: absolute; top: 0; width: 100%; height: 100%; text-align: center; font-size: 14px; line-height: 1; padding: 13px; color: #ffffff; opacity: 0.7; } </style>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。