|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="mobile-modal" v-show="showLogin">
|
|
|
+ <div class="mobile-modal" v-show="showLogin" @scroll.prevent="touchmove()">
|
|
|
<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,6 +19,9 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ touchmove() {
|
|
|
+ console.log(1)
|
|
|
+ },
|
|
|
close: function () {
|
|
|
this.$emit('onLoginBoxClose')
|
|
|
},
|
|
|
@@ -34,6 +37,12 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ document.querySelector('html').addEventListener('touchmove', function(e) {
|
|
|
+ e.preventDefault()
|
|
|
+ })
|
|
|
+ document.querySelector('.mobile-modal').addEventListener('touchmove', function(e) {
|
|
|
+ e.preventDefault()
|
|
|
+ })
|
|
|
let ua = window.navigator.userAgent.toLowerCase()
|
|
|
if (ua.match(/micromessenger/i) && ua.match(/micromessenger/i)[0] === 'micromessenger') {
|
|
|
if (this.url) {
|
|
|
@@ -42,6 +51,8 @@
|
|
|
this.$router.push(`/mobile/wechat`)
|
|
|
}
|
|
|
} else {
|
|
|
+ // document.querySelector('html').style = 'overflow-y: hidden'
|
|
|
+ // document.querySelector('body').style = 'overflow-y: hidden'
|
|
|
this.showLogin = true
|
|
|
}
|
|
|
}
|