Commit 2e27d560 authored by chenqikuai's avatar chenqikuai

fix: 修复滑动验证bug

parent 95e7b3c6
......@@ -85,6 +85,14 @@ export default {
.getElementsByTagName("html")[0]
.addEventListener("touchend", this.moseUpFn);
},
beforeDestroy() {
document
.getElementsByTagName("html")[0]
.removeEventListener("touchmove", this.mouseMoveFn);
document
.getElementsByTagName("html")[0]
.removeEventListener("touchend", this.moseUpFn);
},
};
</script>
......
......@@ -67,7 +67,12 @@
</div>
<transition name="fade" mode="out-in">
<SlideValidator
v-if="accountType !== undefined && loginWay !== undefined"
v-if="
accountType !== undefined &&
loginWay !== undefined &&
accountType !== eAccountType.NO_REG
"
:key="randomNum"
@confirm="handleSlideConfirm"
class="my-3"
/>
......@@ -203,6 +208,7 @@ export default Vue.extend({
rememberPwdChecked: false,
btnLoading: false,
slideConfirmed: false,
randomNum: Math.random(),
};
},
methods: {
......@@ -261,6 +267,8 @@ export default Vue.extend({
}
} catch (err) {}
this.btnLoading = false;
this.randomNum = Math.random();
this.slideConfirmed = false;
},
handleClickUserAgreement() {
// 展示用户协议
......
......@@ -38,4 +38,5 @@ export interface iLoginCmpProps {
loginByPwdFunc: tLoginByPwdFunc;
sendSmsFunc: tSendSmsFunc,
sendVoiceFunc: tSendVoiceFunc,
}
\ No newline at end of file
}
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