Commit ea26cdcd by zujiaozhang

'修改阻止body下拉1'

parent 366ba858
......@@ -66,10 +66,10 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
})
// 点击加入社区
$('.join_now').on('click',function(){
window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html'
window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + card.wechatId
})
$('.top_tip_blue').on('click',function(){
window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html'
window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + card.wechatId
})
},
getToken:function(){
......
......@@ -45,14 +45,16 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
chat.getAttention();
document.body.addEventListener('touchmove', function (e) {
e.preventDefault();
e.stopPropagation();
}, {passive: false});
//1.获取到列表的dom,刷新显示部分的dom,列表父容器的dom
let container = document.querySelector('.chat_list');
let refreshText = document.querySelector('.refreshText');
let parent = document.querySelector('.container');
var container = document.querySelector('.chat_list');
var refreshText = document.querySelector('.refreshText');
var parent = document.querySelector('.container');
//2.定义一些需要常用的变量
let startY = 0;//手指触摸最开始的Y坐标
let endY = 0;//手指结束触摸时的Y坐标
var startY = 0;//手指触摸最开始的Y坐标
var endY = 0;//手指结束触摸时的Y坐标
//3.给列表dom监听touchstart事件,得到起始位置的Y坐标
parent.addEventListener('touchstart',function(e){
startY = e.touches[0].pageY;
......
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