Commit 379889c2 by zujiaozhang

'修改消息下拉功能2'

parent ea26cdcd
......@@ -66,10 +66,18 @@ 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?wechatId=' + card.wechatId
if(chat.userId){
window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + card.wechatId
}else{
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?wechatId=' + card.wechatId
if(chat.userId){
window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + card.wechatId
}else{
window.location.href='https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + card.wechatId
}
})
},
getToken:function(){
......
......@@ -43,9 +43,10 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
chat.talkRelation();
chat.getWechatTicket();
chat.getAttention();
document.body.addEventListener('touchmove', function (e) {
e.preventDefault();
e.stopPropagation();
document.querySelector('body').addEventListener('touchmove', function (e) {
if (!document.querySelector('.chat_list').contains(e.target)) {
e.preventDefault();
}
}, {passive: false});
//1.获取到列表的dom,刷新显示部分的dom,列表父容器的dom
......
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