|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="mobile-modal" v-show="showLogin" @scroll.prevent="touchmove()">
|
|
|
+ <div class="mobile-modal" v-show="showLogin" @touchmove="touchmove($event)">
|
|
|
<div class="mobile-modal-box">
|
|
|
<div class="mobile-modal-header">请登录后再操作<i @click="close" class="icon-guanbi iconfont"></i></div>
|
|
|
<div class="mobile-modal-content">
|
|
|
@@ -19,8 +19,8 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- touchmove() {
|
|
|
- console.log(1)
|
|
|
+ touchmove(e) {
|
|
|
+ e.preventDefault()
|
|
|
},
|
|
|
close: function () {
|
|
|
this.$emit('onLoginBoxClose')
|
|
|
@@ -37,9 +37,9 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- document.querySelector('html').addEventListener('touchmove', function(e) {
|
|
|
- e.preventDefault()
|
|
|
- })
|
|
|
+ // document.querySelector('html').addEventListener('touchmove', function(e) {
|
|
|
+ // e.preventDefault()
|
|
|
+ // })
|
|
|
document.querySelector('.mobile-modal').addEventListener('touchmove', function(e) {
|
|
|
e.preventDefault()
|
|
|
})
|